Wykres commitów

799 Commity (stable/4.0.x)

Autor SHA1 Wiadomość Data
Steve Stein 44d954e00a Update alignment and reveal logic of fields’ comment buttons. Fix #9025 (#9164)
Co-authored-by: Steven Steinwand <steven_ts@hotmail.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-09-14 16:54:56 +01:00
Steve Stein ce43564bde Use the correct type scale for heading levels in rich text. Fix #9027 (#9189)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-09-14 13:59:49 +01:00
Matt Westcott 3853ad9679 Revert chooser button labels to "Choose another X"
Fixes #9113
2022-09-14 07:41:24 +10:00
LB Johnston a5c1334d65 fix issue inline panel ordering
- fixes #9145
- no longer working with the new DOM structure introduced by #8983  / ca7f23d176
- instead of using `$.children` use `$.find` to find the panel's input fields but ensure we still supported nested fields by finding based on the child panel's id
2022-09-06 15:49:24 +01:00
jacobtoppm 3859b675b1 Postpone add comment widget initialisation until after comments are enabled. (#9124)
This prevents errors when comments.js is loaded but a view does not use
the commenting functionality, which caused issues for StructBlocks containing
FieldBlocks on non page-models. In future we should only load comments.js
where it is actually needed as well.
2022-09-02 14:53:54 +01:00
Thibaud Colas c28c4e07e8 Customize comment focused colours for draftail
Co-authored-by: Steven Steinwand <steven_ts@hotmail.com>
2022-08-31 12:55:04 +01:00
Thibaud Colas 85825caf58 Highlight side panels toggles when expanded
Co-authored-by: Steven Steinwand <steven_ts@hotmail.com>
2022-08-31 12:55:00 +01:00
jacobtoppm 0a28ed60fd Fix FieldBlocks ending up with a null annotationTemplateNode and making commenting impossible if they initialise pre-CommentPanel
- fixes #9035
- cherry pick of #9076
2022-08-25 07:02:09 +10:00
Steven Steinwand 4767a47ac1 Add pseudo element to increase hoverable area for the drafttail field and the add block trigger button.
- Change variables for sizing
- Move hover extended styling to BlockToolbar
- fixes #9024
- cherry pick of #9049
2022-08-21 09:16:46 +10:00
Sage Abdullah 337baa39d4 Clear existing preview data on initial load of the create/edit view
This prevents stale preview data from being initially shown after reloading the PreviewOnCreate view
- fixes #9058
2022-08-21 08:26:17 +10:00
Matt Westcott 5b18769e27 Fix error insertion logic for modal upload forms
Fixes #9019

* The `[data-field]` element (not the input) should be queried to find the `[data-field-errors]` element
* The code should not assume the presence of an icon element
2022-08-18 09:33:40 +01:00
Matt Westcott e1c8a41117 Use correct classnames for showing/hiding edit button on chooser widget
Fixes #9008
2022-08-17 07:51:27 +10:00
PaarthAgarwal fa0a2aa075 fixed console error for breadcrumbs 2022-08-16 07:41:23 +10:00
Matt Westcott 1d33591820 remove stray console-log from page-editor.js 2022-08-16 07:41:13 +10:00
Thibaud Colas ca7f23d176
Update InlinePanel and StreamField styles for new designs (#8983) 2022-08-12 13:17:40 +01:00
LB (Ben Johnston) 6a11ae711a
Only use hidden until-found in panels if browsers supports it (#8962) 2022-08-12 12:19:48 +01:00
Matt Westcott 267cac0fe1 Remove outdated fixme comment and redundant results_only parameter 2022-08-12 17:35:42 +10:00
Thibaud Colas cee3e6d28b Add target styles for block toolbar 2022-08-10 15:15:20 +10:00
Thibaud Colas 5014c2ea1c Move rich text comments from block toolbar to inline 2022-08-10 15:15:20 +10:00
Thibaud Colas dca2294293 Fully move rich text split from meta toolbar to block toolbar 2022-08-10 15:15:20 +10:00
Thibaud Colas 53dded86c8 Update base Draftail/TextField form styles to match designs 2022-08-10 15:15:20 +10:00
Thibaud Colas 21b5ad5ce9 Update chooser styles across all types 2022-08-10 15:08:57 +10:00
Matt Westcott 90e91e0e4a Consistently use edit_url in the state representation of choosers
Previously we were using edit_link in dicts handled by JS, and edit_url in dicts handled by Python, meaning that ChooserBlock.get_form_state had to rewrite it
2022-08-10 14:53:41 +10:00
Matt Westcott 0077183682 Add a base class for Telepath adapters for chooser widgets 2022-08-10 14:53:41 +10:00
Matt Westcott d4c146ad01 Add a base class for chooser factories 2022-08-10 14:53:41 +10:00
Akash-Kumar-Sen 46bb760319 Ensure page explorer header item aligns with toggle on sm device
- fixes #8939
2022-08-09 21:29:20 +10:00
PaarthAgarwal d2529cad92 Restyling all log in & password reset flow pages
- add id=main to all login flow form templates for non-JS skip link usage
- remove inline script to focus on username field in login form
- adopt a consistent DOM layout for all log in & password reset flow forms
- ensure h1 is at the top of the DOM in all forms
- add wagtail logo to sign in form and document the ability to override it
- fixes #2309
2022-08-06 19:06:19 +10:00
Thibaud Colas eac5e0bc2c Finish re-implementing form styles based on design feedback & code review
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Thibaud Colas 3d96e7fbe7 Implement collapsible and linkable panels
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Thibaud Colas af9b16e93d Re-implement base form field styles based on new page editor designs
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Matt Westcott 6a881e0a5d Hide 'Edit this item' link from chooser widget if edit_url is not supplied 2022-08-05 08:34:14 +10:00
LB Johnston 3be9e7fb9e bulk-actions - fix issue where non-number object ids would fail
- add bulk actions baseline tests
- move to includes/bulk-actions
- fix linting issues
- fixes #8563
2022-08-05 07:41:15 +10:00
LB Johnston c6dc70ad62 move bulk-actions
- intentionally a separate commit to keep file history in git
2022-08-05 07:41:15 +10:00
LB Johnston 4abf011849 add range util 2022-08-05 07:41:15 +10:00
Thibaud Colas 8a7e0884d7 Finish implementing rich text max length with identical client & server count 2022-08-04 16:59:31 +02:00
Jacob Topp-Mugglestone 0cdb9d8915
Implement combined rich text split and block insertion (#8923)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-08-02 18:31:32 +01:00
Matt Westcott e83f3f6bde Make 'no images' prompt consistent with documents, with "upload one now" prompt 2022-08-02 19:28:49 +02:00
Matt Westcott 79cd029e80 Use data-chooser-modal-search-filter on collection filter mixin
So that document and image choosers don't have to identify it by ID in their JS
2022-08-02 19:28:49 +02:00
Matt Westcott 3caa98abbe Change CSS selectors to the generic defaults 2022-08-02 19:28:49 +02:00
Matt Westcott 90454c75df Make ImageChooserModalOnloadHandlerFactory inherit from base implementation 2022-08-02 19:28:49 +02:00
Matt Westcott b2fa61d33b Convert image chooser modal onload handlers into a class 2022-08-02 19:28:49 +02:00
Matt Westcott 0b752a81ac Move validation into the base chooser modal implementation 2022-08-02 19:28:49 +02:00
Matt Westcott 49720cc08f Update form validation code to check all required fields and eliminate jquery 2022-08-02 19:28:49 +02:00
Matt Westcott 21d172200c Use CreateViewMixin for image upload view 2022-08-02 19:28:49 +02:00
Matt Westcott e831d8e6cc Use standard modal step names (choose / chosen) for image chooser 2022-08-02 19:28:49 +02:00
Matt Westcott 3aa69c5e31 Use the generic creation_form.html for the image chooser 2022-08-02 19:28:49 +02:00
Matt Westcott be368d1361 Make images chooser.html inherit from generic template
Remove the `w-tabs__wrapper` element from the generic template, as it isn't needed (its primary purpose is to handle the tab list overflowing/scrolling) and adds unwanted bottom margin.
2022-08-02 19:28:49 +02:00
Matt Westcott f861bf991e Move collection filter into filter form 2022-08-02 19:28:49 +02:00
Matt Westcott 112f2ea7da Fix focus() to focus the correct button in the 'chosen' vs 'unchosen' divs according to the widget state 2022-08-02 16:41:46 +02:00
Matt Westcott f91daa7f3e Use textContent rather than innerText for accessing title element
innerText is unimplemented by jest / jsdom, as per https://github.com/jsdom/jsdom/issues/1245
2022-08-02 16:41:45 +02:00