0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

14239 Commits

Author SHA1 Message Date
LB Johnston
f31cce6786 Update changelog for #9750 2022-12-08 07:45:00 +10:00
LB Johnston
fa544d4ec2 Add changelog for #9762 2022-12-08 07:43:30 +10:00
dependabot[bot]
55c355dda9 Bump qs and express
Bumps [qs](https://github.com/ljharb/qs) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `qs` from 6.9.6 to 6.11.0
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.9.6...v6.11.0)

Updates `express` from 4.17.2 to 4.18.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.2...4.18.2)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 07:42:39 +10:00
Matt Westcott
2cb12871ef Fix RichTextField - StreamField migration example code
Follow-up to #8307. It appears that the original code was designed for a StreamField setup where the `rich_text` block is not a RichTextBlock, but a StructBlock with a RichTextBlock child also named `rich_text`. #8307 correctly removed this redundant wrapper from page_to_streamfield, but there are corresponding changes required for the rest of the helper methods.
2022-12-08 07:39:37 +10:00
Matt Westcott
52c50e0e67 Release note for InlinePanel refactor 2022-12-08 07:37:32 +10:00
Matt Westcott
2335d28b7c Move InlinePanel child initialisation into the InlinePanel constructor 2022-12-08 07:37:32 +10:00
Matt Westcott
3c3bb68a9b Make ExpandingFormset responsible for managing the opts dict again
With the custom onAdd logic eliminated, it is now safe for ExpandingFormset and InlinePanel to work from the same opts dict
2022-12-08 07:37:32 +10:00
Matt Westcott
54a1901c69 move InlinePanel onAdd logic into an overridden addForm method 2022-12-08 07:37:32 +10:00
Matt Westcott
100727eb13 make InlinePanel a subclass of ExpandingFormset 2022-12-08 07:37:32 +10:00
Matt Westcott
c632df8dee Allow skipping onAdd/onInit callbacks when adding a new form to ExpandingFormset
This will help us to make InlinePanel a subclass of ExpandingFormset, since we'll want InlinePanel to extend the addForm method and only call the callbacks after it's done its thing.

