Wykres commitów

12621 Commity (042d077fc13f9b10d022d5c0a90bd3c485d78b3c)

Autor SHA1 Wiadomość Data
Matt Westcott d6358836f2 Remove redundant render_as_field override from BaseChooserPanel
All built-in choosers use the standard field_panel_field.html template - it's probably been this way since Wagtail 1.0, when choosers got their own Widget classes rather than just being HTML decoration around a HiddenInput. As a result, the additional template context they pass (e.g. self.object_type_name) is redundant. If any third-party chooser panels exist that do need them (which is unlikely, if they just copy the existing ones), they should override render_as_field themselves to pass whatever context they need.
2022-03-02 15:55:25 +00:00
Matt Westcott c6f3b9982c Fix / remove broken documentation links 2022-03-02 11:48:06 +00:00
Matt Westcott d4899f5a51 Fix heading level 2022-03-02 11:38:46 +00:00
LB Johnston dc8fdeb11e update browserslist - not ie 11 2022-03-02 20:16:03 +10:00
LB Johnston aaddf81b36 update release notes with Hallo removal
- resolves #6228
2022-03-02 20:15:33 +10:00
LB Johnston 59fad1fb00 remove hallo tests 2022-03-02 20:15:33 +10:00
LB Johnston e5f5b070fb remove Hallo editor & related hooks 2022-03-02 20:15:33 +10:00
LB Johnston 6ecdc16bd4 remove Hallo references in the documentation 2022-03-02 20:15:33 +10:00
LB Johnston 13091eab34 remove Hallo JS 2022-03-02 20:15:33 +10:00
LB Johnston 5c01ecfa94 remove Hallo styles 2022-03-02 20:15:33 +10:00
LB Johnston e20f3f6966 test integration - update packages
- puppeteer - v11 to v13 https://github.com/puppeteer/puppeteer/releases/tag/v12.0.0 & https://github.com/puppeteer/puppeteer/releases/tag/v13.0.0
- @wordpress/jest-puppeteer-axe" - v3 to v4 42a5611fa7/packages/jest-puppeteer-axe/CHANGELOG.md (400-2022-01-27)
- jest & expect-puppeteer - minor update
2022-03-01 22:54:12 +00:00
LB Johnston 51ba6e4c47 integration tests - update package-lock for Node v16 usage 2022-03-01 22:54:12 +00:00
Thibaud Colas f0bb578f68
Wagtail packaging fixes (#8030) 2022-02-28 22:35:10 +00:00
Sage Abdullah bf8d5b3f94 Replace `data_json` `TextField` with `data` `JSONField` in `BaseLogEntry` 2022-02-28 10:27:07 +00:00
Steve Stein 3bf9b65c06
Tailwind package setup (#8003)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-02-27 16:08:38 +00:00
Tibor Leupold 97f19562c9
Fix URLs in latest.txt (#8046)
The `url` key is meant for the latest release (2.16.1). The `minorUrl` key is for the latest "minor" release (2.16).

PR #7652 adds the functionality to show the appropriate link in the upgrade notification based on the difference between the currently used and the latest version.
2022-02-25 16:43:17 +00:00
Steve Stein 5417982b8c
Design tokens setup (#8005)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-02-25 13:34:04 +00:00
Matt Westcott e59c8bc644 Fix heading levels 2022-02-25 13:06:40 +00:00
jacobtoppm 4df2bd369b Fix formatting for #8024 2022-02-25 12:36:39 +00:00
Sage Abdullah 05812ce624 Remove `replace_text` management command 2022-02-25 11:39:47 +00:00
Sage Abdullah bae76a2af0 Replace `content_json` `TextField` with `content` `JSONField` in `PageRevision` 2022-02-25 11:39:47 +00:00
LB (Ben Johnston) 861a509b32
add `make format` to cover most auto-fixable formatting (#8022) 2022-02-24 17:20:35 +00:00
Thibaud Colas d149a27392 Upgrade Storybook setup, with latest release, less boilerplate 2022-02-24 21:22:45 +10:00
Thibaud Colas b3e5f751e4 Add icons loading and demo to Storybook 2022-02-24 21:22:45 +10:00
Thibaud Colas 3aae7d0583 Add base pattern library setup with Storybook 2022-02-24 21:22:45 +10:00
Thibaud Colas 939fa98ef0 Move storybook configuration to a dotless folder, for linting 2022-02-24 21:22:45 +10:00
Thibaud Colas e2b30c1690 Remove ESLint --max-warnings mistakenly added back in #7876 2022-02-23 10:39:46 +00:00
Matt Westcott 1c0d4d92a8 Install patched django-modelcluster and django-taggit when testing against django main 2022-02-23 08:26:23 +00:00
Matt Westcott 6a7a44f35d Prevent permission formsets from querying an unsaved group instance 2022-02-23 08:26:23 +00:00
Matt Westcott 62f49d7210 Fix test to match new stylesheet tag format in Dj4.1
As of 7c4f396509 the type="text/css" attribute is omitted.
2022-02-23 08:26:23 +00:00
Matt Westcott 1838fbfb1a Prevent custom MESSAGE_TAGS settings from leaking into admin styles
Fixes a test failure against Django main.

In #2552, a fix was applied to ensure that the project-level MESSAGE_TAGS setting was ignored, allowing end-users to customise that setting for their own projects without it leaking into Wagtail admin styles.

Unfortunately, the test was flawed (or was broken in a Django regression at some point): in Django <=4.0, MESSAGE_TAGS was not affected by override_settings after the first request, which meant that unless the test was run in isolation, the custom classname that was supposed to flag up the problem never got applied, and the test always succeeded.

The change to SVG icons broke the intent of #2552, since it used message.level_tag for the icon's classname (and this picks up MESSAGE_TAGS customisations), but due to the broken test this went unnoticed.

24b316536a fixed the override_settings behaviour, making the test fail as it should have done long ago.

Here we adjust the test to not rely on override_settings (so that it does what it's supposed to do on all Django versions), fix a test that gets broken as a side effect (because it's unnecessarily checking message.level_tag), and fixes our SVG-icon-powered message include to bypass the MESSAGE_TAGS setting like the old implementation did.

Confusing? Yes.
2022-02-23 08:26:23 +00:00
John-Scott Atlakson 4a7fb00d35 Always set the filename in Content-Disposition
Relates to original fix for #1158
2022-02-23 06:50:21 +10:00
Gianluca De Cola aaee9b8c81 Remove IE11 warning message and related files
- resolves #7993
2022-02-22 17:22:39 +10:00
Joshua Munn b8405e9ca8 Add unsaved fields to FormBuilder.formfields with clean name as key
fixes #6555,
Only the final unsaved FormField appears in the preview of a FormPage. As
FormBuilder adds fields to its formfields attribute using their
clean_name as the key, and FormField.clean_name isn't populated until
FormField.save is called, all unsaved fields are added to the
FormBuilder.formfields dict with the empty string as key. This solves
this by calling get_field_clean_name on the field before insertion
into formfields if clean_name hasn't been set yet.
2022-02-22 17:09:37 +10:00
LB Johnston 927358bf3c add release note #7941 2022-02-22 16:35:42 +10:00
Mitchel Cabuloy 11ecb3bb4f Redirect to page edit view when submitting for a single locale
When an editor decides to submit a page for translation and only chooses
one locale, they are redirected to the new translated page's edit view.
2022-02-22 16:33:43 +10:00
LB Johnston e0f9e802de add release notes #7977 2022-02-22 16:32:02 +10:00
LB Johnston d2a11bc7bd add release notes #7965 2022-02-22 16:30:25 +10:00
Dan Braghis e4d4b24a5b Add flake8-comprehensions and flake8-assertive to pre-commit 2022-02-22 16:20:15 +10:00
Andy Babic 963c739f03 Remove a reference to the recipe from redirects.rst 2022-02-22 16:18:46 +10:00
Andy Babic 2c33c98eb4 Remove redirect auto-creation recipe from docs, as wagtail has this covered. 2022-02-22 16:18:46 +10:00
John-Scott Atlakson d8d01f5ed2
Fixed typo in StreamBlock example (#8020) 2022-02-21 17:37:42 +00:00
Thibaud Colas fef6f6d253
Update GSOC.md 2022-02-21 14:20:05 +00:00
sag᠎e d191504e15
Update development instructions to use Node.js 16 (#8019) 2022-02-21 11:53:08 +00:00
Mads Jensen 82427901a7
Delete a dead class in TestStructBlockWithCustomStructValue.test_initialisation_with_mixins (#7950) 2022-02-18 15:31:31 +00:00
Mads Jensen b6f2399a6a
Delete a dead return-statement in SafePaginateListView.paginate_query… (#7955)
* Delete a dead return-statement in SafePaginateListView.paginate_queryset.

* Use try/except/finally instead.

PyCharm marks page as "might be referenced before assignment", though,
but I guess it's a bit pedantic.
2022-02-18 15:30:53 +00:00
Thibaud Colas 0b37f6d024
Remove all style customisations for documentation, except banner. Fix #7987 (#7990)
All of those customisations predate #7956, which fixed the loading of the CSS, so they were likely only intended for our previous Sphinx theme.
2022-02-18 13:41:18 +00:00
Matt Westcott de8b976b6f
Test against jinja2 3.x (#8014)
New installs of the 2.x branch are currently broken due to https://github.com/pallets/jinja/issues/1585, which the maintainer of jinja apparently does not intend to fix.
2022-02-18 11:42:10 +00:00
Matt Westcott 6b8126d5a3
Fix jinjalint exclusion in 'make lint' (#8009) 2022-02-18 11:37:18 +00:00
Matt Westcott 51e760810c Release note for #7985 in 2.16.2 2022-02-18 10:58:57 +00:00