0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

14137 Commits

Author SHA1 Message Date
Thibaud Colas
77a63c224f
Make sure minimap error indicators follow the minimap scrolling (#9624) 2022-11-10 08:31:00 +00:00
FatumaA
d4792785b8 Refactor - convert initTooltips to TypeScript, add JSDoc & tests
- Fixes #9505
2022-11-10 07:34:43 +10:00
Seremba
dcd8148dfe Style default secondary buttons with icons
- Style secondary button with icon to match according to Wagtail Design System
- Fixes #9198
2022-11-10 07:24:27 +10:00
Albina Starykova
d36790640e Remove unnecessary box-sizing: border-box declarations
- box-sizing: border-box added to all elements globally in #8921
- Relates to #9031
2022-11-10 06:52:09 +10:00
Lovelyfin00
933a730928 Removed no-prototype-builtins rule from eslintrc and fixed minor additional issues 2022-11-10 06:40:40 +10:00
Lovelyfin00
67c7f82de5 Create a util hasOwn to simplify object property checks 2022-11-10 06:40:40 +10:00
Florian Vogt
cafc2130af Use blocktrans to remove trailing whitespace in headers
- Fixes #9596
2022-11-10 06:31:38 +10:00
Matt Westcott
2a20764b00 Release notes for #9625 2022-11-09 14:21:20 +00:00
Matt Westcott
32bd6cf83e Add clarifying comment for GFK content type handling 2022-11-09 14:06:22 +00:00
Matt Westcott
0534f74002 Fix handling of generic foreign keys in reference index
Fix two bugs with the handling of generic foreign keys within `ReferenceIndex._extract_references_from_object`:

* null values were not considered
* content type ID was copied directly from the source field, unlike all other cases that translate to the base content type instead - lookups use the base content type, so these results were not returned.

Fixes #9615
2022-11-09 14:06:21 +00:00
Matt Westcott
a87a5d8d5a Gracefully skip reference indexing for objects with a null ParentalKey
Fixes #9583. The use case for null ParentalKeys is a bit questionable, but if they exist, we don't want reference indexing to break on them. Since references are always stored against the parent object, there's no valid way to record these references, so gracefully skip over them instead.
2022-11-09 14:05:53 +00:00
mohammadareeb95
66f2512ef5 Ensure links that have .nolink (current link) can be seen in WHCM
- Fixes #9578
2022-11-09 22:55:03 +10:00
AdeboyeJuliet
c225172c1f fix:Tippy tooltip arrows render as rectangles in WHCM
- Fixes #8835
2022-11-09 22:12:57 +10:00
Albina Starykova
b1c4ca5489 Fix tag field styles in WHCM
- Fixes #9529
2022-11-09 21:45:50 +10:00
DokuaAsiedu
7ae2625132 Add new development documentation section "Development on Windows"
- Fixes #9540
- Remove duplicate name in contributors
2022-11-09 21:32:13 +10:00
AdeboyeJuliet
f41a219697 Migrate initSkipLink to typescript, add unit tests & JSDOC
- Additionally clean up the exports and imports to be sorted & align with named export usage
- Fixes #9541
2022-11-09 21:25:53 +10:00
Dev-Yusuf
c2ba84e825 Resolved the skip link contrast issues to meet requirements
- Update client/scss/components/_skiplink.scss
- fixes #9515
2022-11-09 21:17:37 +10:00
Doug Harris
2af1871271
Fix spelling middlware -> middleware (#9633)
* Fix spelling `middlware` -> `middleware`
2022-11-09 07:22:51 +10:00
dependabot[bot]
ef375f05e9 Bump loader-utils from 1.4.0 to 1.4.1
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-09 06:25:49 +10:00
Matt Westcott
bafac01ca7 Releasse note for #9631 2022-11-08 17:56:53 +00:00
Matt Westcott
df7442cd60 Ignore tag relations when reference-indexing 2022-11-08 17:53:32 +00:00
Matt Westcott
4013773d06 Fall back on field.name for fields that don't provide a verbose_name property 2022-11-08 17:53:32 +00:00
Omer Ali
748c082e01 Docs / release note for #9602 2022-11-08 16:16:17 +00:00
4the4ryushin
65b2cb357a Added test for verbosity option on rebuild_references_index 2022-11-08 16:04:37 +00:00
Omer Ali
2de166c7e0 Added option for verbosity to rebuild_references_index (#9602) 2022-11-08 16:04:07 +00:00
Matt Westcott
4d18e669ff Defer snippet registration until models are loaded (#9605)
Fixes #9586. All calls to `register_snippet` that happen before `WagtailSnippetsAppConfig.ready` are now queued up and processed once we are sure models are fully loaded. This avoids any issues with unloaded models during viewset construction, as seen when subclassing django-filters's FilterSet.
2022-11-08 10:22:25 +00:00
LB Johnston
55f5cad7f2 Ensure the ngettext (JS) util emulates the Django global if not present
Follow up from #9617
2022-11-08 09:09:45 +10:00
Lovelyfin00
0000ed88f7 removed unused styles from utility.legacy.scss file and clean up
- `divider-before` not used
- add w-list-none to Tailwind utility classes
- remove now unused unlist class
- relates to #8947
2022-11-08 08:45:23 +10:00
LB Johnston
da36c3994b Rename test file - #9593 2022-11-08 08:38:56 +10:00
Lovelyfin00
b1c1618c9b Migrated initButtonSelects from core.js to own includes file
- removed initButtonSelects from core.js , migrate to Typescript & and wrote test for it
- Fixes #9494
2022-11-08 08:28:59 +10:00
Matt Westcott
f3b73137d9 Release note for #9566 in 4.1.1 2022-11-07 12:27:13 +00:00
Matt Westcott
5703bc1133 Fix disabled style on StreamField add button
Fixes #9512

An `opacity: 0.2` style is defined for the disabled button state, but the `opacity: 1` hover style takes precedence over it. As a result, the only time it kicks in - on media with hover support - is when the StreamField does NOT have hover / focus, which would ordinarily be the time when the button is hidden entirely.

Fix this by adding hover states to the `&[disabled]` case, to match the order of precedence for the normal button state.
2022-11-07 12:24:54 +00:00
Theresa-o
0ebdd51882 Fix help block <a> to meet colour contrast guidelines
- Fixes #9569
2022-11-07 19:56:36 +10:00
LB Johnston
9118de1850 Add changelog for #9617 2022-11-07 19:51:13 +10:00
LB Johnston
acd412e8f3 Update gettext unit tests to clearly test their functionality
- instead of mocking the Django global functions, test each function's export that it correctly uses the global if present or test the default behaviour
2022-11-07 19:51:13 +10:00
LB Johnston
e609f15a93 Ignore test files from extract-translatable-strings
Avoid unit test translation usage from being added to translation strings
2022-11-07 19:51:13 +10:00
LB Johnston
2b14d0407d Fix up changelog & release notes for #9567 2022-11-07 19:35:42 +10:00
LB Johnston
cad419ea9e Prettier linting - clean up ignored file (search promotions)
- remove specific file in .prettierignore and add inline comments to allow for linting / formatting for the searchpromotions_formset
- Split from #9522
2022-11-07 19:34:57 +10:00
LB Johnston
57e75df15d Add 4.1.1 changelog/release notes section
- Include bug fix reference for #9530
2022-11-07 08:38:06 +10:00
Matt Westcott
43d70b84fe
Make audit log tests ordering-agnostic (#9611)
While running tests for an unrelated fix I received a one-off random test failure, where the 'create' and 'publish' log entries were returned in the wrong order. Since these log entries are created at the same time, it's possible that the timestamps will be closer together than the database's resolution - this should not be considered a test failure. Avoid this by explicitly ordering by action codename instead.
2022-11-06 23:33:32 +01:00
LB (Ben Johnston)
f6a35268c7
cleanup - remove commented out scss in _listing.scss (#9619) 2022-11-06 23:27:05 +01:00
Stefan Hammer
5584b44ca7 Wrap JS in missing callbacks for DOMContentLoaded
Until now, those calls have been executed synchronously with the call of addEventListener.
Fixes #9528
Fixes issue where home page lock/unlock would not work at all (data-url should be used)
2022-11-07 08:10:37 +10:00
LB Johnston
1fe9581548 Add documentation for register_user_listing_buttons hook
- Has existed since Wagtail ~1.6 but never documented
2022-11-07 06:59:24 +10:00
Yekasumah
aeae816b27
Fix comments notice background overflow (#9567) 2022-11-04 18:24:13 -04:00
Matt Westcott
5a249d4e9c Add Stefan Hammer to core team 2022-11-02 11:59:09 +00:00
LB (Ben Johnston)
68f52c8154 Add contributor for #9338 2022-11-02 21:04:59 +10:00
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
Sage Abdullah
f1b30cc87c Run Python tests with coverage and upload coverage data to codecov 2022-11-02 06:33:38 +10:00
Matt Westcott
c1412685fd Update latest.txt to reference 4.1 2022-11-01 12:40:59 +00:00
Matt Westcott
9764d53624 Fill in release date for 4.1 2022-11-01 11:03:33 +00:00