Jordan-Rob
9c29e6a12e
Remove duplicate code to escape HTML in JavaScript
...
* added an import for escapeHtml from utils/text and added back window.escapeHtml = escapeHtml
* Fixes #9492
2022-11-02 06:41:14 +10:00
Thibaud Colas
b7c04ed960
Avoid force-scrolling the minimap when unneeded
2022-10-31 23:09:58 +00:00
Thibaud Colas
3e2cbea51a
Ignore "collapse all" for minimap hover reveal
2022-10-31 23:09:58 +00:00
Thibaud Colas
769d3e2340
Add animated transition for minimap reveal
2022-10-31 23:09:58 +00:00
Thibaud Colas
8679d29233
Fix minimap toggle button remaining visible when closing
2022-10-31 23:09:58 +00:00
Thibaud Colas
24f432dfb4
Fix legacy dropdown buttons using a different size from toggle. Fix #9476 ( #9551 )
2022-10-31 16:06:33 +00:00
Matt Westcott
d8ff3cbcf2
Fix JS string extraction for ngettext
...
The definition for ngettext in extract-translatable-strings had incorrect argument positions, and as a result strings translated with ngettext were missed from the .po file.
2022-10-28 11:30:19 +01:00
Matt Westcott
b848254873
Apply correct pluralisation to minimap error count
...
Fixes #9497
2022-10-28 07:20:03 +10:00
Sage Abdullah
78a7652f6b
Move scheduled publishing dialog root to editor form element
2022-10-27 17:39:51 +01:00
Lovelyfin00 (Nutjob)
bd62927958
Ensure logo shows correctly on log in page in Windows high contrast
...
- Added a class to the logo image and also added forced mode to the logo image class
- Fixes #9428
2022-10-27 08:29:09 +10:00
xomcodes
3dcde23e02
Fixed auth form field padding (Log in / password reset)
...
- Fixes #9440
2022-10-27 08:01:08 +10:00
Mary Ojo
aea9f14558
Fix status tag font-size units for proper resizing ( #9382 )
2022-10-23 13:56:55 -04:00
Albina Starykova
bd13f567fe
Ensure visual consistency between buttons and links as buttons in WHCM
...
- Fix secondary-button disabled state
- Fix legacy dropdown in WHCM
- Fixes #9078
2022-10-21 08:35:12 +10:00
Lovelyfin00 (Nutjob)
91de7a126d
Ensure authentication forms have a visible border in Windows high contrast mode
...
- fixes #9350
2022-10-20 23:01:30 +10:00
Lovelyfin00
86437515a3
Make sure workflow timeline icons are visible in high-contrast mode. Fix #9349 ( #9383 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-10-19 21:35:05 +01:00
Thibaud Colas
52e55a7c46
Implement new minimap component for forms with side panels. Fix #8673 ( #9345 )
2022-10-17 18:52:09 +01:00
Sage Abdullah
0a0e07abc0
Add help menu with dismissible badges
...
By default, the menu contains a link to a blog post
showcasing features in Wagtail 4.1 and a link to the editor guide.
We need to update the links and labels manually in the next release.
2022-10-17 17:39:37 +01:00
Sage Abdullah
28ed884581
Add WhatsNewInWagtailVersionPanel to home dashboard
...
Can be disabled via WAGTAIL_ENABLE_WHATS_NEW_BANNER setting.
We need to update the link and content in the next release if necessary.
2022-10-17 17:39:37 +01:00
Sage Abdullah
b115e03d28
Add view and client script for Dismissibles
2022-10-17 17:39:37 +01:00
Sage Abdullah
34a79d36ad
Add attrs to base MenuItem class and default it to empty dict
2022-10-17 17:39:37 +01:00
Sam Moran
45f0c73ff4
Update version.js to accept dev build version format
...
- fixes #9184
2022-10-17 22:06:08 +10:00
Steve Stein
5112c0eaa8
Improve side panels’ resizing in page editor and listings, and breadcrumbs alignment. Fix #9036 ( #9090 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-10-17 12:18:02 +01:00
Matt Westcott
c165814311
Fix focus handling when blocks are inserted with animation
...
Calling focus() on a block immediately after inserting it with animate:true has been broken since d3e58f7908
, since the field only becomes focusable once the animation begins. Address this by adding a new 'focus' option to the BaseSequenceChild constructor and related insert methods, to indicate that the block should be focused as soon as it becomes available.
2022-10-14 18:36:08 +01:00
Matt Westcott
e0266c276a
Don't split block when inserting a new block at the end
2022-10-14 18:34:05 +01:00
Matt Westcott
6885eedb52
Pass widget instance to command classes
2022-10-14 18:34:05 +01:00
Matt Westcott
e635daf5a3
Move split command into its own class
2022-10-14 18:34:05 +01:00
Matt Westcott
afc0c6d0a4
Move logic for Draftail block insertion commands into its own class
2022-10-14 18:34:05 +01:00
Matt Westcott
0de901014b
Remove misleading dynamic text for split command
...
The splitter always splits into 2 - the number of blocks in the content is not relevant.
2022-10-14 18:34:05 +01:00
Matt Westcott
80f17710d1
Move getFullOptions into a method on BoundDraftailWidget
2022-10-14 18:34:05 +01:00
Matt Westcott
813c1fa74b
Make boundDraftail into a proper class
2022-10-14 18:34:05 +01:00
Thibaud Colas
a005f66475
Make sure chooser buttons can be revealed for all widgets. Fix #9260
2022-10-14 14:32:02 +01:00
sage
01dbababa9
Remember last opened side panel in the editor on page load ( #9269 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-10-14 14:27:59 +01:00
Thibaud Colas
7c1d73cbea
Update InlinePanel’s headings text and level ( #9316 )
2022-10-14 14:14:04 +01:00
Thibaud Colas
8ef002994e
Switch StreamField to use same panel component as other collapsible sections. Fix #9180 , #8047 ( #9319 )
2022-10-14 13:51:46 +01:00
Albina Starykova
b6d4af418f
Update pattern library background & text examples
...
- Add better text examples to the Type scale story
- Set the background to white for Storybook stories
- fixes #8659
2022-10-13 06:56:15 +10:00
LB Johnston
2e8709e0d6
Documentation - update dead/redirected links
2022-10-11 20:44:08 +10:00
Steve Stein
aeae0089d3
Adjust checkbox and radio label colours, remove margin on fields in group permission tables, and adjust spacing between error icon and message ( #9074 )
2022-10-07 08:40:13 +01:00
LB Johnston
eb398a5f9b
eslint - move 'prefer-destructuring' disabling to core rules
...
- this rule does not align with preferred code approach
2022-09-27 14:53:18 +01:00
Sage Abdullah
41c8512789
Reset scheduled publishing fields when dialog is closed
2022-09-22 14:55:44 +01:00
Sage Abdullah
c17ab8b77a
Render PublishingPanel inside dialog component
2022-09-22 14:51:16 +01:00
Sage Abdullah
1ab4c66f26
Set datetime picker z-index relative to dialog's z-index if it's within a dialog
2022-09-22 14:46:54 +01:00
Sage Abdullah
7b39c198c8
Allow specifying dialog_root_selector in dialog component
2022-09-22 14:44:34 +01:00
Helen Chapman
bf3a054c04
Add a toggle to collapse/expand all page panels at once. Fix #9152 ( #9167 )
2022-09-16 11:24:46 +01:00
Nicholas Johnson
9e810ce5b0
Make report titles sentence case consistently
...
Fix a few more "Locked Pages" references
2022-09-16 07:04:46 +10:00
Steve Stein
d96510949a
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:30:37 +01:00
Steve Stein
66ea563fec
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:58:43 +01:00
PaarthAgarwal
b345014fad
Align hover behaviour for delete button with new designs
...
- relates to #3823
- relates to #8790
2022-09-14 15:45:13 +10:00
Matt Westcott
7eefd98dc2
Revert chooser button labels to "Choose another X"
...
Fixes #9113
2022-09-14 07:40:38 +10:00
LB Johnston
c0ae976471
avoid usage of disabled class in expanding formset & update button usage
...
- remove check for disabled class on expanding formset - InlinePanel uses disabled attribute
- remove existing potentially disabled expanding formset usage of links instead of buttons
2022-09-09 09:06:07 +10:00
PaarthAgarwal
6906273609
applied new designs to disabled buttons
...
- add pointer-events: none; to disabled buttons (useful when using with links)
- added warnings about using disabled as a class instead of disabled as an attribute on elements
2022-09-09 09:06:07 +10:00
PaarthAgarwal
73f39c35d7
applied new designs to secondary buttons
...
* Added note in 4.1.md for .button-secondary not being compatible with .no/.serious
* Added comment for button-secondary class not being compatible with serious/no classes
* Fixed message button-secondary hover states
* Relates to #8790
2022-09-09 08:28:57 +10:00
PaarthAgarwal
3146a57c26
remove unused yes button styles
...
- relates to #8790
2022-09-09 06:47:32 +10:00
PaarthAgarwal
d266b5abc0
applied new design to delete button in comments
2022-09-07 22:11:43 +10:00
PaarthAgarwal
0e21d2e239
fix icon button
2022-09-07 22:11:43 +10:00
PaarthAgarwal
99ca7f90e9
applied new design for no/serious (delete) buttons
...
- added hover overrides for disable button so that hover makes no visual change
- make the delete button background white instead of transparent
- adopt new designs for no/serious
2022-09-07 22:11:43 +10:00
LB Johnston
aa70a9f5bd
button stying fixes & follow up
...
* follow up to #9104
* relates to #8790
* fix up styleguide example buttons for yes/no variants, add more disabled variants
* add type="button" to styleguide example buttons
* revert box-sizing change and use line-height with calc for borders instead
* revise border overrides to set border-color only
* fix modal button override
2022-09-07 08:15:45 +10:00
LB Johnston
174488accf
move inlinePanel function to src/includes and add basic test
...
- basic unit test is mostly a smoke test that the init functions get called
- add JSDOC to inlinePanel function body
- name some internal functions
2022-09-06 15:49:00 +01:00
LB Johnston
4b521c51cd
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:00 +01:00
LB Johnston
2d2649e861
taggit / autocomplete - add backgrounds to overlay items
...
- original backgrounds removed in client/scss/vendor/jquery-ui-1.10.3.verdant.css 4eb35dbc0a
via #8419
- also ensure the dropdown items show correctly in high contrast mode
- fixes #9128
2022-09-06 13:33:11 +01:00
Vaibhav Shukla
66d9463d5c
show different locked indicator for locked by current user
...
- ensure it works for colour contrast, windows high contrast mode and non-colour only visible change
- only show the change if page is locked by the current owner
- added assert check for the locked-indicator-owner in test
- adopt new icons for privacy indicator also
- ensure the icons show correctly for high contrast mode
2022-09-06 10:20:20 +10:00
LB Johnston
a8aa747bde
rename privacy_indicator styles file to indicator
2022-09-06 10:20:20 +10:00
Joshua Munn
78fe000b19
Add custom jest matcher for block id duplicate tests
2022-09-06 08:08:34 +10:00
Joshua Munn
94d6ca055f
Simplify StreamBlock duplication tests, add StructBlock dup tests
2022-09-06 08:08:34 +10:00
Joshua Munn
135fe6724c
Add getDuplicatedState method to ListBlock and ListChild
2022-09-06 08:08:34 +10:00
Joshua Munn
6f1fde7cfc
Add getDuplicatedState methods to block classes
...
Fixes duplication of block ids when duplicating stream field blocks
2022-09-06 08:08:34 +10:00
PaarthAgarwal
6433aebe6b
refactored button styles
...
- relates to #9104
- Removed: .button-neutral, .button-strokeonhover and .hover-no.
- Replaced hardcoded font size, font weight values with theme variables.
- Removed overridden duplicate styles for .yes, .no and .bicolor.
- Merged a few styles under one class.
- Removed non-link button which was using span tag from styleguide, remove other unhelpful examples
2022-09-05 18:48:06 +10:00
jacobtoppm
acf6f419a0
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 15:01:17 +01:00
Mehrdad Moradizadeh
a0f038af14
move branding_title to the end of page title
...
Ensure the title of the Web page first identifies the topic of the page, then shows the group name followed by the name of the parent organisation.
* fixes #9054
* https://www.w3.org/WAI/WCAG21/Techniques/general/G88
* https://www.w3.org/WAI/WCAG21/Understanding/page-titled.html
2022-08-31 22:10:57 +10:00
Thibaud Colas
167a923fb1
Adjust comment button positioning to avoid overlaps in field rows
...
Co-authored-by: Steven Steinwand <steven_ts@hotmail.com>
2022-08-31 12:53:54 +01:00
Thibaud Colas
1f08152d42
Customize comment focused colours for draftail
...
Co-authored-by: Steven Steinwand <steven_ts@hotmail.com>
2022-08-31 12:53:54 +01:00
Thibaud Colas
5890cf5bda
Highlight side panels toggles when expanded
...
Co-authored-by: Steven Steinwand <steven_ts@hotmail.com>
2022-08-31 12:53:54 +01:00
PaarthAgarwal
1d5824dcc7
remove redundant unbutton styles
...
- relates to #8790
2022-08-31 08:03:27 +10:00
PaarthAgarwal
b924456b65
centered spinner icon and signing in text
2022-08-26 06:49:19 +10:00
Jake Howard
efe8f17280
Adopt lazy image loading throughout admin
...
This improves page responsiveness on first load, especially on pages with many images (eg images list in Wagtail admin)
* Lazy load thumbnails on modeladmin lists
* Update oembed photos to use lazy loading
* Use lazy loading for `MediaBlock`, the avatar in the sidebar and comments
* Just decode chooser images async
2022-08-25 18:20:45 +10:00
jacobtoppm
51de90fc81
Fix FieldBlocks ending up with a null annotationTemplateNode and making commenting impossible if they initialise pre-CommentPanel
...
- fixes #9035
2022-08-25 06:45:40 +10:00
Steven Steinwand
700d8fde07
Simplify css selectors
2022-08-24 13:50:20 +01:00
Steven Steinwand
1c1dc8170e
Format css
2022-08-24 13:50:20 +01:00
Steven Steinwand
e27e0b8bf4
Hide anchors and toggles for page titles from screen readers
2022-08-24 13:50:20 +01:00
PaarthAgarwal
4e747326fa
fix formatting issues with modal header
...
- formatting fix for the header on small devices
- ensure the padding left is not set so that the outside is fully clickable
- fixed close button colours
- fix alignment and heights of smaller breakpoint modal header
- fixes #9053
- fixes #9014
2022-08-22 16:52:16 +10:00
Steven Steinwand
d1167d8446
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
2022-08-21 09:13:17 +10:00
Sage Abdullah
32b5b992b3
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:25:34 +10:00
Sage Abdullah
b20a64f13b
Fix live preview error banner overlapping with preview mode selector
2022-08-18 12:39:46 +01:00
Matt Westcott
323dfe49e9
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:32:21 +01:00
Matt Westcott
cc4675aa5e
Use correct classnames for showing/hiding edit button on chooser widget
...
Fixes #9008
2022-08-17 07:50:29 +10:00
PaarthAgarwal
011099dd45
fixed console error for breadcrumbs
2022-08-16 07:35:23 +10:00
Matt Westcott
8564383ef5
remove stray console-log from page-editor.js
2022-08-16 06:13:30 +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
c620e58c86
Fix keyboard focus not showing the chooser‘s actions
2022-08-10 15:08:57 +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
Sage Abdullah
f322e9d868
Improve Snippets listing styles
2022-08-09 13:01:50 +01:00
Sage Abdullah
9476f677fc
Enforce bulk action checkbox column to be 50px
2022-08-09 13:01:50 +01:00