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

14920 Commits

Author SHA1 Message Date
Thibaud Colas
8705124eaf Add release notes for #10239 2023-03-20 09:51:51 +00:00
Sage Abdullah
adaaf973e6 Prevent checkbox and radio button from shrinking 2023-03-20 09:51:51 +00:00
Sage Abdullah
58555abfb0 Prevent select inputs from overflowing the parent container 2023-03-20 09:51:51 +00:00
Sage Abdullah
90e848002d Add examples for long choices in Styleguide's form inputs 2023-03-20 09:51:51 +00:00
4the4ryushin
66a086da29 Add support for double quotes query string searches
- Fixes #9951
2023-03-19 21:30:21 +10:00
4the4ryushin
df9437b4de Adopt shared header in Snippets type index header
- Fixes #9227
2023-03-19 20:53:31 +10:00
Satvik Vashisht
4ee60b5d47 Adopt the pageurl template tag over page.url where possible
- Fixes #10125
- So that determining page URL is more performant - see https://docs.wagtail.org/en/stable/advanced_topics/performance.html#page-urls
2023-03-18 07:35:27 +10:00
Himanshu Garg
427f5623d9 Update leftover status-tag class usage to use status template tag
- Closes #10129
- Relates to #8656 & #9721
2023-03-18 07:10:24 +10:00
Thibaud Colas
fdc36a6989 Revert FieldRowPanel documentation removal, clarifying differences. Fix #10061 2023-03-14 22:44:11 +00:00
dependabot[bot]
0264e78929 Bump webpack from 5.67.0 to 5.76.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.67.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.67.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 07:23:10 +10:00
Matt Westcott
71563ec720 Release note for #10099 2023-03-14 14:28:33 +00:00
Sage Abdullah
909e7fedbf Update docs to reflect snippet deletion hook changes 2023-03-14 14:27:22 +00:00
Sage Abdullah
f3637ad857 Remove unused snippets delete-multiple view 2023-03-14 14:26:14 +00:00
Sage Abdullah
1db65a3fe0 Add "No, don't delete" link in generic delete confirmation template 2023-03-14 14:26:14 +00:00
Sage Abdullah
7a14b0b772 Call {before,after}_delete_snippet hooks in snippets delete bulk action view 2023-03-14 14:26:14 +00:00
Matt Westcott
87650344e2 Fill in release date for 4.2.1 2023-03-13 10:14:07 +00:00
Matt Westcott
bcf5b6459f Fill in release date for 4.1.3 2023-03-13 10:14:00 +00:00
Sage Abdullah
cfcfd85525
Clarify ClusterableModel requirements for using relations with RevisionMixin-enabled models 2023-03-13 09:35:05 +00:00
Andy Chosak
6eca0004b3 Fix paginated results count on document search #10220
Paginated document search results currently always show the number of
documents per page instead of the total number of documents in the
search results.

