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

12657 Commits

Author SHA1 Message Date
Steve Stein
229fbf476a
Sidebar style updates (#8118)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-23 03:27:12 +00: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
a412dcc8d5 styles - disable text-transform property-disallowed-list for required usage 2022-03-22 08:24:52 +10:00
PaarthAgarwal
ff11b9c5c6 update @wagtail/stylelint-config-wagtail npm package
- resolves #8121
2022-03-22 08:24:52 +10:00
PaarthAgarwal
91970e66e5 disabled text-transform tailwind plugin 2022-03-22 08:11:41 +10:00
PaarthAgarwal
255d5e9b03 removed redundant text-transform instances
removed page-specific overrides css from importing
2022-03-22 08:11:41 +10:00
LB Johnston
fcb26f51f2 format readme with prettier 2022-03-22 07:38:58 +10:00
Karl Hobley
5a4d929c17 Add some more dummy modules 2022-03-21 12:27:17 +00:00
Karl Hobley
2c854cc929 Add rule into upgrademodulepaths command for rewriting wagtail.tests imports 2022-03-20 20:29:28 +00:00
Karl Hobley
7db4714a82 Add some dummy modules for wagtail.tests 2022-03-20 20:29:28 +00:00
Karl Hobley
0721b0edfd Add a replacement rule into wagtail updatemodulepaths for the wagtail.core rename
This adds a new rule into our existing `wagtail updatemodulepaths` command for the rename of `wagtail.core` to `wagtail` introduced in #8011.
2022-03-20 20:18:10 +00:00
LB Johnston
93a1ffe5da fix typo from #8119 2022-03-18 22:39:33 +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
Karl Hobley
fe658f021f Add some more dummy modules for moved wagtail.core modules 2022-03-18 00:07:36 +00:00
LB (Ben Johnston)
b2b18aa437
Update node installation instructions (#8154) 2022-03-17 21:30:44 +00:00
Karl Hobley
b356fe683f Don't crash if wagtail/__init__.py is loaded without Django installed 2022-03-17 17:19:59 +00:00
Karl Hobley
53d7001300 Add dummy modules to maintain wagtail.core imports 2022-03-17 17:19:59 +00:00
Karl Hobley
536ff23399 Rename WagtailCoreAppConfig to WagtailAppConfig 2022-03-17 17:19:59 +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
6e177164d5 Merge sites utilities into sites models 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
b1f311f7bc make FieldPanel.is_shown work without a request object
The create_log_entries_from_revisions management command fetches a comparison object from the edit handler class without binding to a request, and is_shown is called in that process.
2022-03-16 11:47:51 +00:00
Matt Westcott
dd37901428 Add documentation for the permission kwarg on FieldPanel 2022-03-16 11:47:51 +00:00
Matt Westcott
1aeb633f9b Implement permission argument 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
Matt Westcott
cb52b95e76 Incorporate PermissionedForm into WagtailAdminModelForm 2022-03-16 11:47:49 +00:00
Matt Westcott
bbd3c22f30 Update InlinePanel for change in ClusterForm formsets/exclude_formsets semantics
django-modelcluster 6.0 includes https://github.com/wagtail/django-modelcluster/pull/158, which changes the semantics of formsets/exclude_formsets so that a ClusterForm that specifies neither of them will have no formsets defined, rather than formsets for all child relations. (This corrects an implementation wart in the upcoming EditHandler refactor.) This doesn't affect Wagtail for the most part, because EditHandler passes an explicit formsets option - but nested InlinePanels currently rely on the old behaviour, because modelcluster <=5 provides no way to pass the inner panel's formset definition inside the outer one. We fix this by adding the necessary 'formsets' key introduced in https://github.com/wagtail/django-modelcluster/pull/158.
2022-03-16 11:46:30 +00:00
Serafeim Papastefanos
93da5bc793 Documentation - modelAdmin - add form clean example 2022-03-16 21:16:28 +10:00
nmorduch
e748b1f51a Update core team & alumni list
- Add Tim Allen and Vince Salvino to the core team list
- Update Dawn's affiliation to Wharton
- Move Andy Babic and Bertrand Bordage to alumni list
- Add Michael van Tellingen to the alumni list
2022-03-16 21:13:48 +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
Thibaud Colas
a50ebe9f83
Tailwind setup follow-up: RTL support and Windows High Contrast mode (#8117)
Co-authored-by: LB (Ben Johnston) <mail@lb.ee>
2022-03-15 15:05:18 +00: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
855486157b Make sure CircleCI build installs all dependencies 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
Matt Westcott
06eb4c2afd Use released django-modelcluster when testing against Django main
django-modelcluster 5.3 now ships with the provisional Django 4.1 compatibility fix.
2022-03-11 14:30:29 +00:00
LB Johnston
4db71de5a2 add release notes for #8084 2022-03-10 19:21:34 +10:00