0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

13810 Commits

Author SHA1 Message Date
Matt Westcott
86c3dbb961 Add release notes page for 4.1 2022-08-24 16:42:41 +01:00
Matt Westcott
ac28056d02 Version bump to start work on Wagtail 4.1 2022-08-24 16:38:25 +01:00
Matt Westcott
5f9314393c run collectstatic with ManifestStaticFilesStorage 2022-08-24 15:31:21 +01:00
Matt Westcott
3e011a2356 Run collectstatic during ui_tests 2022-08-24 15:31:21 +01:00
Steven Steinwand
700d8fde07 Simplify css selectors 2022-08-24 13:50:20 +01:00
Steven Steinwand
1c1dc8170e Format css 2022-08-24 13:50:20 +01:00
Steven Steinwand
e27e0b8bf4 Hide anchors and toggles for page titles from screen readers 2022-08-24 13:50:20 +01:00
LB Johnston
f072bffb74 4.0 release notes - pull out documentation updates
- include a relevant summary of the Wagtail Sphinx theme updates
- relates to #9013
2022-08-24 15:16:33 +10:00
Vince Salvino
d776b94556 Use correct dark color for docs search box override 2022-08-24 06:07:47 +10:00
Vince Salvino
b50da4c677 Fix RTD version selector overlay issue 2022-08-24 06:07:47 +10:00
LB Johnston
955ca7ad50 update Sphinx Wagtail Theme to 5.3.0
* https://pypi.org/project/sphinx-wagtail-theme/5.3.0/
* https://github.com/wagtail/sphinx_wagtail_theme/blob/main/CHANGELOG.md#530---2022-08-20
* https://github.com/wagtail/sphinx_wagtail_theme/blob/main/CHANGELOG.md#520---2022-08-17

Additional changes
- use the magnify icon on the search field like the sphinx theme
- ensure the algolia search inputs work correctly for dark mode (the JS initially grabs the colour on page load and put on the new input field)
- fix issue of overflow x hidden being required due to the hidden input field not wrapping
- remove custom.css overrides that are no longer needed (are in the theme)
2022-08-24 06:07:47 +10:00
Sage Abdullah
c400d4b4ef Fix UnpublishAction for models with custom primary key 2022-08-22 12:42:22 +01:00
Sage Abdullah
9ca5b010c2 Fix PublishRevisionAction for models with custom primary key 2022-08-22 12:42:22 +01:00
Thomas van der Hoeven
0fddf72877 Add keyboard support page ordering functionality
- updated messages to be more insightful while sorting page order by keyboard
- closes #5785
- fixes #5410
2022-08-22 17:40:10 +10:00
PaarthAgarwal
4e747326fa fix formatting issues with modal header
- formatting fix for the header on small devices
- ensure the padding left is not set so that the outside is fully clickable
- fixed close button colours
- fix alignment and heights of smaller breakpoint modal header
- fixes #9053
- fixes #9014
2022-08-22 16:52:16 +10:00
LB Johnston
9bfd47a3a4 add contributor ariadi #9065 2022-08-22 15:27:57 +10:00
ariadi
4a6e744d34 Update admin_views.md
typo method from `format_month(current_year, current_month)` to `formatmonth(current_year, current_month)`
2022-08-22 12:52:04 +10:00
LB Johnston
4a9916721a add changelog for #9049 2022-08-21 09:16:08 +10:00
Steven Steinwand
d1167d8446 Add pseudo element to increase hoverable area for the drafttail field and the add block trigger button.
- Change variables for sizing
- Move hover extended styling to BlockToolbar
- fixes #9024
2022-08-21 09:13:17 +10:00
Sage Abdullah
32b5b992b3 Clear existing preview data on initial load of the create/edit view
This prevents stale preview data from being initially shown after reloading the PreviewOnCreate view
- fixes #9058
2022-08-21 08:25:34 +10:00
LB Johnston
85b79dc532 add changelog for #9056 2022-08-21 07:34:58 +10:00
Matt Westcott
c91a272541 Only show locale filter in choosers when i18n is enabled in settings
Fixes #9038
2022-08-21 07:33:47 +10:00
LB Johnston
ca9ded873e update changelog for #9037 2022-08-21 07:20:01 +10:00
Sage Abdullah
d71a7ccdd4 Add links to topic guide from mixin reference docs 2022-08-21 07:18:27 +10:00
Sage Abdullah
4d27fd1f54 Add docs for saving draft changes of snippets 2022-08-21 07:18:27 +10:00
Sage Abdullah
9407be3d24 Add docs for saving revisions of snippets 2022-08-21 07:18:27 +10:00
Sage Abdullah
a3255c1ee9 Add docs for making snippets previewable 2022-08-21 07:18:27 +10:00
Sage Abdullah
cc0e14c38d Improve snippets usage guide
- Use sentence case for headers in snippets usage guide
- Fix broken link to Django custom template tags
2022-08-21 07:18:27 +10:00
LB (Ben Johnston)
4fb000bb19
add contributor for #9060 2022-08-20 23:18:19 +10:00
Mehrdad Moradizadeh
739096d426 fixing a typo in the documentation 2022-08-20 23:17:05 +10:00
LB Johnston
95ca38332e update readme screenshot for Wagtail 4.0
- resolves #8997
2022-08-19 11:31:45 +01:00
Matt Westcott
5ec55fd474 Release note for #8973 in 4.0 2022-08-19 11:29:56 +01:00
Matt Westcott
5713d57692 Release notes for #8940 and #8973 in 3.0.2 2022-08-19 11:29:49 +01:00
Matt Westcott
f0014df781 Fix updatemodulepaths for Python 3.7
Fixes #8970. Python 3.7 incorrectly opens the stream for writing in text mode (be6dbfb43b), so work around this by writing the unicode string back rather than encoding back to bytes.

