Wykres commitów

18013 Commity (0dd7d12aafe07c3922ef3246f15809706c46f934)

Autor SHA1 Wiadomość Data
Sage Abdullah 0dd7d12aaf
Release note for #12393 2024-10-21 16:53:30 +01:00
Sage Abdullah 0b45e6112c
Drop all trailing punctuations from URLs in a pasted text
This matches the common behaviour of various places, e.g. GitHub and
Slack.
2024-10-21 16:53:00 +01:00
Thibaud Colas 6b04961654
Account for terminal punctuation right after a pasted URL within text 2024-10-21 16:53:00 +01:00
Thibaud Colas b31319934a
Add unit tests for new auto-link paste behavior 2024-10-21 16:53:00 +01:00
Thibaud Colas ba6360446e
Add support for auto-linking URLs and emails within pasted rich text 2024-10-21 16:53:00 +01:00
Thibaud Colas 611d942c10
Refactor onPasteLink implementation to better support multi-link pasting 2024-10-21 16:53:00 +01:00
Thibaud Colas 9b6f617be1
Fix link paste detection concatenating URLs. Fix #12393 2024-10-21 16:52:59 +01:00
Bojan Mihelac 83a390661f Fix child restriction admin form when ancestors page view restrictions exists (#12124)
Fixes #4277
2024-10-21 16:29:19 +01:00
Matt Westcott 93f8600c31
ImageBlock for StreamField (rebase of #11791) (#12416)
Co-authored-by: Chiemezuo <chiemezuoakujobi@gmail.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-21 16:11:34 +01:00
Rohit Singh 105338d0d6
Fix datetime fields overflowing its parent wrapper in listing filters 2024-10-21 09:45:19 +01:00
frankyiu 97fadba582 Fix long name issue in document chooser table cell (#12430, #12431)
Fixes #12357
2024-10-20 13:47:35 +01:00
Ankit Kumar 329db8e58a
Added missing link to the Code of Conduct in the community guidelines… (#12432)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-20 11:27:21 +01:00
Matt Westcott 72fb0e9880 Stop history view from breaking if a log entry's revision is missing (#12427)
e.g. after the purge_revisions management command has been run
2024-10-18 18:52:47 +01:00
Sævar Öfjörð Magnússon 207e9e50d9 StaticBlock renders empty in templates (#12425) 2024-10-18 18:27:33 +01:00
Sage Abdullah ee635534af
Release note for #12414 and #12130 2024-10-18 18:19:18 +01:00
Sage Abdullah bf139d688c
Tweak preview panel styles to accommodate more than three preview device sizes 2024-10-18 18:19:18 +01:00
Sage Abdullah aa4ceaddd0
Remove data-default-size from preview panel
Now that the preview sizes are customizable, we can't rely on the
default being the mobile size when we want to force the size of the
preview unavailable screen.
2024-10-18 18:19:18 +01:00
Sage Abdullah 5909d3e822
Apply suggestions from code review 2024-10-18 18:19:18 +01:00
alexkiro b38141ad82
Allow customization of preview device sizes
Co-authored-by: Bartosz Cieliński <bart@fullfatthings.com>
2024-10-18 18:19:17 +01:00
Sage Abdullah 49f9ae3a96 Fix error in workflows listing with multiple snippets assigned on PostgreSQL (#12367)
Fixes #12364
2024-10-18 17:43:49 +01:00
Matt Westcott 0d0700207d Release note for #12384 2024-10-18 13:02:24 +01:00
Matt Westcott 15abe65eb4 Fix saving as .heic 2024-10-17 23:28:31 +01:00
Matt Westcott 92567f6203 Document HEIC image support 2024-10-17 23:12:27 +01:00
Matt Westcott d02e09e00e Explicitly add image/heic to 'accept' attribute on image fields
File upload dialogs (at least on Chrome / Mac) don't count heic as part of image/*, as it's not a web-safe format.
2024-10-17 23:12:27 +01:00
Matt Westcott 670b721565 Recognise HEIC as an image format 2024-10-17 23:12:27 +01:00
Thibaud Colas 4725b80a13 Release notes for #12400. Fixes #9030, #9869 2024-10-17 13:33:08 +01:00
Sage Abdullah 5262b95a87 Add tests for custom media in default footer action items
And test it doesn't crash when there are no items
2024-10-17 13:33:08 +01:00
Sage Abdullah b022ae135a Ensure default footer actions' media is included
It was popped from the menu_items, so it's not in that list when we loop
through to collect the media files.

And add an early return if the default item is undefined (e.g. if a
construct hook caused the list to be empty), so it doesn't crash when it
tries to render to action menu.
2024-10-17 13:33:08 +01:00
Sage Abdullah ea61e39728 Reuse submit button strings from generic EditView in AccountView
Avoid adding new translatable strings
2024-10-17 13:33:08 +01:00
Sage Abdullah eecc4ff895 Make redirects add view and searchpromotions add/edit view templates extend the generic ones
Some hacks required until we properly refactor the views to be subclasses of the generic views
2024-10-17 13:33:08 +01:00
Sage Abdullah e231a13dbc Disable copy view for groups 2024-10-17 13:33:08 +01:00
Sage Abdullah d8d129450d Add submit_button_active_label to create/edit views 2024-10-17 13:33:08 +01:00
Sage Abdullah b934b6d089 Add copy and inspect buttons to edit view's header 'more' buttons 2024-10-17 13:33:08 +01:00
Sage Abdullah ef5ccea61d Standardise delete button label in edit views to 'Delete' 2024-10-17 13:33:08 +01:00
Sage Abdullah 47c2c0c82e Fix color contrast of bulk actions' 'Select all' button 2024-10-17 13:33:08 +01:00
Sage Abdullah efaa00d57c Remove action-secondary class from footer actions
It doesn't have good color contrast with the background, and these
'potentially-destructive' actions have a confirmation step anyway.
2024-10-17 13:33:08 +01:00
Sage Abdullah 5c4f83df72 Apply new footer actions styles 2024-10-17 13:33:08 +01:00
Sage Abdullah 037a71b679 Make pages create/edit templates extend from generic create/edit templates
and reuse the markup for footer actions.

With this commit, all form footer actions are now using the single
implementation in generic/form.html template.
2024-10-17 13:33:08 +01:00
Sage Abdullah 30048e5284 Move edit and delete links in inspect view to header 'more' buttons 2024-10-17 13:33:08 +01:00
Sage Abdullah ff17060a15 Simplify template for settings edit view
This also introduces the footer actions and unsaved changes warning to
these views.
2024-10-17 13:33:08 +01:00
Sage Abdullah 6fef75376e Simplify group create/edit templates
This also introduces the footer actions and unsaved changes warning
to these views.
2024-10-17 13:33:08 +01:00
Sage Abdullah fc05b3eb59 Add footer actions to account view 2024-10-17 13:33:08 +01:00
Sage Abdullah 13e52dcc13 Simplify user create/edit templates
This also adds the footer actions and unsaved changes warning.
2024-10-17 13:33:08 +01:00
Sage Abdullah 00655b55ec Simplify workflow and tasks create/edit templates
This allows us to reuse more markup from the generic templates,
including the code for footer actions dropdown. This also gives us the
unsaved changes warning to these views.
2024-10-17 13:33:08 +01:00
Sage Abdullah 5e766e2d13 Use w-progress and w-kbd for submit button in generic create/edit template
This gives us the disabled button with spinner upon clicking, as well as
the ability to use ctrl+s to save.

Note that we do not introduce a custom label for the in-progress state
of the button yet.
2024-10-17 13:33:08 +01:00
Sage Abdullah 2c4a8bac4d Add unsaved changes warning to generic create/edit template
With this added, we can now simplify the overrides in snippets templates
for the footer actions to only override the action buttons to use the
class component.
2024-10-17 13:33:08 +01:00
Sage Abdullah 45d9efdf99 Move delete button in edit view to a header 'more' button 2024-10-17 13:33:08 +01:00
Sage Abdullah 040065c73e Use dropdown button for default delete button in generic edit view via extra_actions block
This now gives us the dropdown button for the footer actions in most
areas of the admin:

- Generic views (ModelViewSets)
- Images
- Documents
- Sites
- Locales
- Collections
- Redirects (edit view, create view TBC)

The following areas have footer actions with their own implementation,
and will be refactored in subsequent commits:

- Workflows
- Workflow tasks
- Settings

The following areas need further work before it can use footer actions,
as they still use function-based view and may not work with the generic
templates yet:

- Redirects create view
- Search promotions

Lastly, for pages and snippets, they have their own footer actions
implementation for now because they use the ActionMenu class components.

Despite this, we also want to move the 'Delete' action to the header
'more' actions dropdown rather than the footer actions. This means we'll
get rid of the extra_actions block in generic/edit.html template in the
next commit. However, we'll keep the actual dropdown markup in
generic/form.html as it's still going to be needed by the workflows and
tasks edit templates to show the enable/disable buttons.
2024-10-17 13:33:08 +01:00
Sage Abdullah f08147193f Extract shared/action_menu/menu.html and menu_item.html templates 2024-10-17 13:33:08 +01:00
Sage Abdullah 3986b45dec Introduce footer actions container to generic create/edit template
This only moves the buttons to the buttom inside the indigo/black
container as a single row. It does not introduce the dropdown
button yet.
2024-10-17 13:33:08 +01:00