Wykres commitów

17208 Commity (ac8bdce9fb393483af985a7b29383b33ea6797b8)

Autor SHA1 Wiadomość Data
Matt Westcott ac8bdce9fb Release note for #11783 2024-04-05 17:37:28 +01:00
Sage Abdullah 0006976267 Implement universal listings UI for form submissions listing view 2024-04-05 17:36:41 +01:00
Sage Abdullah 1fbe6a64f5 Move header_more_buttons for export buttons to SpreadsheetExportMixin
Also remove the unnecessary call to get_header_more_buttons in WagtailAdminTemplateMixin, as the buttons are already constructed as part of get_header_buttons()
2024-04-05 17:36:41 +01:00
Sage Abdullah af80198c7d Rename SubmissionsListView.ordering to default_ordering for consistency with BaseListingView 2024-04-05 17:36:41 +01:00
Sage Abdullah 9d7cc96847 Reimplement submission date filter in SubmissionsListView with django-filter 2024-04-05 17:36:41 +01:00
Sage Abdullah 2b6d08f7bc Rename DateRangePickerWidget.suffixes to use 'from' and 'to' instead of 'after' and 'before'
The DateFromToRangeFilter (which the widget is usually used for) is inclusive, so the date specified as 'before' will still be included

Rename these to use 'from' and 'to' instead, which do not imply the exclusivity.

It also aligns better with the placeholder labels.
2024-04-05 17:36:41 +01:00
Sage Abdullah 00066cd4dd Make SubmissionsListView extend BaseListingView 2024-04-05 17:36:41 +01:00
Sage Abdullah 5a67cfecfd Remove unnecessary SubmissionsListView.get_paginate_by override
This was already moved to SpreadsheetExportMixin in a2487fe
2024-04-05 17:36:41 +01:00
Sage Abdullah 1bd6a0cb0c Remove unnecessary self.model check in FormPagesListView.get_breadcrumbs_items
The view already sets model = Page, so this check will always be skipped
2024-04-05 17:36:41 +01:00
Matt Westcott b504ed0281 Release note for #11764 2024-04-05 15:24:56 +01:00
Sage Abdullah c93e5a8cd4 Hide action and user filters in HistoryView if there are no choices 2024-04-05 15:14:57 +01:00
Sage Abdullah 465f4757f1 Use latest revision's object str instead of loading it as object in generic HistoryView
We only need the latest revision to display the latest string representation in the header
2024-04-05 15:14:57 +01:00
Sage Abdullah c2e2c4be6c Add page to select_related in page HistoryView
Prevent duplicate queries as some log formatters use log_entry.page.specific_class
2024-04-05 15:14:57 +01:00
Sage Abdullah 2e9553c47c Defer specific queries when generating page breadcrumbs
We don't really use any specific fields for the rest of the function
2024-04-05 15:14:57 +01:00
Sage Abdullah 03000b1171 Specify width for User and Date columns in HistoryView
Ensure the layout doesn't get shifted when filtering
2024-04-05 15:14:57 +01:00
Sage Abdullah 35987c6f35 Extract GenericPageBreadcrumbsMixin for combining generic views with page views 2024-04-05 15:14:57 +01:00
Sage Abdullah 2173a42345 Change page history's commenting action filter to be a tri-state filter
This allows users to also show commenting actions *only*. In addition,
this also fixes an issue where the active filter mechanism thinks that
the hide_commenting_action filter is active with the value False when
the filter is left unchecked.
2024-04-05 15:14:57 +01:00
Sage Abdullah a2ce4bca46 Completely reuse generic HistoryView template for page HistoryView 2024-04-05 15:14:57 +01:00
Sage Abdullah d461ed08bf Make index_url_name and edit_url_name in generic HistoryView optional
Also update the generic UsageView's get_edit_url method signature to
match the HistoryView and the generic IndexView by taking an "instance"
parameter, just to be consistent even though we technically only use
self.object for these views.
2024-04-05 15:14:57 +01:00
Sage Abdullah 9cc0539c4c Show deleted user id in generic HistoryView 2024-04-05 15:14:57 +01:00
Sage Abdullah 63157742c9 Use PermissionCheckedMixin in place of user_passes_test in pages HistoryView 2024-04-05 15:14:57 +01:00
Sage Abdullah b3659c23ab Make PageHistoryView a subclass of generic HistoryView 2024-04-05 15:14:57 +01:00
Sage Abdullah 0576bbec87 Add test for number of queries to load the page history view 2024-04-05 15:14:57 +01:00
Sage Abdullah 67d7f55d26 Render log entry's comment in the generic HistoryView if available 2024-04-05 15:14:57 +01:00
Sage Abdullah 59b0af2431 Define log entry status in the ActionColumn class 2024-04-05 15:14:57 +01:00
Sage Abdullah f9ccc5df67 Define HistoryView actions in the Column class 2024-04-05 15:14:57 +01:00
Sage Abdullah fa926ccef1 Reimplement snippets HistoryView actions in the generic view
Use the same logic as pages, but move most of it to the Column code in Python.