For example, if a document search
(at http://localhost:8000/admin/documents/)
returns 100 results, and the results are paginated by 20, the results
view always says "There are 20 matches", when it should instead say
"There are 100 matches".

This commit fixes that bug and adds a unit test to cover it.
2023-03-12 20:28:50 +10:00
Daniel Kirkham
af57a3eb7e Add ability to disable search indexing for a model #9821
- Add tests for search disable capability
- Update index disable to use empty search_fields property
- Relates to #7570
2023-03-12 20:16:19 +10:00
LB Johnston
efe7202575 Add changelog for #10216
- Relates to #10206
2023-03-12 19:41:42 +10:00
Sage Abdullah
d5e6ce578b Extract SnippetViewSet.register_admin_url_finder() function 2023-03-12 19:40:19 +10:00
Sage Abdullah
6570a1d0d4 Move snippets panels check registration to SnippetViewSet.on_register() 2023-03-12 19:40:19 +10:00
Sage Abdullah
01b36267af Register AdminSnippetChooser from SnippetChooserViewSet.on_register() 2023-03-12 19:40:19 +10:00
Sage Abdullah
38bdffbf5d Register SnippetChooserViewSet from SnippetViewSet.on_register() 2023-03-12 19:40:19 +10:00
AceHunterr
ff7494bf79 Replace ButtonSelect widgets with radio buttons
- Instead of a complex and non-accessible JS solution for filter selects, replace with simple radio select fields
- Fixes #9838
2023-03-11 17:21:00 +10:00
George Sakkis
38e39271ee ChooserWidget: Trigger manually change event when input.value is set
- Ensure that the change events bubble as this is the default browser behaviour
- By default, changes to hidden values will not fire a `change` event, nor those that are a result of programatic changes to `value, so instead this needs to be added manually so that other code can listen to changes to chosen fields with DOM event listeners.
- https://stackoverflow.com/questions/6533087/jquery-detect-value-change-on-hidden-input-field/8965804#8965804
- Closes #10187
2023-03-11 15:57:33 +10:00
Daniel Kirkham
23552f0e70 Fix two spacing typos 2023-03-11 11:03:54 +10:00
Andy Chosak
7f79b4de73 Implement ConvertedValueField.get_prep_value
Fixes issue 10200.

Per the Django docs [0], "if you override from_db_value() you also have
to override get_prep_value() to convert Python objects back to query
values."

The ConvertedValueField inherits from IntegerField, which means that it
stores its data as an integer. But its Python value is of type
ConvertedValue, which is actually a string. The representation of that
string is (potentially) a shifted version of the actual field value.

For example, given a ConvertedValue of 320333593, its string
representation is actually "92467817240" due to the logic here [1]
(which, to be honest, I am not sure I understand the rationale behind).

Because ConvertedValueField wasn't implementing get_prep_value, the
parent IntegerField get_prep_value logic was being called, which
tried to cast int() on the field's value, which is actually the string
representation. So instead of the actual integer value being stored in
the database, it's this shifted value that gets stored.

But, with the recent commit to Django [2], that value could potentially
overflow the supported integer field range in the database -- whereas
the actual integer ConvertedValue value should always be okay.

So, this commit implements ConvertedValueField.get_prep_value to ensure
that the real integer value gets stored, not the shifted string value.

[0] https://docs.djangoproject.com/en/dev/howto/custom-model-fields/#converting-python-objects-to-query-values
[1] d5e4ac5590/wagtail/test/customuser/fields.py (L11-L22)
[2] dde2537fbb
2023-03-10 23:11:41 +00:00
Thibaud Colas
d5e4ac5590
Update Algolia DocSearch integration with new application and correct versioning setup 2023-03-10 15:57:17 +00:00
Albina
5e23eedcd8
Axe accessibility checker: sorting violations based on their place in DOM (#10013)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-03-10 12:05:12 +00:00
Matt Westcott
b7f81bc720 Release note for #10215 2023-03-10 12:03:14 +00:00
Matt Westcott
1472db03f0 Enable partial matching on documents index view where available 2023-03-10 12:01:14 +00:00
Mng
a51f9250b3 Enable partial matching on images index view where available (#10215)
Fixes #10213
2023-03-10 12:00:47 +00:00
Thibaud Colas
fff70ad2f9 Add missing CHANGELOG entry for v4.2.1 2023-03-10 09:55:48 +00:00
Deepam Priyadarshi
de3a0b3495
Fixing duplicate addition of StreamField blocks with the new block picker. Fix #10057 (#10149)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-03-10 09:52:17 +00:00
LB Johnston
90585c9bba Messages Controller - ensure we add a unit test for XSS checks
- Relates to #9493 & #10182
2023-03-10 08:28:39 +10:00
Sage Abdullah
dc48dcce8a Add add_facets to ModelAdmin's IndexView to fix crash against Django 5.0 2023-03-09 12:54:42 +00:00
Matt Westcott
ab05be3bb2
Prevent matches from unrelated models from leaking into SQLite FTS searches
Fixes #10188
2023-03-09 10:13:54 +00:00
Thibaud Colas
c01303927a Release notes for #10171 2023-03-08 15:21:38 +00:00
Sage Abdullah
81a5bdeb94 Use warning and info level for lock messages 2023-03-08 15:21:38 +00:00
Sage Abdullah
322d305457 Add missing background color for info messages 2023-03-08 15:21:38 +00:00
Sage Abdullah
c8eb100bcf Use action switch component for lock/unlock action in the status side panel 2023-03-08 15:21:38 +00:00
Sage Abdullah
c6974198dd Create action switch component 2023-03-08 15:21:38 +00:00
Sage Abdullah
b0896ef53b Use focus-visible for switch component
Prevent unnecessary outline when clicking on the component
2023-03-08 15:21:38 +00:00
LB Johnston
6ec6895f4f Docs - 5.0 release notes - clean up formatting 2023-03-08 21:35:34 +10:00
4the4ryushin
eb5bb5a9c8 Migrate window.addMessage to a Stimulus Controller w-message
- Introduce a new controller `MessagesController` to contain the dynamic updating of messages
- Ensure the document updated label does not repeat every time a document is updated
- Using the Stimulus controller with templates approach, icons can easily be pre-loaded for each message type
- Ensure that messages are consistently cleared when new ones are added (this was done ad-hoc across some usage and not others)
- Fixes #9493
2023-03-08 21:35:34 +10:00
Lovelyfin00
2519dc84e8 adding the introduction to stimulus webinar video link to docs 2023-03-08 06:35:59 +10:00
Sage Abdullah
24ba0b7fc1
Release notes for #9628 in 4.1.3 and 4.2.1 2023-03-07 19:01:40 +00:00
Sam
a393ea8091
Fix dialog component's message to have rounded corners at the top side
Fixes #10177
2023-03-07 18:36:02 +00:00