0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

4182 Commits

Author SHA1 Message Date
Thibaud Colas
4eb35dbc0a Refactor styles to be loaded via single core.css file (#8419) 2022-06-07 13:26:58 +01:00
PaarthAgarwal
1f43d8ef51 Ensure TabbedInterface will not show a tab if no panels are shown
- If no panels show (due to permissions) the tab was still showing
- instead it is expected that the tabs should not show at all if empty
2022-06-02 22:12:55 +10:00
Stefan Hammer
c2e366600f Add missing can_reorder_children() check, fixes #8458
Users which weren't allowed to reorder child pages (e.g. due to missing
"publish" permission), still saw the menu item to start reordering.
2022-06-02 08:26:31 +10:00
LB Johnston
d253f4784f migrate Home (dashboard) to class based view
- resolves #8366
2022-06-02 08:17:37 +10:00
LB Johnston
fd5218220e form builder - allow clean_name generation to be overridden
- adds a new class method to AbstractFormField `get_field_clean_name`
- resolves #6903
2022-06-02 08:07:24 +10:00
LB Johnston
6d0659333d fix spelling - behaviour vs behavior
- documentation should be using the British english spelling
- most other spelling is `behaviour` so this aligns with the majority
2022-06-02 07:56:05 +10:00
Tidiane Dia
25c43273a9 Add docs and releases notes for prefetch_renditions method
Also add tests to ensure example in docs works fine.
2022-06-01 16:51:35 +01:00
jacobtoppm
ec649331a3 Release notes for #8590 and #8430 2022-06-01 16:51:33 +01:00
Tidiane Dia
ffa4530d1e Update screenshots in the editor guide's section for images 2022-06-01 16:50:25 +01:00
Steve Stein
910844eb30
Implement redesign of the Workflow Status dialog, fixing accessibility issues. Fix #8476 (#8538)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-06-01 16:21:11 +01:00
LB (Ben Johnston)
0012c344d9
auto-format core markdown files (#8603)
- clean up formatting on existing martkdown files to align with prettier
2022-06-01 23:08:56 +10:00
Paarth Agarwal
1a49cae272
make integration tests' documentation more clear (#8608)
* updated integration test documentation
2022-05-30 20:06:34 +10:00
Dan Swain
b53f12d394 Include missing import of FieldPanel 2022-05-28 06:40:25 +10:00
Thiago Costa de Souza
e6865e7b0f documentation - migrate advanced_topics/customisation/** to md 2022-05-27 08:02:16 +10:00
Thiago Costa de Souza
4424d23fa4 documentation - migrate advanced_topics/images/** to md 2022-05-27 07:51:45 +10:00
LB Johnston
52e87968e2 fix up changelog entry for #7752
- release number is the same but the link is now adaptive
2022-05-27 07:25:30 +10:00
Tibor Leupold
4f5d688021 Add ability for upgrade notification to show the relevant release to the user
This now implements the logic to link to the next minor's release notes
when such a version difference is computed. If a patch release
difference is computed, then those release notes are linked.

The utils.tests.js seemed a bit unexpected location, because there is no
`utils.js` module. Now the module defining the tests and the one
defining the functionality are named similarly, as is common in the rest
of the code base.

- resolves #7336
- resolves #7405
- resolves #3938
- fixes #8537

Fix issue where upgrade notification was not using translated content.
2022-05-26 19:57:46 +10:00
sag᠎e
f4d5207fbd
Use GenericForeignKey and GenericRelation for Revision (#8571) 2022-05-26 00:08:30 +01:00
Hitansh Shah
f8a7c6f4ae Added functionality in bulk actions: ability to use shift+click to select multiple items at once
- Signed-off-by: Hitansh Shah <shah.hitanshsanjay.mat20@itbhu.ac.in>
- resolves #8490
2022-05-25 21:45:12 +10:00
Thiago Costa de Souza
7e73349dc1 documentation - migrate api section to markdown 2022-05-25 21:01:38 +10:00
Stefan Hammer
906dfa2773 Added missing gettext calls to the CommentComponent 2022-05-25 20:45:09 +10:00
LB Johnston
115879c519 add changelog for #7897 2022-05-25 19:34:52 +10:00
LB Johnston
46efee9eeb add changelog for #8532 2022-05-25 19:02:46 +10:00
LB Johnston
48d397f74f Add changelog for #8501 2022-05-25 17:07:55 +10:00
Matt Westcott
45ac80bb89 Make cross-link URLs on generic model views optional
Normally, generic model views will be spun up through wagtail.admin.viewsets, which takes care of configuring the add_url_name / edit_url_name etc attributes to ensure that they are cross-linked appropriately. But if you're defining one in isolation, that's an unnecessary hoop to jump through, and the error messages if you don't specify them are fairly opaque. Fix this so that:

1. Non-essential cross-links (e.g. the Add button on the index view, and the Delete button on the edit view) are gracefully omitted if the URLs are undefined;
2. Essential cross-links (e.g. the destination of the redirect after a successful form submission) raise an informative error telling the developer what needs to be defined.
2022-05-25 16:31:12 +10:00
Matt Westcott
55fdafdfe6 Make radio buttons / checkboxes display vertically under Django 4.0
Fixes #8190
Django 4 changed the rendering of radio button / checkbox lists to nested divs rather than ul/li - see 5942ab5eb1. This change simply applies the existing li styles to second-level divs.
2022-05-25 08:31:11 +10:00
LB (Ben Johnston)
9f206d258c
Make it possible to reuse and customise Wagtail’s fonts with CSS variables. Fix #8406 (#8544)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-20 14:19:30 +01:00
thoang43
2fbac52532 Documentation - Convert rst to md for ModelAdmin section
- Co-authored-by: Vu Pham
- relates to #8383
2022-05-20 08:32:21 +10:00
Karl Hobley
2a40333770 Set referer policy of upgrade notifcation to "strict-origin-when-cross-origin"
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
- Since Django 3.1, all Wagtail admin responses have been given a referer-policy: same-origin header. See: https://chipcullen.com/django-3-referrer-policy-change/
2022-05-19 08:37:25 +10:00
sag᠎e
52e5abfe62
Replace PageRevision with generic Revision model (#8441) 2022-05-17 11:46:30 +01:00
Matt Westcott
501b28c62b Fill in release date for 3.0 2022-05-16 14:20:37 +01:00
Paarth Agarwal
a98f047950 removed trailing slash 2022-05-14 15:50:10 +10:00
Steve Stein
851ec9a5c1 Apply full header breadcrumb spacing fixes for all templates (#8471, #8491) 2022-05-13 17:09:01 +01:00
Tom Hu
1f3605b98a chore(ci): add informational Codecov status checks
we were usng Codecov but weren't actually getting any notifications on pull requests.
Update codecov.yml
Removing `after_n_builds` as there is only 1 build
2022-05-13 08:16:12 +10:00
Fabien Le Frapper
aad51b2bb2 Update docs/reference/contrib/frontendcache.rst
Co-authored-by: Jake Howard <RealOrangeOne@users.noreply.github.com>
2022-05-13 08:15:35 +10:00
Fabien Le Frapper
aff9b9a623 fix linting issues 2022-05-13 08:15:35 +10:00
Fabien Le Frapper
44456ff4dd Fix typo that broke a link 2022-05-13 08:15:35 +10:00
Fabien Le Frapper
b54e9cbc62 Add instructions about where to find cloudflare zone id 2022-05-13 08:15:35 +10:00
LB Johnston
d9981e0ec7 fix up spelling in documentation & docstrings (should be en-GB not en-US)
- customize -> customise
- color -> colour
- customizing -> customising
- organize -> organise
2022-05-13 08:13:06 +10:00
Stefan Hammer
885b593234 Use FormData for docs/images add-multiple's edit handling
The ajax-request now uses multipart/form-data, similar to
image-chooser-modal.js/document-chooser-modal.js, which allows to add
and use FileFields in the bulk-upload-views.
2022-05-13 08:07:29 +10:00
LB (Ben Johnston)
f5044828b8
2.16 release notes - fix up internal reference (#8525) 2022-05-12 14:22:25 +01:00
Christian Franke
7d6240a489 Throw error if images.Filter.run cannot create output (#8508)
If Filter.run is requested to create an unknown output format,
it should not fail silently without writing any output, but instead
throw an exception.

Fixes #8503
2022-05-12 14:20:45 +01:00
th3hamm0r
ec1aea0f20 Fix typo in ResumeWorkflowActionFormatter message 2022-05-11 21:47:53 +10:00
Thibaud Colas
7129ccefc9 Remove logical properties compatibility styles for Safari 13
- update caniuse-db & browserslist
- resolves #8124
2022-05-11 21:41:15 +10:00
jacobtoppm
7e98db7197 Disable webpack css url rewriting
This was causing relative urls to be rewritten to use the publicPath.
This meant that the icon font would be referenced at the wrong location
if sites had changed STATIC_URL
fixes #8517
2022-05-11 19:27:49 +10:00
Cynthia Kiser
399a34bc93
Make nested list render as a nested list (#8516) 2022-05-11 09:05:02 +01:00
LB Johnston
f220d45e32 Add Wagtail 3 classifier to documentation 2022-05-08 19:27:51 +10:00
Sandil Ranasinghe
5cea62b4b8 Ensure InlinePanel.get_comparison passes label for field comparison
- FieldComparison.field_label should pick up labels from InlinePanel
- fixes #4732
- add unit test for InlinePanel label as field label
2022-05-06 07:43:00 +10:00
Josh Woodcock
8a4a6b4ced modeladmin - fix issue where action button class conflicted (#6387)
- It was creating styling issues in the wagtailadmin when list export was enabled
- ensure that all actions are contained within the actionbutton div
2022-05-06 06:40:50 +10:00
Matt Westcott
e4d563e492 Fix typo in BoundPanel subclassing example 2022-05-03 11:26:36 +01:00
Thibaud Colas
d2aefa547c
Re-add Pages explorer focus trap. Fixes #8035 (#8447) 2022-04-29 11:33:29 +01:00
Matt Westcott
d308d6930a Ensure wagtail updatemodulepaths works when system locale is not UTF-8 (#8450)
Prompted by https://github.com/wagtail/wagtail/discussions/8362#discussioncomment-2647505 - Python files are expected to be in UTF-8, but `open()` will use the system default encoding, which is likely to be Windows-1252 on Windows. Unfortunately [fileinput](https://docs.python.org/3/library/fileinput.html) doesn't provide an encoding argument until Python 3.10, so we have to over-engineer things a bit to keep things consistent across the rewrite / list / diff modes - opening files in binary mode and explicitly decoding each line as utf-8 (with graceful fallback behaviour on UnicodeDecodeError, so that we don't end up clobbering a file mid-write).
2022-04-29 09:38:27 +01:00
LB (Ben Johnston)
54daa01116
3.0 - add JSON1 SQLite compatibility requirements (#8433) 2022-04-26 13:22:03 +01:00
Thibaud Colas
1cd784adb7 Add basic "multilingual support" section 2022-04-23 01:05:27 +01:00
Thibaud Colas
eedc7fb11c Convert Developing page to Markdown 2022-04-23 01:05:27 +01:00
Thibaud Colas
48e080965b Move JavaScript guidelines to the same page 2022-04-23 01:05:27 +01:00
Thibaud Colas
949362e802 Move HTML and CSS guidelines to a single "UI guidelines" page 2022-04-23 01:05:27 +01:00
Matt Westcott
37784643e9 API docs for Panel 2022-04-22 17:25:30 +01:00
Matt Westcott
06abc49712 Add documentation for the panel rendering mechanism 2022-04-22 17:25:30 +01:00
Matt Westcott
262e94401a
Housekeeping to start work on 4.0 (#8420)
* Add release notes page for 4.0

* Version bump to 4.0

* Rotate deprecation warnings
2022-04-22 14:25:16 +01:00
Matt Westcott
86aa38329d
Fix release notes and updatemodulepaths to cover coreutils module rename (#8396)
Fixes #8376
2022-04-20 17:42:34 +01:00
Paarth Agarwal
da78e0f449 added full_url field for image rendition field api
- resolves #7558
2022-04-20 07:08:24 +10:00
Dan Swain
484ca159d2
Change 2.17 reference to 3.0 (#8389)
There will not be a 2.17 release
2022-04-19 16:56:51 +01:00
Vu Pham
68287e97e1 Add base_url_path functionality to ModelAdmin
- Co-Authored-By: Khanh Hoang <39248704+thoang43@users.noreply.github.com>
- adds ability to set `base_url_path` on ModelAdmin to override the `app_name`/`model` URL building behaviour
- fixes #8038
2022-04-18 14:32:18 +10:00
Simon Krull
4f3ec696ff Fix minor typo in the documentation - third party tutorial 2022-04-18 08:26:22 +10:00
luz paz
5c894345b9 Fix various user-facing and non-user-facing typos
- Found via `codespell -q 3 -S *.po,*.js`
2022-04-18 08:18:03 +10:00
Daniel Kirkham
c877bf9886 convert various documentation pages to Markdown
- Removes use of topic:: in docs as this directive is not needed
- resolves #8323
2022-04-18 08:16:27 +10:00
Karl Hobley
b48e1c083c
Update myst_parser to v0.17.2 (#8380)
To resolve issue with the removed `attrs` module.

See: https://github.com/executablebooks/MyST-Parser/pull/557
2022-04-17 17:57:30 +01:00
Dan Braghis
4cc10322a1
Sync tree: cascade unpublish, move and delete (#7984)
* Add construct_synced_page_tree_list hook and use in page unpublish view

* Implement construct_synced_page_tree_list in simple_translation

but only when sync page tree is enabled

* Add hook documentation

* Add construct_synced_page_tree_list hook tests (#8058)

* Move translated and alias pages when WAGTAIL_I18N_ENABLED and WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE are enabled

Co-Authored-By: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>

* Delete corresponding translations when WAGTAIL_I18N_ENABLED and WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE are true

Co-Authored-By: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>

* Rename the hook to be more specific

* Update singular string version in confirm_move.html

* Update test test_translation_count_in_context

Co-authored-by: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>
Co-authored-by: Karl Hobley <karl@kaed.uk>
2022-04-17 17:34:38 +01:00
Andy Babic
0c1ecc35f1
Add guidance on rendition prefetching to docs (#8363) 2022-04-16 11:18:23 +01:00
Matt Westcott
f5919513d5 Cut down release note for image prefetching and add changelog entry 2022-04-14 12:56:04 +01:00
Andy Babic
7838e58095 Update release notes 2022-04-14 12:12:23 +01:00
Andy Babic
2d5571f316 Include the new methods in the docs 2022-04-14 12:12:23 +01:00
Matt Westcott
6d2dcee4b9
Remove a stray reference to ChooserPanels (#8360)
These are no longer required in Wagtail 3
2022-04-14 11:09:31 +01:00
Matt Westcott
cdeb1cf479
Add use_json_field=True to all StreamField examples (#8359)
This argument should be used on all new StreamFields created under Wagtail 3. It does add some clutter to the examples, but only using it in select cases would create more confusion...
2022-04-14 11:09:19 +01:00
Rishank
7861014316 add Monospace system UI font stack
resolves #8043

ui-monospace, Menlo, Monaco, ... "Courier New", monospace

Operating Systems and their fonts:
ui-monospace -> MacOS (Menlo, Monaco fallback)
Cascadia  ->Windows (since Vista)
Roboto -> Android (since 4.0)
Fira -> Firefox OS
Droid -> Android (<4.0)
Oxygen -> KDE
Ubuntu -> Ubuntu
In addition, ui-monospace is supported for Safari/MacOS (only way to access SF Mono in Mac);

Cascadia is a new Microsoft font-face, and Segue is the fallback.
2022-04-14 19:44:29 +10:00
jacobtoppm
d9aaf8e581 Changelog and release notes for image deduplication 2022-04-13 17:59:51 +01:00
Matt Westcott
90307f9deb Add upgrade note for removal of panel types 2022-04-13 15:44:26 +01:00
Matt Westcott
7223fd2b4e Release note for #8317 2022-04-13 15:40:07 +01:00
Matt Westcott
d63801b533 Update release note for page editor redesign 2022-04-13 14:46:05 +01:00
LB Johnston
edf881e4ea 3.0 release notes - move 'fix' to fix section 2022-04-13 23:41:54 +10:00
Jake Howard
59f901fb82 Use JSONField to store form submissions 2022-04-13 23:40:56 +10:00
Abdul
1822d7eee2 display help text message for tag field
- resolves #1874
- ensure message is dynamic based on the setting TAG_SPACES_ALLOWED
- Update wagtail/admin/templates/wagtailadmin/widgets/tag_widget.html
2022-04-13 13:37:30 +10:00
Steve Stein
f323d88765
Move page meta information from the header to a new status side panel component inside of the page editing UI (#8285)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-13 03:21:51 +01:00
Matt Westcott
bd3efa40cb Reorganise 3.0 upgrade consideration notes 2022-04-13 08:36:08 +10:00
Steve Stein
629ced01ca
Page editor underline tabs (#8266)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-12 16:11:08 +01:00
Matt Westcott
be6526e95d Release note for #8271 2022-04-12 13:09:59 +01:00
Matt Westcott
8f3fdc5365 Fill in release date for 2.16.2 2022-04-11 15:59:07 +01:00
Matt Westcott
31fc598b2f Release note for #8298 in 2.16.2 2022-04-11 15:58:40 +01:00
Matt Westcott
999e745de5 Fill in release date for 2.15.5 2022-04-11 14:39:59 +01:00
Matt Westcott
93e92c1528 Release note for #8328 in 2.16.2 2022-04-11 13:12:16 +01:00
Matt Westcott
d42eb4ed01 Release note for #8302 in 2.16.2 2022-04-11 10:28:49 +01:00
Dan Braghis
13b60a2688 Update changelog/release notes for 2.15.5 and 2.16.2 backports 2022-04-10 10:10:08 +01:00
AndresMRM
483b7d27b3 Add internationalisation UI to modeladmin
Includes changes from #6230

Co-Authored-By: Dan Braghis <dan@zerolab.org>
2022-04-10 09:17:41 +01:00
John-Scott Atlakson
e7758d58cb Automatically ignore GenericRelation when copying pages 2022-04-10 09:00:06 +01:00
Abdul
134bd19bef add ability for form builder to split choices by newline
- fixes #3001
- keep support for comma separated lists if supplied
2022-04-09 22:30:10 +10:00
Dan Braghis
54e9d09421 Release notes for #8161 2022-04-08 17:47:10 +01:00
Steve Stein
8bbf41627b
Implement new slim page editor header with breadcrumb (#8231)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
Co-authored-by: Dan Braghis <dan@zerolab.org>
Co-authored-by: Karl Hobley <karl@kaed.uk>
2022-04-08 17:36:47 +01:00
Thibaud Colas
a34e267b9d Add release notes for #8310 2022-04-08 11:51:09 -04:00
Thibaud Colas
4dc5f3c595 Remove legacy sidebar, refactoring slim sidebar implementation 2022-04-08 11:51:09 -04:00
John-Scott Atlakson
38f2e0b5b5 Fix page copy in Wagtail admin ignores exclude_fields_in_copy 2022-04-08 10:01:17 +01:00
Coen van der Kamp
5c31aad368 Pin sphinx-wagtail-theme==5.1.1 2022-04-08 09:10:22 +10:00
Coen van der Kamp
7edb577d94 Pin sphinx-wagtail-theme==5.1.0 2022-04-07 18:53:52 +01:00
Kevin
0ed4375c3d Fixes incorrect link to Wand docs 2022-04-07 16:20:43 +01:00
Kyle J. Roux
844efa696a Ensure thumb_col_header_text is used by ThumbnailMixin correctly
- fixes #8269
because you cannot dynamically set attributes on bound methods, we need to update the current classes version of admin_thumb so it can be accessed in sub classes
2022-04-08 00:23:45 +10:00
Hitansh Shah
0b8a8c2024 Added image management command to purge and regenerate renditions
- resolves #8107
2022-04-07 23:57:44 +10:00
eevel
1c7c5cfc0b Allow specifying an alternative storage backend for image renditions
- add setting `WAGTAILIMAGES_RENDITION_STORAGE`
- add AbstractRendition file storage to use new setting
- resolves #3183
2022-04-07 23:33:46 +10:00
LB Johnston
7d3ee400fe 3.0 release notes - fix heading 2022-04-07 23:28:03 +10:00
Jake Howard
5522769a9c Validate to and from addresses on email form
This will result in a migration, but the migration from a `CharField` to an `EmailField` won't hit the database, as `EmailField` is just a `CharField` with extra default validation.
2022-04-07 22:52:12 +10:00
LB Johnston
5f4942f9ad documentation - fix broken docs references
- remove 2.16 reference to setting that no longer exists
2022-04-07 12:52:03 +01:00
Caio Jhonny
21202e421e Add missing import django models (#8301)
Django models need to be imported
2022-04-07 12:18:37 +01:00
Matt Westcott
096ab2a8b4 Release note for #8059 in 2.16.2 2022-04-06 19:26:39 +01:00
Matt Westcott
7f46688741 Fix banner date logic
Months in `new Date(y, m, d)` are 0-based, just to be awkward
2022-04-06 18:01:54 +01:00
Matt Westcott
ad64ac3e91 Release note for #8292 2022-04-06 17:39:50 +01:00
Matt Westcott
d65d10d3de Release note for #8293 2022-04-06 17:38:44 +01:00
Matt Westcott
c732b2bedd Add upgrade note about dropping Jinja2 2.x support 2022-04-06 14:13:32 +01:00
Matt Westcott
db6e0adbc0 Add Jinja2 note to 2.16.2 release notes 2022-04-06 13:21:37 +01:00
Matt Westcott
84605d8b88 Add 2.15.5 release notes 2022-04-06 13:21:33 +01:00
Sandil Ranasinghe
cb7fc4cb14 Rename BASE_URL to WAGTAILADMIN_BASE_URL & add docs
- add documentation for WAGTAILADMIN_BASE_URL
- ensure that WAGTAILADMIN_BASE_URL is used via a util so that it can fallback from request
- resolves #3248
- remove settings URL from pagination template - not required for query string URLs
2022-04-06 19:43:46 +10:00
vuph
5ac259f682 Add ValidationError for tags with more than 100 characters
- Co-Authored-By: Khanh Hoang <39248704+thoang43@users.noreply.github.com>
- Add max_tag_length field to avoid hard coding 100
- fixes #4564
2022-04-06 07:39:17 +10:00
Abdul
9007bda686 documentation - add admin tag manager doc
- add documentation that describes how to use `ModelAdmin` to manage tags
- resolves #1220
2022-04-06 07:21:34 +10:00
Matt Westcott
c8564b0be4 Upgrade notes for #8115 / #8123 2022-04-05 22:07:59 +01:00
ShwetKhatri2001
177f005a20 documentation - migrate editor's guide to markdown from RST
- resolves #8106
2022-04-06 06:48:43 +10:00
saurabh
a641057fc2 fixed the errors in deploying.rst and i18n.rst 2022-04-04 06:48:02 +10:00
PaarthAgarwal
1d22985912 Fix issue where normalize.css would introduce font issues
- global font family on some elements set by normalize.css would override the desired font
- font stack was not correctly used across some elements
- fixes #8016
2022-04-03 22:27:09 +10:00
talkshrey
7f7fd15831 docs - fix spacing added between -m and http command
- see #8257
2022-04-03 22:12:04 +10:00
anujaraj
f3720a7652 Fix missing translations in workflow templates
- fixes #8214
- see #8240 & #8238
2022-04-03 22:03:50 +10:00
James Ray
2cae3083f5
Add missing lang attributes to <html> elements. Fix #8212 (#8220)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-01 23:50:47 +01:00
Harris Bard Lapiroff
1adc82c044
Add trimmed to blocktrans tags. Fix #8217 (#8226) 2022-04-01 23:16:51 +01:00
Jesse Menn
5eeb8cca40
Stop skipping heading levels in Wagtail welcome page (#8223)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-01 22:30:55 +01:00
Matt Westcott
113005aa05
Page description (#8164)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
Co-authored-by: Kalob Taulien <kalob.taulien@gmail.com>
2022-04-01 22:16:41 +01:00
Thibaud Colas
34cd9e2aaa Code review cleanup 2022-04-01 17:01:26 -04:00
Andy Chosak
00adeb8cf2 Fix bulk publishing of pages without revisions
Currently bulk publishing raises an error if you include pages that
exist in the database without any revisions. This commit ensures
that a revision exists before the page is published.

Fixes issue 8187.
2022-04-01 14:50:53 -04:00
Saurabh
a70aefe243
fixed punctuation issues and modified text in wagtail documentation. (#8262) 2022-04-01 17:12:57 +01:00
Coen van der Kamp
68f2cc5f7e
Add Wagtail Space NL 2022 banner to docs (#8264) 2022-04-01 10:58:02 +01:00
LB Johnston
8b6b0425de forms - remove unidecode and legacy clean name approach
- resolves #7975
2022-03-31 14:53:44 +01:00
Matt Westcott
da819c0c36 Release note for #8075 2022-03-31 14:44:02 +01:00
Matt Westcott
97e781e31c Renumber Wagtail 2.17 to 3.0
As per discussion on https://github.com/wagtail/wagtail/discussions/7732, the changes in the upcoming release (sidebar redesign, removal of hallo.js, module reorganisation) warrant a version bump to 3.0 if we're following semantic versioning.
2022-03-31 06:38:27 +10:00
Matt Westcott
ff18b4c303
Remove description of some-day milestone (#8255)
Issues that are accepted but not prioritised will now be indicated by removing the 'Unconfirmed' label, rather than assigning to a milestone.
2022-03-30 15:52:51 -04:00
Hitansh Shah
a8106e5072 Added lint-server, lint-client, format-server and format-client tasks to the Makefile (#8177) 2022-03-30 14:14:30 +01:00
jacobtoppm
aaf1b53e20 Release notes for #8037 and missing changelog entries for other JSONField conversions 2022-03-29 18:18:07 +01:00
Sage Abdullah
dcae64c255 Allow StreamField to use JSONField internal type via use_json_field kwarg
Add system check for use_json_field in StreamField

Change system check level to Warning

Add use_json_field argument to StreamField in test models

Use RemovedInWagtail219Warning instead of a system check

Handle unpacked values in to_python when use_json_field is True

Duplicate models and tests for JSONField-based StreamField

Add basic tests for JSONField-based StreamField

Add json_field property in StreamField to unify JSONField usage

Add docs

Don't use destructuring for kwargs in deconstruct

Add versionchanged note to StreamField reference
2022-03-29 18:18:08 +01:00
Thibaud Colas
2fb2629ba3 Add release notes for #8218 and #8225 2022-03-28 15:16:18 +01:00
Thijs Kramer
128b319b99 Fix permission error when sorting pages having page type restrictions 2022-03-26 18:31:05 -07:00
Kyle Hart
3fabe10d5c
Remove Spacing section from CSS guidelines (#8216)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>

Removed Spacing section. It’s no longer relevant because we’re now using Prettier.
2022-03-26 15:56:44 +00:00
Matt Westcott
76e1bd2bbe Update release notes for #8110 2022-03-26 11:34:21 -04:00
Matt Westcott
5199df3a2a Fix some references to wagtail/test/manage.py 2022-03-25 15:03:03 -04:00
Matt Westcott
5ddc374b6c Release notes for #8191 and #8011 2022-03-25 14:31:33 -04:00
Seb
0fd23e5aba Remove deprecated jinja2 references 2022-03-25 11:29:01 -04:00
Matt Westcott
dc4c9b704d Rename the EditHandler base class to Panel 2022-03-25 10:44:25 -04:00
Matt Westcott
6bb26c774e Move template paths from edit_handlers to panels 2022-03-25 10:44:25 -04:00
Matt Westcott
c7774ba0be Move wagtail.contrib.forms.edit_handlers to wagtail.contrib.forms.panels 2022-03-25 10:44:25 -04:00
Matt Westcott
b189ab8382 Move wagtail.admin.edit_handlers to wagtail.admin.panels 2022-03-25 10:44:25 -04:00
Matt Westcott
2a07990770 Formally deprecate StreamFieldPanel, BaseChooserPanel etc 2022-03-25 10:44:25 -04:00
LB (Ben Johnston)
038125427c
docs & github issue template - update bug issue triage (#8096)
* update github bug template to have status:Unconfirmed

- by default, ensure that all new bugs are raised with the label status:Unconfirmed
- for the bug template where 'hints' exist - use HTML comments to hide these

* docs - update issue tracking

- convert from RST to markdown
- add details about when to use Github discussions instead of an issue
- add details about bugs will be raised with the status:Unconfirmed
- add link to PR triage guide
- add links to release schedule & roadmap
- put less emphasis on milestones for new issue creation
2022-03-24 23:28:13 +01:00
Dharma-09
d0133d5fce Add Pinterest embed support
- resolves #5471
2022-03-24 08:10:17 +10:00
Mariusz Felisiak
7b4cf43e2e Removed outdated handling of length parameter to If-Modified-Since header
- The length parameter is not described in RFC-7232 and it's against HTTP/1.0 and HTTP/1.1 specifications.
- It was an old and unofficial extension set by some ancient versions of IE.
- See https://httpwg.org/specs/rfc7232.html#header.if-modified-since
- https://github.com/django/django/pull/15500
2022-03-23 08:36:39 +10:00
PaarthAgarwal
ff11b9c5c6 update @wagtail/stylelint-config-wagtail npm package
- resolves #8121
2022-03-22 08:24:52 +10:00
Riley
074ea8c416 prevent page refresh on enter key in header seach
- resolves #3746
- add a hidden & disabled first submit input so that ‘enter’ does not trigger submit
- allow the behaviour of the actual submit button to still work as expected
- intentionally HTML only solution as it is simpler and more accessible than JS override
2022-03-18 22:33:47 +10:00
LB (Ben Johnston)
b2b18aa437
Update node installation instructions (#8154) 2022-03-17 21:30:44 +00:00
Karl Hobley
75cc7da38a Move wagtail.core to wagtail 2022-03-17 17:19:59 +00:00
Karl Hobley
0fd99886a2 Move tests to test 2022-03-17 17:19:59 +00:00
Karl Hobley
da04f1e50b Move core.utils to core.coreutils 2022-03-17 17:19:59 +00:00
PaarthAgarwal
d38c664c1f README.md - add darkmode and lightmode setting for logo
- Added wagtail-inverse.svg
2022-03-17 08:21:57 +10:00
Matt Westcott
5ffb78e3c2 Release note for #8060 2022-03-16 12:37:26 +00:00
Matt Westcott
dd37901428 Add documentation for the permission kwarg on FieldPanel 2022-03-16 11:47:51 +00:00
Matt Westcott
b37b1b8504 Pass the for_user argument to EditHandler-derived forms
This covers pages, snippets, ModelAdmin and settings. This assumes that the form is a subclass of PermissionedForm such as WagtailAdminModelForm - for pages and snippets this is documented as a requirement (https://docs.wagtail.org/en/stable/advanced_topics/customisation/page_editing_interface.html#customising-generated-forms); for settings it's undocumented (but would entail setting `base_form_class`, and from there it's implicit that the same rules as snippets apply).

For ModelAdmin, it's possible to set a custom form by overriding get_form_class. This isn't documented, but the tests from #2752 make use of this - so in case similar code exists in the wild, I've added an upgrade note.
2022-03-16 11:47:51 +00:00
Serafeim Papastefanos
93da5bc793 Documentation - modelAdmin - add form clean example 2022-03-16 21:16:28 +10:00
LB Johnston
6439b1e8a5 refine documentation guidelines for links
- add clarity that page links can also get auto-generated labels
- add example of a reference link using a custom label
- format with prettier
2022-03-16 20:51:58 +10:00
LB Johnston
7c3ddb3bfc documentation - adopt MyST syntax for form builder section
- the original conversion to markdown happened around the same time as the MyST conversion
- this meant that the syntax was not in sync
- also run prettier over markdown for consistent formatting & whitespace
- see #8007
2022-03-16 20:51:43 +10:00
p0lygun
fda36c7343 Documentation - convert advanced topics docs to markdown 2022-03-16 20:48:03 +10:00
LB (Ben Johnston)
042d077fc1
Minor accessibility fixes to new slim sidebar menu items (#8015)
* Consistently set `aria-haspopup="menu"` for all sidebar menu items that have sub-menus (LB (Ben Johnston))
 * Make sure `aria-expanded` is always explicitly set as a string in sidebar (LB (Ben Johnston))
 * Use a button element instead of a link for page explorer menu item, for the correct semantics and behavior (LB (Ben Johnston))
2022-03-15 14:53:40 +00:00
Thibaud Colas
14280ad7ea
Convert all UI code to CSS logical properties (#8051)
- Rewrite all styles to use logical properties
- Update Stylelint configuration to include logical properties checks
2022-03-15 13:21:06 +00:00
Nicolas Ferrari
11e7936562
Add alwaysdata among Cloud providers in documentation (#8070)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-15 12:29:59 +00:00
PaarthAgarwal
4b07e4214a
Remove most uppercased text styles from admin UI. Fix #7624 (#8111)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-15 12:07:07 +00:00
PaarthAgarwal
6a84cf4583
Switch focus outlines implementation to :focus-visible for cross-browser consistency. Fix #7994 (#8113)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-15 11:33:12 +00:00
LB Johnston
7067c81604 update release notes for #8101
- As this is only a dev/testing dependency, and declaring the dependencies that you use directly is likely standard knowledge
- if anyone does overlook it, it'll presumably fail in an obvious and easily fixed way
- see 8ac683ef5c (r68486362)
2022-03-15 08:12:17 +10:00
LB Johnston
8ac683ef5c add changelog entry for #8101 2022-03-11 15:21:47 +00:00
Thibaud Colas
fc0f76ea9d Switch from jinjalint to curlylint 2022-03-11 15:21:47 +00:00
Thibaud Colas
4c2f160736 Remove docutils pin 2022-03-11 15:21:47 +00:00
Thibaud Colas
c5aa326565 Switch to Markdown tables for documentation 2022-03-11 15:21:47 +00:00
Thibaud Colas
a21490bb37 Improve spacing in new Sphinx output 2022-03-11 15:21:47 +00:00
LB Johnston
4db71de5a2 add release notes for #8084 2022-03-10 19:21:34 +10:00
LB (Ben Johnston)
e3b6e79a8e
Documentation - migrate form builder docs to markdown (#8007)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-10 08:43:49 +00:00
LB (Ben Johnston)
6ed65f14c6
Move Markdown docs to MyST parser. Fix #8074 (#8084) 2022-03-09 11:48:19 +00:00
LB (Ben Johnston)
58a8a31dd6
docs - add third party tutorials Jan/Feb 2022 (#8067) 2022-03-09 09:19:43 +00:00
Steve Stein
5996c5dd29
Switch icons implementation to SVG, with checkbox improvements (#8054) 2022-03-07 17:06:19 +00:00
LB (Ben Johnston)
70aabb5d34
Refine documentation for show_in_menus (#8072)
- this appears to be a point of confusion, where developers are unsure what this field does
- this update makes it more explicit that this field does not do anything, except the queryset usage, by default
2022-03-04 14:34:21 +00:00
Matt Westcott
ef2fa2e394 Release note for #7684 2022-03-02 15:56:06 +00:00
Matt Westcott
92cc026694 Rename docs page to 'Using forms in admin views' 2022-03-02 15:55:25 +00:00
Matt Westcott
f619316003 Add upgrade consideration note for third-party packages implementing their own panels 2022-03-02 15:55:25 +00:00
Matt Westcott
31139e8b24 Remove references to StreamFieldPanel and ChooserPanels from docs 2022-03-02 15:55:25 +00:00
Matt Westcott
786a4a3384 Provide a documented register_form_field_override method for apps to register their own form fields with WagtailAdminModelForm 2022-03-02 15:55:25 +00:00
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
aaddf81b36 update release notes with Hallo removal
- resolves #6228
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
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
Matt Westcott
e59c8bc644 Fix heading levels 2022-02-25 13:06:40 +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
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
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
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
sag᠎e
d191504e15
Update development instructions to use Node.js 16 (#8019) 2022-02-21 11:53:08 +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
51e760810c Release note for #7985 in 2.16.2 2022-02-18 10:58:57 +00:00
Serafeim Papastefanos
25ed1ba38e Update django-treebeard dependency to 4.5.1 or above (#7985)
The django-treebeard 4.3.x is not compatible with Django 4.x because of the dreaded ugettext alias removal problem. This makes sure that a proper django-treebeard version will be installed.

*IMPORTANT*: Please notice that django treebeard *does not* officially support django 4.x. However from my tests I have concludeded that it works fine after you install the version 4.5.x.
2022-02-18 10:53:27 +00:00
Thibaud Colas
52048ba0e8 Release notes for #7916 2022-02-15 16:31:57 +00:00
Thibaud Colas
c5d2f98205 Remove redundant noopener from noreferrer rel attributes 2022-02-15 16:31:57 +00:00
Thibaud Colas
ae14fa6e76 Remove JS compatibility code for IE11 2022-02-15 16:31:57 +00:00
Thibaud Colas
9ecc105178 Remove legacy browser styles 2022-02-15 16:31:57 +00:00
Dan Braghis
716bf92c2d Add changelog for #7967 2022-02-15 13:09:39 +00:00
Dan Braghis
d10f15e558 Reformat with black 2022-02-15 13:06:17 +00:00
Dan Braghis
6dae6e5d07 Add and configure black
This:
- updates the pre-commit configuration and setup.py testing dependencies
- updates isort/flake8 configuration for black
- adds black linting to Makefile and CircleCI configuration
- updates editorconfig with the new line length (88) for py files
- updates python guidelines in docs
2022-02-15 13:06:17 +00:00
Steve Stein
f968aac038
Update system font stack value for compatibility. Fix #7724 (#7972)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>

- `-apple-system, BlinkMacSystemFont` - These are used to target modern iOS Safari, macOS Safari, macOS Firefox and macOS Chrome's system fonts. 
- ` 'Segoe UI',  system-ui,` - These fonts target windows machines on Windows 7+ [reference](https://markdotto.com/2018/02/07/github-system-fonts/#the-stack). Having system-ui placed after Segoe UI allowed Segoe UI to take precedence when used on Windows machines set to Chinese ( Simplified ) language. There are some known language issues around `system-ui` being used: [This github article](https://infinnie.github.io/blog/2017/systemui.html). However, the purpose of `system-ui` [(reference here)](https://drafts.csswg.org/css-fonts-4/#valdef-font-family-system-ui) is to allow web content to integrate with the look and feel of the native OS. Which makes this font-family a good choice for other devices _if_ the problem is solved by putting Segoe UI first. 
- `Roboto,` - This is our fallback font for androids devices. Having Segoe set before this allows windows to use its system default font even if you have installed Roboto for development reasons. 
- `Helvetica Neue,` - This is a fallback for older macOS
- `Arial` - Using this to catch any of the very old Windows versions (shoutout windows 95)
- `sans-serif` - Our last resort to get a font without serifs
- `  'Apple Color Emoji',  'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';` - All the emoji's for the OS's mentioned above. 😁
2022-02-14 15:17:02 +00:00
Jannis Vajen
7e6755ec62 Add missing import statement in code example 2022-02-13 16:33:46 +00:00
Steve
01986cfa17 Indent templates with djhtml 2022-02-12 01:15:51 +00:00
Steve Stein
72886c0a62
Djhtml install and configure with pre-commit (#7940) 2022-02-12 01:04:21 +00:00
Dan Braghis
03c2f2a4cb Add changelog for #7946, #7947, #7951 2022-02-11 14:41:56 +00:00
Mads Jensen
de3fcba9e9 Fix warnings from flake8-comprehensions. 2022-02-11 14:34:00 +00:00
Matt Westcott
10df5c2c0d Fill in release date for 2.16.1 2022-02-11 13:31:27 +00:00
Matt Westcott
a7cafc3181 Fill in release date for 2.15.4 2022-02-11 13:30:58 +00:00
Thibaud Colas
046685149a
Add new version fo Wagtail Space docs banner. Fix #6089 (#7956)
* Add new version fo Wagtail Space docs banner. Fix #6089

* Fix closing date

Co-authored-by: Matt Westcott <matthew@torchbox.com>
2022-02-11 12:38:22 +00:00
LB Johnston
f7836c2014 reorder nav (sidebar) imports so that hooks can still override them (#7954)
- main_nav_css & main_nav_js were added when the new slim sidebar was being built
- with the legacy styles/js - there was little risk of there being conflicts
- with the new sidebar CSS, this sidebar bundle comes with a large duplicate of what is in core.css so we should add it before the hooks run so that hook scan override if needed as per our documentation
- this is a temporary fix for #7943 - ideally we should avoid sidebar.scss bundle duplicating so much of the core css
- note: JS is lower risk but should follow the same convention
2022-02-11 11:01:52 +00:00
Matt Westcott
adeabd9633 Prevent error on creating automatic redirects for sites with non-standard ports
Fixes #7942 - get_dummy_request should not include the port number in SERVER_NAME.
2022-02-11 10:40:50 +00:00
Steve Stein
6382945a7b
Add ESlint & Stylelint to pre-commit hooks (#7931). Fix #7909
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-02-10 16:01:32 +00:00
Matt Westcott
01fd201c36 Release note for #7944 in 2.16.1 2022-02-10 15:43:44 +00:00
Matt Westcott
c81743c17b Add 2.16.1 release notes
These don't need to go in the 2.17 notes, since 2.16.1 will be released first and it's implied that everything in it will be in 2.17.
2022-02-10 13:49:35 +00:00
Matt Westcott
fe847a1dbb Add 2.15.4 release notes 2022-02-10 13:46:45 +00:00
Dennis McGregor
1bbf952453 Apply unlocalize filter to bulk action object ids
- Bulk Actions were failing for objects with id > 999 in projects with
- Django settings `USE_L10N` and `USE_THOUSAND_SEPARATOR` enabled.
- Test bulk action checkboxes handle USE_THOUSAND_SEPARATOR setting
2022-02-10 19:34:00 +10:00
Ihor Marhitych
da293bce35 fix issue where bulk actions would return, not raise 404
return Http404 -> raise Http404
2022-02-09 21:51:47 +10:00
Matt Westcott
329671c0bc Add line for 2.17 in compatibility table 2022-02-08 19:00:47 +00:00
Matt Westcott
8d40a978ef Remove old versionadded / versionchanged notes 2022-02-08 19:00:47 +00:00
Matt Westcott
00582ba35a Remove 'db' and 'postgres_search' search backends 2022-02-08 19:00:47 +00:00
Matt Westcott
da5ca3a2e3 Release note for #7934 in 2.16.1 2022-02-08 12:02:24 +00:00
Matt Westcott
e4fbb4cd7f Fill in release date for 2.16 2022-02-07 14:06:12 +00:00
LB (Ben Johnston)
f2257acc2e
Remove dateformat library usage (#7907). Fix #7904
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-02-04 14:13:48 +00:00
Carlton Gibson
cd8a1033b5
Updated docs link to supported Django version (#7917)
Using the `stable` URL fragment will always point to the latest major version, whereas 3.1, which was linked, is now end of life.
2022-02-04 12:33:56 +00:00
Thibaud Colas
af942a27e4
Reformat codebase with Prettier (#7912)
- Automated reformatting
- Manually change code where Prettier reformatting causes issues
- Revert "Disable Prettier formatting in CI for now"
2022-02-04 11:57:55 +00:00