Commit graph

36195 commits

Author SHA1 Message Date
Grzegorz Sadowski
54238fa3d4
Merge branch 'payment-request' into upmerge/2.0_payment-request 2024-10-01 09:09:56 +02:00
Grzegorz Sadowski
4bbb7a52a6
[CS][DX] Refactor (#17067)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).
2024-10-01 06:48:50 +02:00
Grzegorz Sadowski
fdde7357ba
[Admin] Extract Webpack encore entries into Twig hooks (#17057)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | yes
| 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
-->

Extracted from https://github.com/Sylius/Sylius/pull/17034
2024-10-01 06:48:32 +02:00
Grzegorz Sadowski
1534064653
Bump Pagerfanta version to 4.x (#17056)
| 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
-->
2024-10-01 06:47:11 +02:00
Sylius Bot
72dfc88ae2 [CS][DX] Refactor 2024-10-01 02:30:17 +00:00
Karol
36f81a04ac
[API][Behat] Add Customer Persist processor (#17053)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| 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-09-30 13:43:57 +02:00
Grzegorz Sadowski
b20c2571f0
Add validation for cart item quantity range (#17047)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT
2024-09-30 11:48:15 +02:00
Michał Pysiak
abe70afa57
Fixes after CR 2024-09-30 11:39:05 +02:00
Grzegorz Sadowski
fbd67ea517
[Admin] Render a default form (useful for custom resources) (#17055)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | yes
| 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
-->

In the future Sylius stack, some default Twig hooks are defined to
render a form with `form_widget(form)`.
Indeed, most of the time, for custom resources we create for an
e-commerce, we do not need to improve the default form template
rendering. Moreover, the user could see this as an issue of his
configuration cause the creation/edition page will be empty even if he
has defined his Form builder.

So in this PR, I've added the same twig hooks as Sylius stack to make
the transition easier and to allow empty configuration of Twig hooks to
render a form a Sylius developer in an end application.
Moreover, I've disabled this default Twig hooks form rendering in out of
the box Sylius resources.

An example with default form rendering

![image](https://github.com/user-attachments/assets/13765730-a0dc-4d35-abad-a4b69080e8ca)
2024-09-30 10:45:32 +02:00
Rafał Jaskulski
d8122c16dd
Remove unnecessary code (#17054)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT
2024-09-30 09:56:30 +02:00
Wojdylak
5e27278916
Add validation to AddItemToCart 2024-09-30 09:53:11 +02:00
Loïc Frémont
ad21bd5ca1 Extract Webpack encore entries into Twig hooks 2024-09-30 09:35:52 +02:00
Michał Pysiak
dba51af33d
Add spec for PersistProcessor 2024-09-30 09:27:45 +02:00
Loïc Frémont
c8dd728b58 Bump Pagerfanta version to 4.x 2024-09-30 09:20:47 +02:00
Loïc Frémont
fdc3ccb9d5 Render a default form (useful for custom resources) 2024-09-30 09:04:05 +02:00
Michał Pysiak
5958c399dd
[Behat] Remove legacy scenario 2024-09-30 08:45:18 +02:00
Wojdylak
5967ca1e2e
Remove unnecessary code 2024-09-30 08:42:38 +02:00
Michał Pysiak
13819ebaec
[API][Behat] Add Customer Persist processor 2024-09-30 08:40:01 +02:00
Wojdylak
77c1a00e29
Add notInRangeMessage in test 2024-09-30 08:32:59 +02:00
Wojdylak
8c825bc9b6
Move message to validation files 2024-09-30 08:26:52 +02:00
Wojdylak
0e2772054e
Add validation for cart item quantity range 2024-09-30 08:07:25 +02:00
Grzegorz Sadowski
06c6fe06f9
Enable tests for placing orders as impersonated shop users and for picking up cart created in UI in the api (#17035)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT
2024-09-30 07:18:11 +02:00
Grzegorz Sadowski
e06428cce2
[Maintenance] Remove FOS Restbundle (#17025)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | yes
| Deprecations?   | no
| Related tickets | n/a
| 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-09-30 07:15:41 +02:00
Grzegorz Sadowski
eda9403073
Update typehint for $publicDir (#17051)
| Q               | A
|-----------------|-----
| Branch?         | 2.0 
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | none
| License         | MIT

$publicDir is a value of `%sylius_core.public_dir%` which is a string
value (usually a `sylius_core.public_dir:
'%kernel.project_dir%/public'`), not a bool value. Which now causes
assets to be installed into a wrong directory.

Pre-fix:
```bash
➜ bin/console sylius:install:assets --no-interaction;
Installing Sylius assets for environment dev.
Created "/Users/username/Code/Sylius-Standard/1/assets" directory.
Created "/Users/username/Code/Sylius-Standard/1/bundles" directory.
```

Post-fix:
```bash
➜ bin/console sylius:install:assets --no-interaction;
Installing Sylius assets for environment dev.
Created "/Users/username/Code/Sylius-Standard/public/assets" directory.
Created "/Users/username/Code/Sylius-Standard/public/bundles" directory.
```
2024-09-30 06:53:39 +02:00
Grzegorz Sadowski
c2ea62cbe2
[UPMERGE] 2.0 -> payment-request (#17050)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/1.13/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/payment-request -m "Resolve conflicts between 2.0 and payment-request"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2024-09-30 06:51:46 +02:00
Egidijus Lukauskas
6408b41cbc
Update typehint for $publicDir 2024-09-28 22:53:33 +03:00
Grzegorz Sadowski
5ef31d714d
[Admin] Add payment request index and show pages (#17020)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT


![image](https://github.com/user-attachments/assets/f58d4c3c-2543-4fd2-860a-a5025dc318b9)

![image](https://github.com/user-attachments/assets/75566240-5bc7-4041-a3aa-4a2335478694)
2024-09-27 13:52:56 +02:00
Wojdylak
365de37fba
Enable impersonation tests 2024-09-27 13:31:51 +02:00
Grzegorz Sadowski
6188311d3e
[Maintenance] Remove leftover mentions of master request related methods (#17043)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | kinda
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | -
| License         | MIT
2024-09-27 12:18:24 +02:00
Michał Pysiak
54a2a5cc65
[Admin] Fix product in taxon (and variant) positions 2024-09-27 12:10:56 +02:00
Grzegorz Sadowski
69f77e01bd
Merge branch '1.14' into 2.0
* 1.14:
  [Docs] Add 2.0-dev installation instructions
2024-09-27 11:25:06 +02:00
Grzegorz Sadowski
79c14bb1e6
Merge branch '1.13' into 1.14
* 1.13:
  [Docs] Add 2.0-dev installation instructions
2024-09-27 11:25:04 +02:00
Grzegorz Sadowski
95623773e0
minor #17044 [Docs] Add 2.0-dev installation instructions (CoderMaggie)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A
|-----------------|-----
| Branch?         | 1.13
| License         | MIT



Commits
-------

8af0c3025b [Docs] Add 2.0-dev installation instructions
2024-09-27 11:24:47 +02:00
Magdalena Sadowska
8af0c3025b [Docs] Add 2.0-dev installation instructions 2024-09-27 11:14:19 +02:00
Michał Pysiak
5c66672fec
[Shop] Add json login 2024-09-27 10:39:46 +02:00
Wojdylak
f806305129
[PaymentBundle] Minor improvement 2024-09-27 10:20:51 +02:00
Jan Goralski
559840e342
[Maintenance] Remove leftover mentions of master request related methods 2024-09-27 10:13:34 +02:00
Wojdylak
5e753f591a
[PaymentBundle] Minor improvements 2024-09-27 09:44:07 +02:00
Wojdylak
89cd8b6357
[PaymentBundle] Move payment request to outside of payment 2024-09-27 09:37:17 +02:00
Wojdylak
cda6fcf1d9
[PaymentBundle] Add symfony/doctrine-bridge 2024-09-27 09:37:15 +02:00
Wojdylak
43e935ee82
[PaymentRequest] Use constants in grid 2024-09-27 09:34:53 +02:00
Wojdylak
01fa791109
Move payment request routes to separate file 2024-09-27 09:34:52 +02:00
Wojdylak
619bb4cfa6
Fix AddPaymentRequest 2024-09-27 09:34:52 +02:00
Wojdylak
6ea219dd8e
Mirror improvement 2024-09-27 09:34:51 +02:00
Wojdylak
e4cbd6b46a
[Admin][PaymentRequest] Add behat tests 2024-09-27 09:34:51 +02:00
Wojdylak
2d65680fb0
[Admin] Add payment request index and show pages 2024-09-27 09:34:50 +02:00
Wojdylak
32c0a3b85a
Enable hybrid suit with javascript tag in actions 2024-09-27 09:20:34 +02:00
Wojdylak
1659159c1b
Enable behat test for picking up cart created in ui and the api 2024-09-27 08:51:19 +02:00
Wojdylak
63d886137d
Enable behat test for placing orders as impersonated shop users 2024-09-27 08:51:19 +02:00
Grzegorz Sadowski
859c87a278
[UPMERGE] 2.0 -> payment-request (#17041)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/1.13/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/payment-request -m "Resolve conflicts between 2.0 and payment-request"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2024-09-27 07:04:34 +02:00