Skip to content

Commit 40dad03

Browse files
committed
Merge forms-2 (final, #15039) into forms-2-unique-instances
# Conflicts: # resources/js/bootstrap/fieldtypes.js # src/Forms/Email.php # src/Forms/Form.php # src/Forms/Submission.php # src/Forms/Tags.php # src/Http/Controllers/CP/Forms/FormConnectController.php # src/Http/Controllers/CP/Forms/FormsController.php # tests/Feature/Forms/EditConnectorTest.php # tests/Feature/Forms/UpdateConnectorTest.php # tests/Feature/Forms/ViewConnectorsTest.php # tests/Forms/SubmissionTest.php # tests/StatamicTest.php # tests/Tags/Form/FormCreateTest.php
2 parents b131766 + 81f94c3 commit 40dad03

653 files changed

Lines changed: 33030 additions & 3750 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
First of all, thank _you_ 🫵 for taking the time to contribute to Statamic, we really appreciate it! 💜
1+
Thanks for contributing to Statamic! 💜 A few quick things before you submit:
22

3-
Please take 30 seconds to read the following so we can be as efficient as possible when reviewing and considering merging PRs:
3+
- First PR? Please read the [contribution guide](https://statamic.dev/contribution-guide).
4+
- Target the current release branch (e.g. `6.x`), or `master` if your PR includes a breaking change.
5+
- Prefix your PR title with the version you're targeting, e.g. `[6.x] Fix something`.
6+
- Include tests where possible. PRs with tests get reviewed and merged much faster.
7+
- Used AI tools? Please review the changes carefully before submitting.
48

5-
1️⃣ Is this your first PR? If so, please read our [contribution guide](https://statamic.dev/contribution-guide) first.
6-
7-
2️⃣ Did you use AI tools to create this PR? If so, please review changes carefully to make sure they meet our code standards. We all know how AI can behave sometimes. This helps to make the review easier for us. Reviewing PRs can be a lot of work.
8-
9-
3️⃣ Please make sure to create a new branch for your PR.
10-
11-
4️⃣ Typically you should target the branch of the most current release, e.g. `6.x`, unless your PR includes a breaking change, in which case you should target the `master` branch for the next major release.
12-
13-
5️⃣ We _really_ appreciate it if your PR includes tests. This makes it much easier for us to review, merge, and release. A PR with tests is usually reviewed and merged 5x-10x faster.
14-
15-
6️⃣ If your PR introduce a new feature, adds to an existing one, or changes current behavior, please **open an issue for it in the [statamic/docs](https://github.com/statamic/docs/issues) repo referencing your PR**. A simple "Goes along with statamic/cms#9000" is enough. Otherwise it's really easy to forget and no will ever become aware of your ✨ sparkling ✨ invention if it's not documented.
16-
17-
7️⃣ Remove this placeholder text and replace it with a description of what this PR is doing.
9+
Replace this text with a description of what your PR does and why.

‎.github/dependabot.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,27 @@ updates:
1010
- "*"
1111
cooldown:
1212
default-days: 7
13+
commit-message:
14+
prefix: "[6.x] "
15+
16+
# Version updates are disabled for these ecosystems. They're only here so
17+
# security updates pick up the commit message prefix.
18+
- package-ecosystem: "npm"
19+
directory: "/"
20+
schedule:
21+
interval: "weekly"
22+
open-pull-requests-limit: 0
23+
cooldown:
24+
default-days: 7
25+
commit-message:
26+
prefix: "[6.x] "
27+
28+
- package-ecosystem: "composer"
29+
directory: "/tests/Composer/__fixtures__"
30+
schedule:
31+
interval: "weekly"
32+
open-pull-requests-limit: 0
33+
cooldown:
34+
default-days: 7
35+
commit-message:
36+
prefix: "[6.x] "

‎.github/workflows/code-style-lint.yml‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,17 @@ jobs:
2828
files: |
2929
**.php
3030
31-
- name: Check PHP code style issues
31+
- name: Setup PHP
32+
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
3233
if: steps.changed-files.outputs.any_modified == 'true'
33-
uses: aglipanci/laravel-pint-action@36de00d5f5a8a4e12d443e01671daa12a18f4c79 # 2.6
3434
with:
35-
testMode: true
36-
verboseMode: true
37-
pintVersion: 1.16.0
35+
php-version: 8.5
36+
coverage: none
37+
tools: pint:1.16.0
38+
39+
- name: Check PHP code style issues
40+
if: steps.changed-files.outputs.any_modified == 'true'
41+
run: pint --test -v
3842

3943
- name: Check Statamic\trans imports
4044
run: bash scripts/check-trans-import.sh

‎.github/workflows/pull-requests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ concurrency:
1313

1414
jobs:
1515
uneditable:
16-
uses: statamic/.github/.github/workflows/pull-requests.yml@bebe92309b4276e45ebc0d0c65854fb2ecf786ba
16+
uses: statamic/.github/.github/workflows/pull-requests.yml@cdd1c896c64a0627e6025311337fef962e1aed43
1717
permissions:
1818
pull-requests: write # post comment and close PRs that don't allow maintainer edits

‎.github/workflows/tests.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ jobs:
140140
files: |
141141
**/*.{js,vue,ts}
142142
package.json
143+
package-lock.json
143144
.github/workflows/tests.yml
144145
145146
- name: Determine whether tests should run

‎CHANGELOG.md‎

Lines changed: 286 additions & 0 deletions
Large diffs are not rendered by default.

‎CONTRIBUTING.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Statamic is broken out into a few Github repositories. Here's a quick summary of
4343

4444
- [`statamic/cms`](https://github.com/statamic/cms) is the core package. It doesn't run by itself but is instead a dependency consumed by Laravel apps. 99% of the work goes on here.
4545
- [`statamic/statamic`](https://github.com/statamic/statamic) is the starter Laravel app used to build a new site.
46-
- [`statamic/docs`](https://github.com/statamic/docs) is the Statamic documentation site that is curently running on [statamic.dev](https://statamic.dev).
46+
- [`statamic/docs`](https://github.com/statamic/docs) is the Statamic documentation site that is currently running on [statamic.dev](https://statamic.dev).
4747

4848
### Bug Reports
4949

@@ -65,15 +65,15 @@ If you discover a security vulnerability, please review our [Security Policy](ht
6565

6666
### Documentation Edits
6767

68-
Statamic's documentation lives in the [https://github.com/statamic/docs](https://github.com/statamic/docs) repository. Improvements or corrections to them can be submitted as a pull request.
68+
Statamic's documentation lives in the [statamic/docs](https://github.com/statamic/docs) repository. Improvements or corrections to them can be submitted as a pull request.
6969

7070
### Core Enhancements
7171

7272
If you would like to work on a new core feature or improvement, first create a [Github issue](https://github.com/statamic/cms/issues) for it if there’s not one already. While we appreciate community contributions, we do remain selective about what features make it into Statamic itself, so don’t take it the wrong way if we recommend that you pursue the idea as an addon instead.
7373

7474
### Compiled Assets
7575

76-
If you are submitting a change that will affect a compiled file, such as most of the files in `resources/sass` or `resources/js`, do not commit the compiled files. Due to their large size, they cannot realistically be reviewed by our team. This could be exploited as a way to inject malicious code into Statamic. In order to defensively prevent this, all compiled files will be generated and committed by the core Statamic team.
76+
If you are submitting a change that will affect a compiled file, such as most of the files in `resources/css` or `resources/js`, do not commit the compiled files. Due to their large size, they cannot realistically be reviewed by our team. This could be exploited as a way to inject malicious code into Statamic. In order to defensively prevent this, all compiled files will be generated and committed by the core Statamic team.
7777

7878
### Control Panel Translations
7979

@@ -83,9 +83,9 @@ We welcome new translations and updates! Please follow [these instructions](http
8383

8484
Pull requests should clearly describe the problem and solution. Include the relevant issue number if there is one. If the pull request fixes a bug, it should include a new test case that demonstrates the issue, if possible.
8585

86-
Creating a pull request that introduces a new feature or changes current behavior? Please open an issue referencing your PR in the [statamic/docs](https://github.com/statamic/docs/issues) repo. No need to write the docs yourself. We'll take care of that for you. Any hints or bullet points are appreciated though!
86+
You don't need to document new features or behavior changes. We'll write the docs as part of the release process. That said, if you've built something big and would prefer to write the docs yourself, feel free to open a pull request on the [statamic/docs](https://github.com/statamic/docs) repo.
8787

88-
PR titles should include the major version number they're targeted at — e.g. [4.x] or [3.x].
88+
PR titles should include the major version number they're targeted at — e.g. [6.x].
8989

9090
<br>
9191
Thank you! Stay rad. If you're not already rad, tell us and we will make it so.

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"bacon/bacon-qr-code": "^3.0",
1515
"composer/semver": "^3.4",
1616
"guzzlehttp/guzzle": "^6.3 || ^7.0",
17-
"inertiajs/inertia-laravel": "^2.0 || ^3.0",
17+
"inertiajs/inertia-laravel": "^2.0.7 || ^3.0",
1818
"intervention/image": "^3.9.1 || ^4.0",
1919
"james-heinrich/getid3": "^1.9.21",
2020
"laravel/framework": "^12.40.0 || ^13.0",

‎config/assets.php‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,22 @@
6262
'cache' => false,
6363
'cache_path' => public_path('img'),
6464

65+
/*
66+
|--------------------------------------------------------------------------
67+
| Cached Image Permissions
68+
|--------------------------------------------------------------------------
69+
|
70+
| The permissions given to the directories and files Glide creates when
71+
| caching manipulated images to the local filesystem. Directory
72+
| permissions are still subject to the process's umask.
73+
|
74+
*/
75+
76+
'permissions' => [
77+
'directory' => 0755,
78+
'file' => 0644,
79+
],
80+
6581
/*
6682
|--------------------------------------------------------------------------
6783
| Image Manipulation Defaults

‎config/cp.php‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@
4242

4343
'start_page' => 'dashboard',
4444

45+
/*
46+
|--------------------------------------------------------------------------
47+
| After Saving
48+
|--------------------------------------------------------------------------
49+
|
50+
| What happens after saving an entry or term, until a user picks another
51+
| option in the save button dropdown. Supported: "listing",
52+
| "continue_editing", "create_another".
53+
|
54+
*/
55+
56+
'after_save' => 'listing',
57+
4558
/*
4659
|--------------------------------------------------------------------------
4760
| Dashboard Widgets

0 commit comments

Comments
 (0)