Commit graph

37610 commits

Author SHA1 Message Date
Magdalena Sadowska
32f1839d8e
GITBOOK: Export Sylius documentation 2024-11-07 07:41:35 +00:00
Grzegorz Sadowski
df41415b33
Merge branch '2.0' into 2.0-docs
* 2.0:
  Fix missing logo in reset password templates
  Group body classes into one Twig file
  Admin security root hooks refactor
  [API] update info about resource configuration changes in upgrade file
  Implement common hooks structure as in AdminBundle
  [Admin] Add twig.payment_method.excluded_gateways parameter
  Remove unnecessary hook
  Rename dashboard hook
  [PaymentRequest] Adjust ids of the services to link them to Payment Requests
  Minor improvement
  [Admin] Add checkout.payment.allowed_states parameter
  [Admin] Add attributes to dropdown helper
  [Shop] Enable customization of body classes
  Chore: Remove useless route vars
  Remove unnecessary file
  Reorganize account twig hooks
2024-11-07 06:49:09 +01:00
Grzegorz Sadowski
43af1a1ccb
Admin security hooks refactor (#17431)
![image](https://github.com/user-attachments/assets/afbb7d2c-d44f-472f-b006-012870a9e6f4)
2024-11-07 06:34:11 +01:00
Grzegorz Sadowski
0821452c82
[Shop] Enable customization of body classes (#17421)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | DX
| BC breaks?      | no
| Deprecations?   | no
| Related tickets |
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

I've tried with a "bg_primary" template
```yaml
sylius_twig_hooks:
    hooks:
        'sylius_shop.base#body_classes':
            bg_primary:
                template: '@SyliusShop/shared/layout/base/body_classes/bg_primary.html.twig'
                priority: 0          
```

![Capture d’écran du 2024-11-05
15-40-53](https://github.com/user-attachments/assets/6b7b0560-65b6-4c1e-979e-62536e1bc3da)
2024-11-07 06:33:57 +01:00
Grzegorz Sadowski
49e8fe549c
Implement common hooks structure as in AdminBundle (#17429) 2024-11-06 16:11:21 +01:00
Magdalena Sadowska
771ff16d28
GITBOOK: Export Sylius documentation 2024-11-06 13:37:58 +00:00
Bartłomiej Sęk
eb21423301 Fix missing logo in reset password templates 2024-11-06 14:32:18 +01:00
Loïc Frémont
ec06523534 Group body classes into one Twig file 2024-11-06 14:30:05 +01:00
Bartłomiej Sęk
df2e2d48af Admin security root hooks refactor 2024-11-06 14:24:51 +01:00
Magdalena Sadowska
a53b3d4639
GITBOOK: Export Sylius documentation 2024-11-06 11:50:46 +00:00
Grzegorz Sadowski
82ef5f4df4
[API] Update info about resource configuration changes in upgrade file (#17430)
| Q               | A
|-----------------|-----
| Branch?         | 2.0 <!-- see the comment below -->
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
2024-11-06 12:48:52 +01:00
Grzegorz Sadowski
5f947f5f29
SYL-4101: Hook rename (#17427)
![image](https://github.com/user-attachments/assets/ff9b8f2c-9e66-4e39-8e96-304917743ebd)
2024-11-06 12:08:18 +01:00
Grzegorz Sadowski
00693549e2
[Admin] Add twig.payment_method.excluded_gateways parameter (#17428)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT
2024-11-06 11:59:13 +01:00
Kamil Grygierzec
938ef60370
[API] update info about resource configuration changes in upgrade file 2024-11-06 11:27:08 +01:00
Bartłomiej Sęk
19471e1eb1 Implement common hooks structure as in AdminBundle 2024-11-06 11:07:22 +01:00
Wojdylak
2fc2abec41
[Admin] Add twig.payment_method.excluded_gateways parameter 2024-11-06 10:42:09 +01:00
Karol
126b550477
[PaymentRequest] Adjust ids of the services to link them to Payment Requests (#17420)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations? | no<!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | 
| License         | MIT

Some of the services ids seemed too global and did not say what they
were for.

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
2024-11-06 10:20:50 +01:00
Grzegorz Sadowski
91c462b06e
[Admin] Chore: Remove useless route vars (#17418)
| Q               | A
|-----------------|-----
| Branch?         | 2.0 
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

Icon, form templates, header and subheader are not used anymore.
- Form templates are now handled by Twig hooks
- Icons only exist on the menu sidebar
- Headers are displayed with resource metadata or twig hooks
configuration
(https://github.com/Sylius/Sylius/blob/2.0/src/Sylius/Bundle/AdminBundle/templates/shared/crud/common/content/header/title_block/title.html.twig#L5)
&
https://github.com/Sylius/Sylius/blob/2.0/src/Sylius/Bundle/AdminBundle/templates/shared/crud/create/content/header/title_block/title.html.twig
- There's no sub-headers anymore
2024-11-06 10:16:06 +01:00
Bartłomiej Sęk
011d200a31 Remove unnecessary hook 2024-11-06 09:54:41 +01:00
Bartłomiej Sęk
872a4d6596 Rename dashboard hook 2024-11-06 09:44:46 +01:00
Grzegorz Sadowski
87a973811c
[Admin] Add checkout.payment.allowed_states parameter (#17423)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT
2024-11-06 08:51:57 +01:00
Grzegorz Sadowski
944429b1f4
SYL-4101: Account hooks reorganize (#17416)
![image](https://github.com/user-attachments/assets/48078def-32dc-4122-85bc-b1ba39f66070)
2024-11-06 07:23:43 +01:00
Grzegorz Sadowski
a077220afa
[DOCUMENTATION] Synchronize 2.0-docs -> 2.0 (#17426)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action
2024-11-06 07:01:18 +01:00
Grzegorz Sadowski
123c6d4edb
Merge branch '2.0' into 2.0-docs
* 2.0: (27 commits)
  [CS][DX] Refactor
  [API] Remove deprecated and unused serialization groups
  [Docs] Fix readthedocs configuration files
  [Docs] Add links to 2.x docs
  Update src/Sylius/Bundle/AdminBundle/templates/shared/crud/common/content/form.html.twig
  Rename service
  Inline var
  Add newline
  Add experimental
  Check if the retrieved payment request is not already finalized
  Add orderBy createdAt desc to get the last created item
  Use getId instead of getHas()?->toBinary()
  Simplify statement
  Add payment request pay route to be able to finalize a capture or an authorize request
  Fix form without live component
  [Shop] Few improvement on cart index
  Code cleanup
  Code cleanup
  Create shared template for content hook
  Reorganize checkout order complete hooks
  ...
2024-11-06 06:59:42 +01:00
Grzegorz Sadowski
ac7abfd996
Merge branch '1.14' into 2.0
* 1.14:
  [Docs] Fix readthedocs configuration files
  [Docs] Add links to 2.x docs
2024-11-06 06:59:23 +01:00
Grzegorz Sadowski
8ea7e5fccd
Merge branch '1.13' into 1.14
* 1.13:
  [Docs] Fix readthedocs configuration files
  [Docs] Add links to 2.x docs
2024-11-06 06:58:58 +01:00
Grzegorz Sadowski
1dd73e5d90
Merge branch '1.12' into 1.13
* 1.12:
  [Docs] Fix readthedocs configuration files
  [Docs] Add links to 2.x docs
2024-11-06 06:58:56 +01:00
Grzegorz Sadowski
a2597c06c9
minor #17417 [Docs] Add links to 2.x docs on the 1.x documentation (CoderMaggie)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A
|-----------------|-----
| Branch?         | 1.12, 1.13, 1.14
| License         | MIT

We are hosting the 2.x documentation on docs.sylius.com while 1.x documentation is living on old-docs.sylius.com.

Adding links to the new docs on the old docs 🫡 


Commits
-------

5c111a1501 [Docs] Add links to 2.x docs
88a6c7e763 [Docs] Fix readthedocs configuration files
2024-11-06 06:56:50 +01:00
Grzegorz Sadowski
e20bdd333b
[CS][DX] Refactor (#17425)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).
2024-11-06 06:50:09 +01:00
Grzegorz Sadowski
7a113e05c1
[Shop] Few improvement on cart index (#17414)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets |
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

Based on changes that have been done here #17413, I think this will be
better like this.
2024-11-06 06:49:46 +01:00
Grzegorz Sadowski
a790e6a657
SYL-4100: Checkout hooks reorganize (#17413)
![image](https://github.com/user-attachments/assets/d0fffac1-15b3-4993-ae59-09d0990f27f7)
2024-11-06 06:48:14 +01:00
Michał Pysiak
2148c0600d
[API] Remove deprecated and unused serialization groups (#17419)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations? | no<!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
2024-11-06 06:46:54 +01:00
Grzegorz Sadowski
ce783f0e82
[PaymentRequest] Adjust ids of the services to link them to Payment Requests 2024-11-06 06:44:23 +01:00
Grzegorz Sadowski
655c652374
[Admin][HotFix] Fix form without live component (#17415)
| Q               | A
|-----------------|-----
| Branch?         |2.0
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

We want to create a new CRUD for a Sylius Resource.

Given we set all the php attributes on the Doctrine entity.
When I want to access the creation page to create a new resource.
Then I get an error about missing variables in the template
@AdminBundle/templates\shared\crud\common\content\form.html.twig.

This error happen because no Twig component is defined for this route
and this template only accept to be render via an existing twig
component.

```php
#[ORM\Entity]
#[ORM\Table(name: 'app_book')]
#[AsResource(alias: 'app.book', section: 'admin', templatesDir: '@SyliusAdmin\\shared\\crud', routePrefix: 'admin', formType: 'App\\Form\\Type\\BookType')]
#[Index(grid: 'app_book')]
#[Create]
#[Update]
#[Show]
#[Create(formType: BookType::class)]
class Book implements ResourceInterface{}
```
2024-11-06 06:41:25 +01:00
Sylius Bot
3c56e99bd3 [CS][DX] Refactor 2024-11-06 02:24:10 +00:00
Wojdylak
e64223f528
Minor improvement 2024-11-05 22:31:19 +01:00
Wojdylak
d207514c73
[Admin] Add checkout.payment.allowed_states parameter 2024-11-05 22:23:21 +01:00
Wojdylak
fe767fdf1d
[Admin] Add attributes to dropdown helper 2024-11-05 22:22:44 +01:00
Loïc Frémont
b0ccfc064f [Shop] Enable customization of body classes 2024-11-05 16:38:00 +01:00
Grzegorz Sadowski
baec1a6664
[Payment request] add PaymentRequest pay route (#17403)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no/
| Deprecations?   | no
| Related tickets | none
| License         | MIT

- [x] Create a new route to handle PaymentRequest pay rendering via the
Shop UI (to also be able to replay a capture or any other action which
are not completed already).
- [x] Enhance the PaymentRequestPayReponseProvider to retrieve the
existing PaymentRequest if it exists already.
2024-11-05 15:59:23 +01:00
Grzegorz Sadowski
3599ca4d60
[API] Remove deprecated and unused serialization groups 2024-11-05 15:58:08 +01:00
Loïc Frémont
598409cd5a Chore: Remove useless route vars 2024-11-05 14:59:26 +01:00
Magdalena Sadowska
88a6c7e763 [Docs] Fix readthedocs configuration files 2024-11-05 14:49:11 +01:00
Magdalena Sadowska
5c111a1501 [Docs] Add links to 2.x docs 2024-11-05 14:44:43 +01:00
Magdalena Sadowska
2b45ab3aa7
GITBOOK: Export Sylius documentation 2024-11-05 12:56:50 +00:00
Magdalena Sadowska
43aaafc68c
GITBOOK: Export Sylius documentation 2024-11-05 12:49:20 +00:00
Bartłomiej Sęk
fddf1ac0aa Remove unnecessary file 2024-11-05 13:12:26 +01:00
Bartłomiej Sęk
a4fd615ed2 Reorganize account twig hooks 2024-11-05 13:05:48 +01:00
Loïc Frémont
5000dc5a05
Update src/Sylius/Bundle/AdminBundle/templates/shared/crud/common/content/form.html.twig 2024-11-05 12:35:44 +01:00
Michał Pysiak
f3eee82072
Mention the dependencies changes in upgrade file (#17400)
| Q               | A
|-----------------|-----
| Branch?         | 2.0 <!-- see the comment below -->
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
2024-11-05 12:26:11 +01:00