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

16956 Commits

Author SHA1 Message Date
Jake Howard
a7f8f7205b Fix typo in __str__ for MySQL search index (#11566) 2024-02-01 16:25:32 +00:00
Matt Westcott
169952d11f Set up release notes for 6.1 2024-02-01 16:24:12 +00:00
Matt Westcott
43af9b5dfc Version bump to start work on 6.1 2024-02-01 16:24:12 +00:00
Matt Westcott
c1ad975b3b Remove versionadded / versionchanged annotations for 5.2 2024-02-01 16:24:12 +00:00
LB Johnston
c221a802ca Fix contributor name #11558 2024-02-01 17:52:48 +10:00
Jake Howard
e1e3c8efde Update tests & html whitelist to always use html.parser & remove html5lib
- It's faster, built in, and saves the complexities of swappable backends and needing to test all combinations.
- Remove additional dependency on `html5lib`
- See https://beautiful-soup-4.readthedocs.io/en/latest/index.html#installing-a-parser
2024-02-01 07:50:59 +10:00
Matt Westcott
4044717d84 Add RelatedObjectsColumn to the table UI framework
This outputs a list of objects related to the object through a one-to-many relationship.
2024-02-01 07:31:15 +10:00
NixAsteri
97fbce30d5 Documentation - Provide contributing dev instructions on using forks
- Add details on how to use a fork of the Wagtail code and installing it
- Based on https://stackoverflow.com/a/57407742/8070948
- Closes #10594
2024-02-01 07:08:24 +10:00
ramchandra-st
67c6c12101 Remove duplicate 'path' in default_exclude_fields_in_copy
- There were 2 path in list. So removed one of them.
2024-02-01 06:59:05 +10:00
LB Johnston
6d072dc308 Fix typo in 6.0 release notes example code 2024-02-01 06:43:15 +10:00
Thibaud Colas
ac9cf68902
Change groups in v6.0 release notes (#11556) 2024-01-31 12:49:32 +00:00
LB Johnston
f029e46f5e Documentation - Refactor promotion banner without jQuery
- Use HTML template in layout for content
- Use non-jQuery JS
- Ensure that the cookie has the sameSite value set correctly
- Set closed cookie duration to 90 days (instead of 30)
- Add upcoming Wagtail Space events 2024 & adjust styles to suit two links
2024-01-31 12:24:46 +10:00
LB Johnston
af1a736c06 Update Sphinx Wagtail Theme to v6.2.0
- Fixes favicon and Python compatibility issues
2024-01-30 23:23:43 +10:00
Rohit Sharma
67f3af875c Update Ordering, wording & help text for private pages/collections
- Clarify that the 'password' mode of privacy is a shared password and should not be used for secure content.
- Fixes #11535
2024-01-30 23:18:47 +10:00
LB Johnston
83c4f0454b Add 6.1 changelog section 2024-01-30 23:18:47 +10:00
osafalisayed
c08ca65181 Added documentation for get_upload_to function in AbstractImage and AbstractRendition class
- Builds on previous PR #8228
- Fixes #2601
2024-01-30 08:41:17 +10:00
Buraah
56335de636 Update documentation globally to use US spelling (not UK) + grammar fixes
- Transferred all British spellings in the usage guide and advanced topics section to American spellings
2024-01-30 07:30:57 +10:00
Victoria Poromon
f4ce46602f
Update spelling of Customizing Admin Templates and Page Models sections in the docs (#11544)
* Change all British spelling to American, in the page model section of the docs

* Change all British spelling to American spelling in the Customizing admin templates section of the docs

---------

Co-authored-by: Storm B. Heg <storm@stormbase.digital>
2024-01-27 13:47:12 +01:00
Sage Abdullah
a3cb4a6903 Fix filters from being removed when searching
Tippy unmounts its popper element from the DOM on hide, which means that
the filter fields get detached from the form. As a result, when
performing a search (which means the filters popup is closed), any
filters that have been applied will be lost. The issue does not occur
the other way around (filtering after search) because the filter fields
will still be in the DOM (as the popup is open while you're applying the
filters).

Unfortunately, Tippy does not offer a built-in option to keep the popper
mounted in the DOM when it's hidden.

As a workaround, use Tippy's hooks to re-append the popper to the DOM.
- onCreate: ensure the popper element is mounted even when the tippy was
  just created (normally it's only mounted when shown). This is useful
  to keep the filters when searching after a full-page refresh (e.g.
  after navigating to the next page in pagination).
- onHidden: ensure the popper is still mounted, to solve the main issue
- onShow: remove the hidden attribute and let tippy move the popper
  element as necessary (though usually this isn't necessary, because we
  remount it in the same position (the controller's element).

The 'hidden' attribute shouldn't cause any issues here as Tippy doesn't
use it. Without it, the solution still works because Tippy uses CSS to
make the element invisible. However, the complete CSS doesn't get
applied until the tippy is shown at least once. This means on initial
load with the onCreate hook, the tippy will take up the space while
being invisible. Using the attribute fixes it (and display:none probably
would too).

This behaviour can be enabled using the newly-added DropdownController
value 'keepMounted'.
2024-01-26 17:16:51 +00:00
Sage Abdullah
6991c1f2d9 Move Tippy hooks to separate arrow function declarations 2024-01-26 17:16:51 +00:00
Sage Abdullah
ea288448cd Use arrow function for hideTooltipOnClickAway to allow 'this' to refer to DropdownController 2024-01-26 17:16:51 +00:00
Sage Abdullah
a89812f6b9 Move DropdownController themeOptions to an instance property 2024-01-26 17:16:51 +00:00
LB Johnston
bda0c45a40 6.0 changelog/release notes fixes
- Fix various typos and grammar issues
- Use consistent approach to version updates & class-based (not class based) view naming
- Fix a malformed link for upgrade considerations
2024-01-26 09:43:19 +00:00
LB Johnston
54802abcc4 Fix minor duplicate word typos 2024-01-25 06:58:59 +10:00
Matt Westcott
ced2214291 Add missing changelog notes 2024-01-24 14:35:24 +00:00
Matt Westcott
1614d5eb40 Generate new source files for translation 2024-01-24 13:55:09 +00:00
Matt Westcott
5c3f7c6de5 Fetch new translations from Transifex 2024-01-24 13:55:09 +00:00
LB Johnston
b81f369498 6.0 release - Add versionadded sections & release notes links 2024-01-24 13:54:48 +00:00
Tidiane
65e693c6e8 Link feature release links to corresponding pages in guide
Wagtail Guide will automatically redirect to `latest` if the specific release is not found
2024-01-24 23:02:31 +10:00
Shlomo Markowitz
7f6a2623d1 Add ability to use copy view for SnippetViewSet & ModelViewSet
Closes #10921
2024-01-24 22:47:34 +10:00
sag​e
aef6de8a2f
Universal listings: Add LinkController to apply filter URL params to header buttons (#11522) 2024-01-24 12:43:54 +00:00
Sage Abdullah
e8b34ededd Implement active filter button to open drilldown for specific filter 2024-01-24 09:43:42 +00:00
Sage Abdullah
2adda186a0 Add cancelable w-dropdown:clickaway event for closing dropdown on click away 2024-01-24 09:43:42 +00:00
Sage Abdullah
6de3f84e9f Use BoundField.auto_id instead of .name for counting active filters 2024-01-24 09:32:28 +00:00
Sage Abdullah
3cedd02994 Render filter count by counting the active filters client-side 2024-01-24 09:32:28 +00:00
Sage Abdullah
a8bf1ab868 Run scripts inside teleported element in TeleportController 2024-01-24 09:32:28 +00:00
Sage Abdullah
981c1ac36a Fix drilldown component closing when interacting with datetime pickers 2024-01-24 09:32:28 +00:00
Sage Abdullah
0fb80e8aa0 Use get reference() instead of getReference() in DropdownController 2024-01-24 09:32:28 +00:00
Sage Abdullah
f1c4a495cc Do not reflect filter_fragment param in the browser
Also move the insertion of the param to get_url_without_foo methods to avoid the param getting applied multiple times and to avoid having to parse the URL again.

Rename the filter_fragment to _w_filter_fragment to avoid clashes
2024-01-24 09:32:28 +00:00
Sage Abdullah
bc381be264 Reset filters' w-drilldown state on close
This fixes the issue where the state is stuck at the last opened filter when the drilldown's contents are replaced
2024-01-24 09:32:28 +00:00
Sage Abdullah
238cbf3cd2 Dispatch w-dropdown:hidden event in DropdownController on tippy hide 2024-01-24 09:32:28 +00:00
Matt Westcott
e4e4ef96de include the filter fragment in generic/index_results.html too 2024-01-24 09:32:28 +00:00
Matt Westcott
58730e083d POC of updating filters dialog in response to removing active filters 2024-01-24 09:32:28 +00:00
Sage Abdullah
2b8d39ab0d Add 'reset' value to TeleportController to allow resetting the target element 2024-01-24 09:32:28 +00:00
Matt Westcott
08d5264088 Remove the explicit IndexResultsView in favour of IndexView with results_only=True 2024-01-24 09:32:28 +00:00
LB Johnston
bfd51fef7f Add changelog for #11503 2024-01-24 17:55:09 +10:00
Neeraj P Yetheendran
f341f6bee5 Fixed issues preventing build
- html+django snippets are not parsing correctly due to script usage, replace with simple text snippets
- Fix up incorrect link added in extending_client_side
2024-01-24 10:42:51 +10:00
Neeraj P Yetheendran
adfd8b32dc Flags added to convert doc build warnings to errors
- To ensure that the CI will fail if there are broken links or images.
- Fixes #9778
2024-01-24 10:42:51 +10:00
Rohit Sharma
996abeae8e Add initial redirects (contrib) API endpoint
Builds on previous PRs #6110 & #8842
2024-01-24 10:42:25 +10:00
Alex Morega
c4ef290859 Explicitly set triggerElement when invoking save (with publish) button on pages
Fixes #11420

Two issues existed;
1. Safari will not set `document.activeElement` as expected in all other browsers, instead, when a button is clicked it will keep the activeElement as `body`. This meant that the reset of the disabled button (before the confirm triggers a click) was not working.
2. Visually the button still had the loading spinner due to w-progress controller having triggered the loading visuals, this did not block the behaviour but looked broken.

See Safari behaviour docs:
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#clicking_and_focus
- https://bugs.webkit.org/show_bug.cgi?id=22261
2024-01-24 08:17:37 +10:00