This will probably fail if we're on Windows AND Python 3.7 AND encounter non-ASCII characters (because in that case it'll be open for writing as Windows-1252 encoding), but it's probably the best we can do without abandoning the fileinput library entirely.
2022-08-19 11:19:27 +01:00
PaarthAgarwal
520dfa8005 Ensure screen readers are made aware of page level messages
- when added dynamically to the top of the page
- already added to the authentication pages via #8925
2022-08-19 17:48:18 +10:00
Matt Westcott
1504eb7812 Fix dead Transifex links 2022-08-19 17:28:31 +10:00
Sage Abdullah
b20a64f13b Fix live preview error banner overlapping with preview mode selector 2022-08-18 12:39:46 +01:00
Matt Westcott
f37380bea4 Fetch new strings from Transifex 2022-08-18 12:33:04 +01:00
Matt Westcott
bb343e7524 Rebuild translation strings following #9042 2022-08-18 12:15:30 +01:00
Matt Westcott
e0fd8e1a47 Fix plural handling for "no permission to delete these snippets" errors
`./manage.py compilemessages` does not allow variables to differ between the singular and plural forms - it fails with

    a format specification for argument 'snippet_type_name', as in 'msgstr[0]', doesn't exist in 'msgid_plural'

It's not possible to use the gettext pluralisation mechanism properly here, because we're using Django's verbose_name and verbose_name_plural properties which don't cover the requirements of languages with complex pluralisation rules. Since we can only hope to support English-style (`if n == 1`) pluralisation, use an n==1 test directly (as we have elsewhere in the template) rather than trying to shoehorn this into gettext pluralisation.

While we're at it, remove the capitalisation of the snippet name - it makes no sense here (especially when only done for the plural).
2022-08-18 12:08:46 +01:00
Sage Abdullah
df7031f9ae Explicitly specify get_preview_template and get_preview_context parameters 2022-08-18 10:13:57 +01:00
Thibaud Colas
f7ecdaaf78 Upgrade to latest Draftail RC, fixing command palette selection issue 2022-08-18 10:01:57 +01:00
Matt Westcott
323dfe49e9 Fix error insertion logic for modal upload forms
Fixes #9019

* The `[data-field]` element (not the input) should be queried to find the `[data-field-errors]` element
* The code should not assume the presence of an icon element
2022-08-18 09:32:21 +01:00
Thibaud Colas
1fcf4cacbb
Add more items to 4.0 release notes (#9032) 2022-08-18 08:47:30 +01:00
Matt Westcott
9aeb2e3e49 Ensure telepath adapter gets registered for document chooser widget
Fixes #9010. `wagtail.documents.widgets` is no longer reliably imported on startup now that the chooser widget is constructed within wagtail.documents.views.chooser instead, so the telepath adapter wasn't getting register. This meant that DocumentChooserBlocks in StreamField were using the base chooser implementation, which didn't include customisations such as populating the title field from the file upload field. Fix this by making ChooserViewSet responsible for registering the telepath adapter.
2022-08-17 18:24:18 +01:00
Matt Westcott
cc4675aa5e Use correct classnames for showing/hiding edit button on chooser widget
Fixes #9008
2022-08-17 07:50:29 +10:00
Stefan Hammer
3bf4a0693c Fixed init method of legacy BaseSetting class
The "return" statement was only a minor improvement, the breaking code was the passed "self" argument.

- fixes #8996
- fixes #9006
2022-08-17 07:45:31 +10:00
Matt Westcott
b4bc681865 Fix DocumentChooserBlock deconstruction for custom document models
Fixes #8989. The previous fix #9004 failed for custom document models because ChooserViewset assigns an internal name for the ChooserBlock class based on the model name, and if this is anything other than Document it won't match the name DocumentChooserBlock that it's exposed under in wagtail.documents.blocks. Fix this by replacing the `block_class` property with a `get_block_class` method that lets us specify the class name. As a bonus, user code that defines chooser blocks no longer has to directly hack the `__module__` attribute.
2022-08-16 20:50:04 +01:00
Matt Westcott
b740df734a Add missing chevron-down.svg
Fixes #8988
2022-08-16 19:40:44 +01:00
LB Johnston
666cc5e8e5 fix up legacy release note refs & use consistent format
- fix some broken refs that were lost in the migration to markdown files
- use lower_snake_case for all internal refs (most follow this convention)
- release process sub-section in docs should be named release schedule instead
2022-08-16 12:42:42 +01:00