Also rename this.opts in ExpandingFormset, so that we can have a separate set of options passed to ExpandingFormset while we're refactoring.
2022-12-08 07:37:32 +10:00
Matt Westcott
24a8a459b4 Fix misleading use of formCount in form 'add' logic 2022-12-08 07:37:32 +10:00
Matt Westcott
9f3c0b0492 Add an addForm API endpoint to InlinePanel 2022-12-08 07:37:32 +10:00
Matt Westcott
ef9d56723d Make InlinePanel into a proper JS component class 2022-12-08 07:37:32 +10:00
Matt Westcott
393c1b3374 Move InlinePanel include module to components 2022-12-08 07:37:32 +10:00
Matt Westcott
5b8b508385 Release note for #9726 2022-12-07 10:43:09 +00:00
Sage Abdullah
e6512a9a88 Add tests for publishing and unpublishing snippets using publish permission 2022-12-07 10:41:28 +00:00
Sage Abdullah
b04c383008 Check for publish permission before allowing publish action 2022-12-07 10:41:28 +00:00
Sage Abdullah
0a5ae5f523 Add skip_permission_checks param to DraftStateMixin.publish() and Revision.publish() 2022-12-07 10:41:28 +00:00
Sage Abdullah
26a721a1ba Remain on the edit view when saving a snippet draft 2022-12-07 10:41:28 +00:00
Matt Westcott
bb9dad4f96 Release note for #9709 2022-12-06 18:08:56 +00:00
Sage Abdullah
2f5d419051 Combine mixins into CreateEditViewOptionalFeaturesMixin 2022-12-06 18:07:25 +00:00
Sage Abdullah
f8688985f6 Extract EditViewOptionalFeaturesMixin from generic EditView 2022-12-06 18:07:25 +00:00
Sage Abdullah
c3e7219415 Extract CreateViewOptionalFeaturesMixin from generic CreateView 2022-12-06 18:07:25 +00:00
Sage Abdullah
57b584cfc6 Extract IndexViewOptionalFeaturesMixin from generic IndexView 2022-12-06 18:07:25 +00:00
Sage Abdullah
1f143cf8ca Create and show publish permissions for snippets with DraftStateMixin applied (#9711) 2022-12-06 16:16:59 +00:00
Matt Westcott
19c98d4835
Move Karl to core team alumni 2022-12-05 10:31:27 +00:00
LB Johnston
9713274e05 Add changelog for #9376 2022-12-03 15:53:48 +10:00
Matt Westcott
89099d9a19 Import the ExpandingFormset class for InlinePanel instead of calling window.buildExpandingFormset
This eliminates the dependency on expanding-formset.js, and avoids having to mock buildExpandingFormset when testing InlinePanel
2022-12-03 15:53:48 +10:00
Matt Westcott
2834cd5ad5 Move ExpandingFormset tests to the component module 2022-12-03 15:53:48 +10:00
Matt Westcott
3b4cb3cafe Convert buildExpandingFormset into a component class 2022-12-03 15:53:48 +10:00
dependabot[bot]
32f925e88a Bump decode-uri-component from 0.2.0 to 0.2.2
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-03 12:38:58 +10:00
Sage Abdullah
a5b372e47a Remove grey background from .content-wrapper
- Fixes #9667
2022-11-30 07:57:38 +10:00
dependabot[bot]
ccf6ec15f7 Bump minimatch from 3.0.4 to 3.1.2 in /client/tests/integration
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-29 07:57:41 +10:00
dependabot[bot]
95b42745a2 Bump minimatch from 3.0.4 to 3.1.2
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-29 07:57:27 +10:00
Thibaud Colas
beab3d4e7f Fixup: remove conflict marker from bf217a54fb 2022-11-28 13:21:50 +00:00
Thibaud Colas
bf217a54fb Use the correct padding for autocomplete block picker 2022-11-28 11:44:22 +00:00
Loic Teixeira
56d0fe8fbc Update translations placeholder names
See 364de3d4dc and #9377
2022-11-26 11:00:21 +01:00
Loic Teixeira
0e77b02313 Fetch new translations from Transifex 2022-11-26 11:00:21 +01:00
Loic Teixeira
5c1c2c8f53 Enforce the use of a single string formatting mechanism for translation source strings
Close #9377
2022-11-26 11:00:05 +01:00
Thibaud Colas
713636a00e
Always show the page editor title field’s border when the field is empty. Fix #9318 (#9719) 2022-11-25 17:16:05 +00:00
LB Johnston
ef8a970261 Fix up typo in slug field validation
- See #7730
2022-11-25 21:43:41 +10:00
LB Johnston
521895037d add non-ambiguous variable name - form/account 2022-11-25 08:47:32 +10:00
Benjamin Bach
b6d35adb5f Improve validation errors for non-unique slug
- Informative validation: Tell users/devs which slug that is offending inside which URL hierarchy
2022-11-25 08:47:32 +10:00
Matt Westcott
9e0bcce014 Move release note for #9651 to 4.2 2022-11-23 22:05:40 +00:00
Matt Westcott
d2167ed705 Release note for #8886 2022-11-23 20:04:56 +00:00
LB Johnston
30585340fd Add upgrade considerations for classname convention changes 2022-11-23 19:50:27 +00:00
LB Johnston
1f176824a2 adopt classname naming in side panel button shared template 2022-11-23 19:50:27 +00:00
LB Johnston
38e2f6a462 adopt classname naming in tab nav link shared template 2022-11-23 19:50:27 +00:00
LB Johnston
044c7b4b73 adopt classname naming in paginate template tag 2022-11-23 19:50:27 +00:00
LB Johnston
6cf16bf5d5 adopt classname naming in dialog toggle template tag 2022-11-23 19:50:27 +00:00