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

18059 Commits

Author SHA1 Message Date
Joel William
4a933df9fb Rich Text (Draftail) - Ensure SVG paths are correctly handled for custom features #12418
Ensure the documented support for providing an array of SVG paths to the 'icon' attribute when using `register_rich_text_features` is correctly supported.

Fixes #11777
Fixes #11051
Fixes #10319

See https://docs.wagtail.org/en/stable/extending/extending_draftail.html#creating-new-blocks
> It can also be an array of strings, to use SVG paths, or SVG symbol references for example 'icon': ['M100 100 H 900 V 900 H 100 Z'],. The paths need to be set for a 1024x1024 viewbox.
2024-10-27 20:20:02 +10:00
Temidayo32
c611dd4056 Ensure the Icon react component can support custom icon paths #11122
- When provided with children (e.g. custom paths), render these instead of the `use` symbol reference
- Allow any valid SVG attribute to be passed to the component to render on the `svg` element
- Clean up rendering of className to avoid extra whitespace
- Clean up ordering of the props to be alphabetically sorted
- Update unit tests to be focused more on testing and less on snapshots
2024-10-27 20:20:02 +10:00
Srishti-j18
d2f476c050 Documentation - Update page titles to align with Style Guide
- Use sentence case for headings and titles. (as per the Google Developer Documentation Style Guide)
- Fixes #12466
2024-10-27 15:27:03 +10:00
Thibaud Colas
b970f635e3 Update developer documentation screenshots for Wagtail 6.3 2024-10-26 01:50:46 +01:00
Thibaud Colas
987bd2a054 Update documentation colors based on latest color theming for more-contrast 2024-10-25 17:11:38 +01:00
LB (Ben Johnston)
61fe21af16
Documentation - Add recent third party tutorials (#12442)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-25 13:50:50 +01:00
activus-d
97a1f5aabd Documentation - Improve project template (wagtail start) & add to management commands reference
Fixes #11938

* Add `wagtail start` to the management commands reference
* Add detail on how to creating templates with the need to escape template syntax by using the verbatim tag
2024-10-25 21:15:30 +10:00
LB
fa81e2dbbe Docs - update spelling to US 'customizations' 2024-10-25 21:14:52 +10:00
LB
bd2a035439 Remove duplicate contributor name 2024-10-25 21:14:52 +10:00
Alessandro Chitarrini
b9e13077bb Documentation - Refine the adding reports page
- Move all generic (page/non-page) class references to the top of the documentation
- Use better heading level nesting cleanly isolate the full page report example
- Relates to #12428
2024-10-25 20:40:02 +10:00
LB
d5b56e00f6 Add changelog entry for docs changes #12437
Fixes #12435
2024-10-25 20:30:12 +10:00
Srishti-j18
2d644dd8e2 Documentation - Move tags out from pages model recipes to a standalone advanced topic 2024-10-25 20:30:12 +10:00
Srishti-j18
f588fcf249 Documentation - Reposition model & panel references
- Move model reference to directly under the references section, not the reference/pages section
- Move panel reference to directly under the references section, not the reference/pages section
- Merge panel API with panels reference pages
- Fix confusing heading levels in the page model recipes page
- Fix title in model reference to align with docs style guide
- Adopt US spelling for customize (panels) reference key
2024-10-25 20:30:12 +10:00
Thibaud Colas
25de8011d5 Release notes for #12460 2024-10-24 12:14:09 +01:00
Alex Morega
e4e94a5640
Replace X links with Mastodon (#12460)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-24 12:09:59 +01:00
LB
c0b2977647 Add links to 6.3 release notes documentation items 2024-10-24 11:51:15 +01:00
LB
d459bdb5dc Clean up whitespace items in documentation markdown 2024-10-24 11:51:15 +01:00
Thibaud Colas
46d2e44cd1 Release notes for #12393 2024-10-24 10:18:19 +01:00
Thibaud Colas
b680536286 Add release note template for 5.2.7 2024-10-24 09:57:11 +01:00
Thibaud Colas
3895136fd0 Add release note template for 6.2.3 2024-10-24 09:53:53 +01:00
sag​e
3f6cd8c18f
Fix font size for custom listing button styles (#12456) 2024-10-24 09:33:28 +01:00
Matt Westcott
e9af16b48d Improve i18n of success message for bulk page actions (#12453)
Previously, translations for messages such as "1 page and 3 child pages have been published" were handled with separate branches for the "one parent page" vs "multiple parent pages" cases, to work around ngettext only being able to handle pluralisation for one item in the string. This fails for languages such as Polish where the pluralisation does not follow the straightforward one/many distinction.

Instead, we can translate "N pages" and "N child pages" separately before forming the final message. We generally avoid translating sentence fragments in isolation as this can make things difficult for translators if the sentence structure does not match the English version - but this is hopefully an improvement over the current situation, as well as simplifying the code and reducing repetition.
2024-10-23 15:54:11 +01:00
Matt Westcott
34cbec36b2 Start new release notes sections for 6.4 2024-10-23 16:45:46 +10:00
Matt Westcott
bff75a2d08 Version bump to start work on 6.4 2024-10-23 16:45:46 +10:00
Matt Westcott
bbb50459c9 Remove versionadded / versionchanged notes for 6.2
However, leave behind notes that mark settings/features that are deprecated but not yet removed, as this would be removing information that isn't in the main body of the text (and moving it out of a versionchanged note would make it harder to find when we come to remove it properly in 7.0).
2024-10-23 16:45:46 +10:00
Matt Westcott
4d31bd0a29 Add clarification on using versionadded / versionchanged directives 2024-10-22 22:13:36 +01:00
Matt Westcott
c1ce58fb42 Add Uyghur language support to release notes 2024-10-22 17:13:26 +01:00
sumana sree
d35eb68b78 Fix: Update can_handle method to check for AbstractGroupApprovalTask instances
- Fixes #12328
- Regression from #11653
2024-10-22 08:19:38 +10:00
Matt Westcott
f265896267 Only add Uyghur to supported languages under Django 5.x 2024-10-21 18:35:17 +01:00
Matt Westcott
76070a037c Remove unused headings from 6.3 upgrade considerations 2024-10-21 18:03:59 +01:00
Matt Westcott
113aaf90c9 Mark 6.3 as an LTS release 2024-10-21 18:02:48 +01:00
Matt Westcott
55516cd67a Move headline features to the top of the changelog 2024-10-21 18:00:06 +01:00
Matt Westcott
e305906b9c Generate new translation strings 2024-10-21 17:54:34 +01:00
Matt Westcott
c4a48fffbb Release note for #12434 2024-10-21 17:51:34 +01:00
Sage Abdullah
0a4f145044 Improve default column widths of page report tables 2024-10-21 17:49:40 +01:00
Sage Abdullah
df37c239b0 Adjust column widths of page types usage report table 2024-10-21 17:49:40 +01:00
Sage Abdullah
58cae920fa Show '-' instead of 'None' for unfinished workflow tasks in the report view 2024-10-21 17:49:40 +01:00
Matt Westcott
6c589cb678 Fetch new translations from Transifex 2024-10-21 17:48:20 +01:00
Thibaud Colas
caec6d3a82 Release notes for #12419 2024-10-21 17:30:33 +01:00
Thibaud Colas
ac3bc56337 Fix dismissiable upgrade banner color contrast in dark theme 2024-10-21 17:30:33 +01:00
Sage Abdullah
f2ed3605c6 Make the upgrade banner dismissible 2024-10-21 17:30:33 +01:00
Sage Abdullah
bf842b32ef Check for last dismissed upgrade check in UpgradeController using data-w-dismissible-value-param 2024-10-21 17:30:33 +01:00
Sage Abdullah
098b48e074 Allow DismissibleController to patch non-boolean values via params 2024-10-21 17:30:33 +01:00
Sage Abdullah
f1c63186fd Improve typings in UpgradeController 2024-10-21 17:30:33 +01:00
Sage Abdullah
88342e944b Fix incorrect UpgradeController test
The current version is set to 2.3 at the top level of the test. If the
test case uses 5.15.1 as the latest version, then the test should've
failed – but it didn't because we're missing a few promises to be
awaited.

To verify, try reverting the version diff and re-run the test. It would
fail with the new assertions.
2024-10-21 17:30:33 +01:00
Sage Abdullah
0f0d871c5e Replace UpgradeController hiddenClass with the HTML hidden attribute 2024-10-21 17:30:33 +01:00
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