Commit graph

37629 commits

Author SHA1 Message Date
Grzegorz Sadowski
f999a85a69
Change application's version to v2.0.0-RC.1 2024-11-07 15:10:05 +01:00
Grzegorz Sadowski
8190f4b13b
Merge branch '1.14' into 2.0
* 1.14:
  Change application's version to v1.14.0-DEV
  Generate changelog for v1.14.0-RC.1
  Change application's version to v1.14.0-RC.1
2024-11-07 15:08:58 +01:00
Grzegorz Sadowski
15c7d3a413
Change application's version to v1.14.0-DEV 2024-11-07 15:06:09 +01:00
Grzegorz Sadowski
aaaf981830
Generate changelog for v1.14.0-RC.1 2024-11-07 15:05:10 +01:00
Grzegorz Sadowski
6212dd9c80
Change application's version to v1.14.0-RC.1 2024-11-07 15:01:11 +01:00
Grzegorz Sadowski
c9fb267fde
[Admin] Rename customTrigger param to snake_case notation (#17436)
| 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 | related to #17338
| 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-07 14:55:23 +01:00
Grzegorz Sadowski
22a6f65036
Fix create button in admin panel (#17435)
![image](https://github.com/user-attachments/assets/f8611874-d9a1-4479-b3f4-c05c18a1be7a)
2024-11-07 14:55:09 +01:00
Grzegorz Sadowski
817c6223f3
feat: support sqlite (#17254)
| Q               | A
|-----------------|-----
| Branch?         |  2.0 <!-- see the comment below -->
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations? | no<!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | fixes #13051 
| License         | MIT

Add support for sqlite:

- fix sylius installer (dont run migrations, use schema:update force
command)
- fix admin dashboard (add Doctrine YEAR,MONTH ... functions
implementations)
2024-11-07 14:54:35 +01:00
Grzegorz Sadowski
35365a6f37
Merge branch '1.14' into 2.0
* 1.14:
  [CoreBundle] Fix initial log creation for table sylius_channel_pricing_log_entry (#17378)
2024-11-07 14:53:39 +01:00
Grzegorz Sadowski
98b792b219
Merge branch '1.13' into 1.14
* 1.13:
  [CoreBundle] Fix initial log creation for table sylius_channel_pricing_log_entry (#17378)
2024-11-07 14:53:25 +01:00
Grzegorz Sadowski
8593852f64
bug #17380 [CoreBundle] Fix initial log creation for table sylius_channel_pricing_log_entry (#17378) (jblairy)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A
|-----------------|-----
| Branch?         | 1.13
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes #17378
| License         | MIT



Commits
-------

3339f47ff2 [CoreBundle] Fix initial log creation for table sylius_channel_pricing_log_entry (#17378)
2024-11-07 14:53:06 +01:00
Grzegorz Sadowski
749719bd2d
[Admin] Rename customTrigger param to snake_case notation 2024-11-07 14:43:04 +01:00
Grzegorz Sadowski
76fad06b55
[Bug] Turn off stimulus debug mode in production (#17434)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT

Fixes stimulus debug mode in prod env

Debug mode enabled:
```
yarn encore dev 
```

Debug mode disabled:
```
yarn encore prod
```
2024-11-07 12:50:49 +01:00
Bartłomiej Sęk
ccde6b4efb Fix create button in admin panel 2024-11-07 12:11:16 +01:00
Michał Pysiak
ec3c74b3d7
[Bug] Turn off stimulus debug mode in production 2024-11-07 09:45:23 +01:00
Grzegorz Sadowski
b70fd77384
Mention the serialization changes in API (#17422)
| 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-07 06:54:06 +01:00
Grzegorz Sadowski
97254f997a
[DOCUMENTATION] Synchronize 2.0-docs -> 2.0 (#17433)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action
2024-11-07 06:51:54 +01:00
Grzegorz Sadowski
3059d25fe7
Merge branch '2.0' into docs/2.0-docs_2.0 2024-11-07 06:51:15 +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
Kamil Grygierzec
55bf164a64
Mention the serialization changes in API 2024-11-06 13:36:05 +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