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

13781 Commits

Author SHA1 Message Date
Sage Abdullah
89fb9df3b7 Bring back snippet listing buttons 2022-08-09 13:01:50 +01:00
Sage Abdullah
80d15637d8 Use tables component in snippets listing view 2022-08-09 13:01:50 +01:00
Sage Abdullah
fd8d57a0ea Sort objects in descending order by updated_at and pk 2022-08-09 13:01:50 +01:00
Sage Abdullah
0cae35496c Resolve updated_at value from the database-level 2022-08-09 13:01:50 +01:00
Sage Abdullah
ed87aa053e Add default title, updated at, and status columns to generic IndexView 2022-08-09 13:01:50 +01:00
Sage Abdullah
25e753e64d Add BulkActionsCheckboxColumn component 2022-08-09 13:01:50 +01:00
Sage Abdullah
613f71837b Add StatusTagColumn component 2022-08-09 13:01:50 +01:00
Akash-Kumar-Sen
46bb760319 Ensure page explorer header item aligns with toggle on sm device
- fixes #8939
2022-08-09 21:29:20 +10:00
Akash Kumar Sen
71dfb4090b fix overlapping of report filters/table & form submissions
- as of 3.0 - report filters would overflow the viewport in Wagtail
- fix layout issue with form submission lists introduced with filtering changes
- remove invalid css grid-column-start (unused)
- adopt theme variables for all main spacing instead of hard-coded em/rem/px values
- fixes #8929
2022-08-08 22:05:01 +10:00
tijani
61f6aeeb1a Add path & re_path pattern types for RoutablePageMixin
* Modified route decorator so it adds new route to view depending on pattern type; default to path
* Made a separate decorator
* Renamed route to path and updated RoutablePage models
* Added a check to warn user when using regex with path decorator
* Made @route alias of @re_path, added tests for @re_path
* resolves #7031
2022-08-08 20:09:38 +10:00
anujaraj
3576e27ab0 added border to tooltip dropdown for high contrast & fix arrow
- fixes #8830
2022-08-06 23:07:01 +10:00
LB Johnston
c731369bfe changelog - add additional fix mapped against #8925 2022-08-06 22:13:05 +10:00
LB Johnston
c9248725e2 add changelog for #8948 2022-08-06 21:56:48 +10:00
Andy Chosak
722e292d63 Add testing against MySQL / Django 4.1.x 2022-08-06 21:54:32 +10:00
Andy Chosak
433bcc9124 Fix MySQL search on Django 4.1
In Django 4.0, a search match expression would produce this SQL WHERE
clause:

WHERE ... MATCH (`title`, `body`) AGAINST (query IN BOOLEAN MODE)

In Django 4.1, this behavior was changed:

https://code.djangoproject.com/ticket/32691
407fe95cb1

so that instead this SQL WHERE clause is generated, explicitly
filtering against "= True":

WHERE ... MATCH (`title`, `body`) AGAINST (query IN BOOLEAN MODE) = True

This no longer works properly because MATCH returns a floating point
score as a measurement of the match quality, not a boolean value:

https://dev.mysql.com/doc/refman/8.0/en/fulltext-boolean.html

In order for filtering on "= True" to work, this commit changes the
match expression SQL to be:

