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

15877 Commits

Author SHA1 Message Date
Sage Abdullah
bde19900b9
Release notes for #10880 2023-09-15 15:33:55 +01:00
Sage Abdullah
d2ad1bfb69
Add breadcrumbs to generic inspect view 2023-09-15 15:27:05 +01:00
Sage Abdullah
ee67521b9f
Move Home breadcrumb item to the view level
This allows using the {% breadcrumbs %} tag without having the Home as the first item
2023-09-15 15:26:03 +01:00
Sage Abdullah
d0eba3e35d
Add home as the first item in generic breadcrumbs 2023-09-14 14:12:56 +01:00
Sage Abdullah
f4109ccf1d
Do not add URL to the last item in the generic breadcrumbs 2023-09-14 14:12:56 +01:00
Sage Abdullah
78f9db33e3
Render breadcrumbs in generic model views 2023-09-14 14:12:56 +01:00
Sage Abdullah
6f39b9170a
Move snippets breadcrumb items definition to generic views 2023-09-14 14:12:11 +01:00
Sage Abdullah
acf24d978e
Revert "Add breadcrumbs to snippets delete view"
This reverts commit 9ed5b8f070.
2023-09-14 14:09:49 +01:00
WhatIsThisVJ
b681e74d30
Replace @total_ordering usage with comparison functions implementation #10526 2023-09-14 11:32:59 +01:00
LB Johnston
ba9f7c898f Add changelog / upgrade considerations for #10869
Closes #10668
2023-09-14 09:09:59 +10:00
Subhajit Ghosh
36b9edc5d7 Migrate all data-tippy attributes to w-tooltip Stimulus data attributes 2023-09-14 09:09:59 +10:00
Subhajit Ghosh
849615404c Update dropdown template tag using offset
- Rename template tag variable toggle_tippy_offset to toggle_tooltip_offset
- Update usage in the dropdown template to use as a Stimulus data attribute variable instead of a data-tippy attribute on the inner button element
2023-09-14 09:09:59 +10:00
Subhajit Ghosh
f86a832a4b Add support for offset value in Dropdown & Tooltip controllers 2023-09-14 09:09:59 +10:00
LB Johnston
e317ac482b Revise the human_readable_date arg (rename position to placement)
- Add unit tests
- Move changelog entry to features, not maintenance
- See #10871 & 0a977cc54d
2023-09-14 07:30:28 +10:00
LB Johnston
51df7b51d0 Add 5.1.2 backport changelog entry for #10857 2023-09-14 06:41:07 +10:00
Andy Chosak
dbc130e565 Fix minor typos in the docs
"JavasScript" -> "JavaScript"
2023-09-14 06:36:46 +10:00
LB Johnston
a5966753d2 Changelog & release notes for #10857
- Including backport to 5.1.2
2023-09-14 06:32:29 +10:00
Jake Howard
7439fa0b20 Add tests for image serving SVG and AVIF files 2023-09-14 06:20:34 +10:00
Jake Howard
84d744303d Bump Willow to ensure it supports SVG mimes 2023-09-14 06:20:34 +10:00
Jake Howard
2ec1b0314b Replace imghdr with Willow's built-in mime-type detection 2023-09-14 06:20:34 +10:00
LB Johnston
19b4df2648 Add 5.1 release notes for changed attrs.html template location
Fixes #10874
2023-09-14 06:04:01 +10:00
Sage Abdullah
3cd13c65ef
Release notes for #10865 and #10870 2023-09-13 17:53:15 +01:00
Sage Abdullah
e6fbc500ed
Move sticky header wrapper to slim_header.html
Reduces copy-pasting across every usage of the template
2023-09-13 17:41:48 +01:00
Sage Abdullah
b543e3ab2d
Move side_panels.html include to slim_header.html
This brings the side_panel_toggles.html and side_panels.html includes
closer together (in the same slim_header.html file), which makes sense
as you'd only use the side panels when the slim header (with the
breadcrumbs) is used.
2023-09-13 17:41:48 +01:00
Sage Abdullah
2901ac84a7
Re-use side_panel_toggles.html include in slim_header.html template 2023-09-13 17:41:48 +01:00
Sage Abdullah
40856e7552
Add tests for generic breadcrumbs template tag 2023-09-13 16:27:12 +01:00
Sage Abdullah
a0604fc272
Use SimpleTestCase for most templatetag tests
Speed them up when run individually as it skips the database setup
2023-09-13 16:27:08 +01:00
Sage Abdullah
7751234ae7
Add stories for generic breadcrumbs component 2023-09-13 16:27:05 +01:00
Sage Abdullah
df1f44e8e6
Update breadcrumbs.stories.tsx to page_breadcrumbs.stories.tsx 2023-09-13 16:27:01 +01:00
Sage Abdullah
d95c1ecde2
Explicitly add is_expanded support to breadcrumbs template tag 2023-09-13 16:26:54 +01:00
Sage Abdullah
9d17a71993
Remove unused breadcrumbs block in shared header template
No longer used anywhere
2023-09-13 16:26:45 +01:00
Sage Abdullah
51c21b5e8f
Extract snippets base breadcrumbs_items into SnippetViewSet to be shared across views 2023-09-13 16:26:35 +01:00
Sage Abdullah
9ed5b8f070
Add breadcrumbs to snippets delete view
Just to demonstrate how easy it is to extend a generic template and add breadcrumbs
2023-09-13 16:26:27 +01:00
Sage Abdullah
0ebc8a2d28
Reuse slim_header.html template directly and define breadcrumbs items in snippets views 2023-09-13 16:26:19 +01:00
Sage Abdullah
2bee5fbd89
Add breadcrumbs_items and get_breadcrumbs_items to WagtailAdminTemplateMixin 2023-09-13 16:26:09 +01:00
Sage Abdullah
96549651f1
Add breadcrumbs and side panel toggles to slim_header.html template if the context variables are available 2023-09-13 16:26:02 +01:00
Sage Abdullah
44c845cdac
Introduce generic breadcrumbs template tag 2023-09-13 16:25:59 +01:00
Sage Abdullah
9e91362231
Rename pages template context variable in breadcrumbs.html to items 2023-09-13 16:25:55 +01:00
Sage Abdullah
90afe525ca
Extract breadcrumbs_items block and define page-specific items in page_breadcrumbs.html template 2023-09-13 16:25:46 +01:00
Sage Abdullah
1e08d77d4a
Introduce page_breadcrumbs.html template for the page_breadcrumbs template tag 2023-09-13 16:25:43 +01:00
Sage Abdullah
74d5a4c9fb
Rename breadcrumbs template tag to page_breadcrumbs 2023-09-13 16:25:39 +01:00
LB Johnston
aa6f190139 Clean up - align html template tag usage in tests
- There is one case where the closing tag was malformed
- All other cases are just ensuring the final backtick is on the closing tag's line
- This allows IDEs to better pick up on html within template tags
2023-09-13 15:06:52 +01:00
LB Johnston
51353c7c43
Do not use jest inside stubs.js to prevent Storybook from crashing 2023-09-13 15:04:04 +01:00
rohitsrma
451c21ea52 Page status sidebar - add support for actual published date date in tooltip
Fixes #10789
2023-09-13 08:20:45 +10:00
rohitsrma
0a977cc54d human_readable_date - update template tag to support tooltip position 2023-09-13 08:20:45 +10:00
faishalmanzar
3a86efaf12 Add ability for InlinePanel to set focus on newly created items
Fixes #10764 - Inserting a new InlinePanel function improved
2023-09-13 07:54:57 +10:00
LB Johnston
0daf33b1b4 Add changelog for #10835 2023-09-13 07:40:04 +10:00
LB Johnston
b96d2d7faa Adopt w-messages (CloneController) in unsaved changes warning
- Replace global util window.updateFooterSaveWarning with the w-messages usage
- Remove window.updateFooterSaveWarning usage in core.js & move 'delay before clearing' time delay to the Stimulus value
- Fix JSDoc usage in `enableDirtyFormCheck`
- Add aria-live="polite" so message updates can be advised to screen readers
- Add release considerations and for `window.updateFooterSaveWarning` removal
- Closes #10091
2023-09-13 07:40:04 +10:00
Hussain Saherwala
e4fdf6da2a Update CloneController / w-clone for editor unsaved messages
- Changes default show-delay to zero (immediate) and update the w-messages (page messages) to have the 100ms delay
- Add support for 'hide' classes to be added/removed based on clone usage
- Add support for calling the clear method from actions, and resetting classes if used after a clear delay value
- Add JSDoc descriptions to most other properties, add better TS types
- Pull out logic to get template content to class method
- Based on initial work in #10327
2023-09-13 07:40:04 +10:00
LB Johnston
65a40f39e3 Rename MessagesController to CloneController
- Register with two identifiers; w-messages & w-clone
- Update unit tests and basic JSDoc to align with new naming
- This allows the Controller to reflect the 'behaviour' not the 'usage'
2023-09-13 07:40:04 +10:00