0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 09:33:54 +01:00
Commit Graph

14233 Commits

Author SHA1 Message Date
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
LB Johnston
71f3738e8c add classname naming convention to general coding guidelines 2022-11-23 19:50:27 +00:00
Andy Chosak
4e76241295 Fix: Review or revert to a page's initial revision
Currently it's not possible to review or revert to a page's initial
revision because we don't log a PageLogEntry "wagtail.edit" event
in certain cases:

- When a page is first created, and saved as draft
- When a page is first created, and published right away
- When a page is first created, and submitted for moderation

This commit alters the current behaviour so that a "wagtail.edit" event
is created in those cases. This allows these initial revisions to be
reviewed or reverted to in the page history view.

This commit also updates the existing create_log_entries_from_revisions
management command to try to populate these initial revisions there as
well. The relevant unit tests have been updated.

Fixes #8337
2022-11-23 08:45:39 +10:00
Ben Gosney
c7a5e9a959 Add missing kwargs to the send_mail helper
Fixes #5899
2022-11-23 08:31:13 +10:00
4the4ryushin
a03bbba347 Fix pluralisation for Tab error count shown to screen readers
Fixes #9521
2022-11-23 07:52:24 +10:00
Lovelyfin00
731f96e9a8 Removed no plus plus eslint rule and fixed errors from linting
- Relates to #8731
2022-11-23 07:39:35 +10:00
Sage Abdullah
573107a3b6 Add StreamField.get_db_prep_value() to delegate serialisation of JSONField lookup values (#9693)
Fixes #9692
2022-11-21 17:28:07 +00:00