Also change the actions to use a dropdown to follow the universal listing styles
2024-04-05 15:14:57 +01:00
Sage Abdullah 57b6a22de4 Use MultipleChoiceFilter with checkbox for action filter in HistoryView 2024-04-05 15:14:57 +01:00
Sage Abdullah 8f613480c5 Use MultipleUserFilter with checkbox for HistoryView user filter 2024-04-05 15:14:57 +01:00
Sage Abdullah 3213d7f39d Limit filter options in HistoryView based on current queryset
Pass the queryset from the view to the filters, so we can limit the
actions and user filters based on the current queryset.

This also allows us to not specify the model in the FilterSet.Meta, as
the log entry model may differ for each model.
2024-04-05 15:14:57 +01:00
Sage Abdullah 04cdb825b1 Use ids to render revision comparison links in snippets HistoryView 2024-04-05 15:14:57 +01:00
Sage Abdullah c176a9b21a Add test for number of queries to load the snippets history view 2024-04-05 15:14:57 +01:00
Sage Abdullah 8b343aa348 Extract RevisionsManager.previous_revision_id_subquery() from WorkflowObjectsToModeratePanel 2024-04-05 15:14:57 +01:00
LB Johnston 73d4b8383c Add changelog for #11775
- Closes #11597
2024-04-04 08:28:17 +10:00
Karthik Ayangar 75dbed9841 Adopt new Stimulus controller approach in BlockWidget 2024-04-04 08:28:17 +10:00
Karthik Ayangar 452d9aaa42 Remove initBlockWidget global window function 2024-04-04 08:28:17 +10:00
Karthik Ayangar d2405eefe8 Add Stimulus BlockController 2024-04-04 08:28:17 +10:00
Matt Westcott 6e1bca24e5 Update latest.txt for 6.0.2 and 5.2.4 2024-04-03 23:04:59 +01:00
LB Johnston a6b187a14f Fix minor spelling (customizations) in 6.1 release notes 2024-04-04 08:01:47 +10:00
Matt Westcott 83bacfa7fe Fill in release date for 6.0.2 2024-04-03 21:37:36 +01:00
Matt Westcott eefbc7731c Add release notes for 5.2.4 2024-04-03 21:37:00 +01:00
Matt Westcott e537b4000f Fetch new translations from Transifex 2024-04-03 21:36:04 +01:00
Matt Westcott ad55e37162 Release note for #11817 in 6.0.2 docs 2024-04-03 19:11:23 +01:00
Matt Westcott ad7b20ef85 Release note for #11817 in 6.0.2 2024-04-03 19:11:22 +01:00
Sage Abdullah cc819e9179 Prevent crash when loading an empty table block in the editor 2024-04-03 20:06:20 +02:00
Sage Abdullah f941b45b58
Release note for #11751 2024-04-02 16:50:14 +07:00
Sage Abdullah c8686cc7e9
Apply suggestions from code review 2024-04-02 16:40:27 +07:00
LB Johnston e71e947046
Add base styling for footer actions to support simple customisations
- Fixes #11629
- Relates to clean up done as part of #11629 which removed a lot of styling for footer actions which appeared to be unused.
- Re-add some base styling to support the ability for basic customisations where buttons are added within the `extra_footer_actions` block.
2024-04-02 12:29:24 +07:00
Abdelrahman 0599a56d81
Add support for related fields in generic IndexView.list_display 2024-03-28 12:55:01 +07:00
Sage Abdullah d8085c6ee6
Clarify release notes for #11803 2024-03-28 12:24:34 +07:00