0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00
Commit Graph

1393 Commits

Author SHA1 Message Date
Sage Abdullah
db0b985484
Use flex display for listing header .right class
Workaround until #10148 is fixed
2023-07-12 09:18:11 +01:00
Matt Westcott
cbd6a1328c Convert page listing view to tables framework 2023-07-11 10:28:12 +01:00
Matt Westcott
69b7ed0815 Use table component for page search results 2023-07-10 15:21:46 +01:00
LB Johnston
04d1e8162b Migrate header search to a Stimulus controller (w-swap)
- Removes the jQuery slide animation so content will be instantly replaced
- Removes the autofocus behaviour on the search fields as this is not helpful for screen readers / keyboard control
- Includes support for `window.header` if provided alongside dynamic adding of data-* attributes if not included
- Base implementation for #9950
- Co-authored-by: sag᠎e <laymonage@gmail.com>
2023-07-06 20:10:31 +10:00
Thibaud Colas
f4ea0156a2 Implement new Draftail customisation APIs
- Fixes #5580
- Remove TSLA/TWTR/BTC references and replace with clean energy FSLR / NEE stocks
2023-07-06 13:14:54 +10:00
LB Johnston
8251072e6d Replace usage of innerHTML with textContent
- Stimulus CountController content is programatically generated but best to avoid writing HTML accidentally
- ChooserModel field required label should avoid risk of translations with HTML
- Image focal point chooser's label does not need to support HTML
- FieldBlock us using h util but this can be avoided by built in browser escaping when innerText is used
- focal-point-chooser gets value from its set up but we should avoid innerHTML if we can
2023-07-06 12:26:43 +10:00
LB Johnston
1e271afc92 Chore - remove unused global declaration
- Was triggering an Eslint warning
2023-07-05 08:13:38 +10:00
SebCorbin
d52484f524 Auto-select single block in StreamField
- Closes #3998
2023-07-04 17:38:45 +10:00
LB Johnston
150e988f4d
Migrate Tagit init JS to TagController
- Closes #10100
2023-06-27 09:23:01 +01:00
LB Johnston
82ca711f16
Rename initTagField to TagController 2023-06-27 09:23:01 +01:00
LB Johnston
4195f80d29
Create shared util domReady 2023-06-27 09:23:01 +01:00
Sage Abdullah
0ba6cb726c Fix taggit/tagit autocomplete text colour in dark mode
- Relates to #10418
2023-06-27 08:01:57 +10:00
Thibaud Colas
4bd1f7b267 Add a way to hide the tooltip on click for chooser widgets 2023-06-26 13:55:09 +01:00
Thibaud Colas
466e43e571 Fix "More" dropdown for bulk actions 2023-06-26 13:55:09 +01:00
Thibaud Colas
65c37b34bc Fix text wrapping 2023-06-26 13:55:08 +01:00
Thibaud Colas
55fd422eb6 Remove now-unused c-dropdown / data-dropdwon implementation 2023-06-26 13:55:08 +01:00
Thibaud Colas
3b3d4ed981 Remove Tippy implementation migrated to Stimulus 2023-06-26 13:55:08 +01:00
Thibaud Colas
7516b55e83 Switch bulk actions’ "More" dropdown to new component 2023-06-26 13:55:08 +01:00
Thibaud Colas
2b1f13a109 Add missing exports 2023-06-26 13:55:07 +01:00
Thibaud Colas
9798306f0e Update chooser styles to match designs 2023-06-26 13:55:07 +01:00
Thibaud Colas
1f15f52a6d Update chooser widgets to use new dropdown component 2023-06-26 13:55:07 +01:00
Thibaud Colas
d288b2f81e Add new dropdown component based on Tippy.js 2023-06-26 13:55:07 +01:00
Thibaud Colas
f985262959 Allow all stories within subfolders of shared templates to appear in the same section 2023-06-26 13:55:07 +01:00
Matt Westcott
6c818f1695
Restore the valign='top' style 2023-06-26 11:07:13 +01:00
Sage Abdullah
aebca4781e Defer preview panel iframe src loading until it's opened 2023-06-22 08:11:54 +10:00
Sage Abdullah
281a980736 Defer preview data updates until the preview panel is opened 2023-06-22 08:11:54 +10:00
Sage Abdullah
e598589ac6 Debounce live preview updates to prevent making too many requests 2023-06-22 08:11:54 +10:00
Thibaud Colas
f3f2589b7c Use custom dark theme colors for revision comparisons. Fix #10552 2023-06-20 13:24:09 +01:00
Thibaud Colas
284a4ef78e Move all slim header button classes to be defined in slim_header.html 2023-06-15 15:53:53 +01:00
Thibaud Colas
9285e77734 Allow 2px borders in utility classes 2023-06-15 15:53:53 +01:00
LB Johnston
ba8a975273 SyncController - add better performance & enhance
- Add support for a default 100ms debounce on apply calls so that multiple events (e.g. keyup) do not impact performance
- Refine the delay for updating the field to not use setTimeout by default as this async behaviour is no longer needed for basic usage
- Add unit tests for debounce functionality and clean up unit testing to ensure each test can run in isolation
- Add explicit tests for non-inpu fields such as select (update code to ensure we use setter not setAttribute to support these)
- Add ability to support an action param for a fixed value being synced to another field
- Relates to #10517
2023-06-15 12:22:55 +01:00
LB Johnston
015c4339d7 Slug Controller - enhance default compare function
- Allow compareAs behaviour to be overridden via the event detail OR a param
- Enhance types to be more strict, refine JSDoc to be clearer about the default behaviour
- Add unit tests for default compare function and make logic a bit easier to read in regards to how the slugify/urilify methods are conditionally called
- Relates to #10532
2023-06-14 18:50:43 +01:00
LB Johnston
3ce2b5f007 Chooser modal - update spinner logic on error
- When errors occur on chooser modal content, find the local progress buttons that are in loading state and update the value
- Stimulus will automatically resolve all DOM changes based on the dynamic value update
- Add unit tests for functionality
- Fixes #10498
- Regression from #9910 & #10062
2023-06-13 12:59:45 +01:00
LB Johnston
35de8a98b7 Progress Controller - add backwards compatible cancelSpinner
- support legacy cancelSpinner global for any other code that may still rely on this
- see #10498
2023-06-13 12:59:45 +01:00
LB Johnston
380e04a2fb Small typo in JSDoc - gettext
- The function created is pluralIdx (capital I), the underlying Django function is pluralidx
- Update our gettext JSDoc to align with our usage of pluralIdx (capital I)
2023-06-12 12:14:11 +01:00
Thibaud Colas
40335ba9d1 Add tests to help with maintenance of theme color tokens 2023-06-12 10:55:12 +01:00
Thibaud Colas
fb793f2b4b Remove all unused color tokens 2023-06-12 10:55:12 +01:00
Thibaud Colas
e0f3f05ffd Remove usage of color tokens which are duplicates 2023-06-12 10:55:12 +01:00
LB Johnston
aa9e9cddc7 Resolve multiple typos (spelling and grammar)
- Optimized/Customized/Catregorize -> Optimised/Customised/Categorise
- Github -> GitHub (80% were spelt with capital H, this is the way GitHub spells itself)
- GitPod -> Gitpod (most were without the capital P, Gitpod's site does not use capital P)
- Remove duplicate words (to to, the the)
- De-coupled -> decoupled
- implementors -> implementers (all other references used 'site implementers' so just aligning with the common case)
- Fix a/an usage in one case
- Fix one comment usage of ok, replace with OK
2023-05-30 21:07:37 +10:00
Thibaud Colas
6bb7e129b6 Fix color contrast of red error messages in dark mode 2023-05-25 08:36:49 +01:00
Thibaud Colas
7cb23a00d9 Simplify rich text commenting color styles for dark mode compatibility 2023-05-25 08:36:49 +01:00
Thibaud Colas
b920ced26d Fix text color for time picker options 2023-05-25 08:36:48 +01:00
Thibaud Colas
56f97890da Fix hover styles for secondary buttons in listings 2023-05-25 08:36:30 +01:00
Thibaud Colas
de12dbbd4e Remove unneeded border for footer actions 2023-05-25 08:36:30 +01:00
Thibaud Colas
ed13e0f7e8 Fix text color for selected / highlighted items in chooser modal listings 2023-05-25 08:36:30 +01:00
Thibaud Colas
cf116f90cf Fix close button appearances in choosers & dialogs 2023-05-25 08:36:30 +01:00
Thibaud Colas
13df497014 Use the correct hover color for form panel icons 2023-05-25 08:36:30 +01:00
Thibaud Colas
4d4feb2ca0 Fix switch component having a white border in dark mode 2023-05-25 08:36:30 +01:00
Thibaud Colas
aca7159b45 Re-add distinctive borders in page explorer 2023-05-25 08:36:30 +01:00
Thibaud Colas
91f2e18b22 Update focus color to a shade that works better in dark mode 2023-05-25 08:36:29 +01:00