WHERE ... CASE WHEN MATCH (`title`, `body`) AGAINST (query IN BOOLEAN MODE) THEN True ELSE False END = True
2022-08-06 21:54:32 +10:00
LB Johnston
c8713f1dab add contributor name for #8950 2022-08-06 21:42:10 +10:00
LB Johnston
573da5d307 login/password form - styling fix for #8925 2022-08-06 21:37:42 +10:00
Akash-Kumar-Sen
827bcf3dbf Documentation - improve organisation of settings reference #8950
- fixes #8863
2022-08-06 21:20:22 +10:00
LB Johnston
167b4c9302 changelog entry for #8925 2022-08-06 19:06:19 +10:00
PaarthAgarwal
d2529cad92 Restyling all log in & password reset flow pages
- add id=main to all login flow form templates for non-JS skip link usage
- remove inline script to focus on username field in login form
- adopt a consistent DOM layout for all log in & password reset flow forms
- ensure h1 is at the top of the DOM in all forms
- add wagtail logo to sign in form and document the ability to override it
- fixes #2309
2022-08-06 19:06:19 +10:00
PaarthAgarwal
61cc487add remove unused change password template 2022-08-06 19:06:19 +10:00
Thibaud Colas
eac5e0bc2c Finish re-implementing form styles based on design feedback & code review
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Thibaud Colas
3d96e7fbe7 Implement collapsible and linkable panels
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Thibaud Colas
af9b16e93d Re-implement base form field styles based on new page editor designs
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Matt Westcott
5521e3b59f Update panel templates for new designs (EditHandler rewrite)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-08-05 10:36:52 +02:00
LB Johnston
3b84559b0f add changelog for #8855 2022-08-05 08:34:14 +10:00
Matt Westcott
c4d6c7d6c5 Add docs for DRF-based choosers 2022-08-05 08:34:14 +10:00
Matt Westcott
19a7708c7c Split out a get_results_page method from chooser view
This allows us to override this logic to swap in data sources that have built-in pagination.
2022-08-05 08:34:14 +10:00
Matt Westcott
02d836fe3e Make per_page configurable on viewsets 2022-08-05 08:34:14 +10:00
Matt Westcott
6a881e0a5d Hide 'Edit this item' link from chooser widget if edit_url is not supplied 2022-08-05 08:34:14 +10:00
Matt Westcott
ecefdd2850 Add an id_accessor property to TitleColumn
This allows the linked instance to be something that doesn't expose a `.pk` property, like a dict from a DRF response, while keeping the `get_link_url` mechanism
2022-08-05 08:34:14 +10:00
Matt Westcott
c6d0f12cd8 Make chooser viewsets / widgets work without specifying a model
Specific methods such as get_object_list will need to be overridden in that case, but these changes ensure it won't fail outright at import time
2022-08-05 08:34:14 +10:00
Matt Westcott
89e2917b91 Support passing model to chooser viewset / views / widgets as a string 2022-08-05 08:34:14 +10:00
LB Johnston
a40b82fc05 add changelog for #8625 2022-08-05 07:41:15 +10:00
LB Johnston
3be9e7fb9e bulk-actions - fix issue where non-number object ids would fail
- add bulk actions baseline tests
- move to includes/bulk-actions
- fix linting issues
- fixes #8563
2022-08-05 07:41:15 +10:00
LB Johnston
c6dc70ad62 move bulk-actions
- intentionally a separate commit to keep file history in git
2022-08-05 07:41:15 +10:00
LB Johnston
4abf011849 add range util 2022-08-05 07:41:15 +10:00
Paarth Agarwal
01ba3d3c44 Fixed empty variable issue in header template
- fixes #8942
2022-08-05 07:30:06 +10:00
LB (Ben Johnston)
535bc3111f
4.0 release notes - add GSoC UX Unification section (#8943)
* pull out the main UX unification work done by Paarth under Torchbox internship done alongside Google Summer of Code 2022
2022-08-05 07:21:41 +10:00
LB Johnston
060d94c1a4 update can-i-use-lite library for browserslist 2022-08-05 07:17:32 +10:00
Thibaud Colas
4f94c9ea20
Allow all CSS system colors in stylesheets without variables usage (#8945) 2022-08-04 10:00:27 -07:00
anujaraj
2d8aa123c0
Added a forced-color media query to disabled buttons in high contrast (#8909)
* added a forced-color media query to allow distinct visibiity of disabled buttons

* Also set disabled button border color to GrayText in forced-colors mode

The `button` element was not correctly picking up the same border color as the text, for some reason. This commit fixes that.
2022-08-04 12:55:00 -04:00
Thibaud Colas
8a7e0884d7 Finish implementing rich text max length with identical client & server count 2022-08-04 16:59:31 +02:00
Matt Westcott
6429f8d40b Upgrade flake8-print to resolve CircleCI failures 2022-08-04 13:52:33 +02:00
Matt Westcott
2a7b0f6328 Test against postgres 11 as standard 2022-08-04 13:52:33 +02:00
Matt Westcott
d4837edef9 Formalise support for Django 4.1 2022-08-04 13:52:33 +02:00
LB Johnston
416a0b5100 refine changelog entry for documentation updates 2022-08-04 21:51:06 +10:00
Matt Westcott
f255135772 Release note for #8940 2022-08-04 13:35:50 +02:00
LB Johnston
1ebd88a47f fix issue for string representation of FormSubmission
- fixes #8927
- problem introduced in #8230
2022-08-04 13:33:52 +02:00
Thibaud Colas
405af5d451 Skip two Axe tests currently timing out 2022-08-04 06:48:41 +10:00