Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/salty-ivy/wagtail into avif…
Browse files Browse the repository at this point in the history
…-support
  • Loading branch information
salty-ivy committed Jul 13, 2023
2 parents 88ad689 + 3a10f92 commit 5d4ab40
Show file tree
Hide file tree
Showing 138 changed files with 11,409 additions and 5,419 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog
~~~~~~~~~~~~~~~~

* Add support for read-only FieldPanels (Andy Babic)
* Add support for query-time boosting to Elasticsearch 6 and above (Shohan Dutta Roy)
* Mark calls to `md5` as not being used for secure purposes, to avoid flagging on FIPS-mode systems (Sean Kelly)
* Return filters from `parse_query_string` as a `QueryDict` to support multiple values (Aman Pandey)
* Explicitly specify `MenuItem.name` for all admin menu and submenu items (Justin Koestinger)
Expand All @@ -17,6 +18,11 @@ Changelog
* Phone numbers entered via a link chooser will now have any spaces stripped out, ensuring a valid href="tel:..." attribute (Sahil Jangra)
* Auto-select the `StreamField` block when only one block type is declared (Sébastien Corbin)
* Add support for more advanced Draftail customisation APIs (Thibaud Colas)
* Add the ability to export snippets listing via `SnippetViewSet.list_export` (Sage Abdullah)
* Add support for adding HTML `attrs` on `FieldPanel`, `FieldRowPanel`, `MultiFieldPanel`, and others (Aman Pandey, Antoni Martyniuk, LB (Ben) Johnston)
* Add support for `--template` option to `wagtail start` (Thibaud Colas)
* Change to always cache renditions (Jake Howard)
* Update link/document rich text tooltips for consistency with the inline toolbar (Albina Starykova)
* Fix: Prevent choosers from failing when initial value is an unrecognised ID, e.g. when moving a page from a location where `parent_page_types` would disallow it (Dan Braghis)
* Fix: Move comment notifications toggle to the comments side panel (Sage Abdullah)
* Fix: Remove comment button on InlinePanel fields (Sage Abdullah)
Expand All @@ -39,6 +45,9 @@ Changelog
* Fix: Avoid `ValueError` when extending `PagesAPIViewSet` and setting `meta_fields` to an empty list (Henry Harutyunyan, Alex Morega)
* Fix: Improve accessibility for header search, remove autofocus on page load, advise screen readers that content has changed when results update (LB (Ben) Johnston)
* Fix: Fix incorrect override of `PagePermissionHelper.user_can_unpublish_obj()` in ModelAdmin (Sébastien Corbin)
* Fix: Prevent memory exhaustion when updating a large number of image renditions (Jake Howard)
* Fix: Add missing Time Zone conversions and date formatting throughout the admin (Stefan Hammer)
* Fix: Ensure that audit logs and revisions are consistently use UTC and add migration for existing entries (Stefan Hammer)
* Docs: Document how to add non-ModelAdmin views to a `ModelAdminGroup` (Onno Timmerman)
* Docs: Document how to add StructBlock data to a StreamField (Ramon Wenger)
* Docs: Update ReadTheDocs settings to v2 to resolve urllib3 issue in linkcheck extension (Thibaud Colas)
Expand Down Expand Up @@ -73,6 +82,11 @@ Changelog
* Maintenance: Move `django-filter` version upper bound to v24 (Yuekui)
* Maintenance: Update Pillow dependency to allow 10.x, only include support for >= 9.1.0 (Yuekui)
* Maintenance: Migrate header search behaviour to `w-swap`, a Stimulus controller (LB (Ben) Johnston)
* Maintenance: Replace Bootstrap tooltips with a new `w-tooltip` Stimulus controller (LB (Ben) Johnston)
* Maintenance: Replace ModelAdmin history header human readable date template tag (LB (Ben) Johnston)
* Maintenance: Update uuid to v9 and Jest to v29, with `jest-environment-jsdom` and new snapshot format (LB (Ben) Johnston)
* Maintenance: Update test cases producing undesirable console output due to missing mocks, uncaught errors, warnings (LB (Ben) Johnston)
* Maintenance: Remove unused snippets _header_with_history.html template (Thibaud Colas)


5.0.2 (21.06.2023)
Expand Down
2 changes: 2 additions & 0 deletions client/scss/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
}

.right {
display: flex;
gap: theme('spacing[2.5]');
text-align: end;
float: right;
}
Expand Down
3 changes: 2 additions & 1 deletion client/scss/components/_listing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ table.listing {
.page-explorer .listing {
position: relative;

.table-headers {
.table-headers,
thead tr {
height: 35px;

.title {
Expand Down
108 changes: 0 additions & 108 deletions client/scss/components/_tooltips.scss

This file was deleted.

1 change: 0 additions & 1 deletion client/scss/core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ These are classes for components.
@import 'components/progressbar';
@import 'components/summary';
@import 'components/whats-new';
@import 'components/tooltips';
@import 'components/grid.legacy';
@import 'components/footer';
@import 'components/loading-mask';
Expand Down
8 changes: 4 additions & 4 deletions client/src/api/__snapshots__/client.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`client API should crash fetching 1`] = `
Object {
{
"status": 500,
"statusText": "Internal Error",
}
Expand All @@ -10,9 +10,9 @@ Object {
exports[`client API should fail fetching 1`] = `[Error: Internal Error]`;

exports[`client API should succeed fetching 1`] = `
Object {
"items": Array [],
"meta": Object {
{
"items": [],
"meta": {
"total_count": 1,
},
}
Expand Down
7 changes: 2 additions & 5 deletions client/src/components/Draftail/Tooltip/Tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ $tooltip-z-index: $draftail-tooltip-z-index;
$tooltip-color-no: theme('colors.critical.100');

@mixin arrow--top {
margin-top: $tooltip-arrow-spacing;
margin-top: $tooltip-spacing;
transform: translateX(calc(var(--w-direction-factor) * -50%));

&::before {
bottom: 100%;
inset-inline-start: 50%;
transform: translateX(calc(var(--w-direction-factor) * -50%));
border-bottom-color: $tooltip-chrome;
content: none;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`Tooltip #direction left 1`] = `
className="Tooltip Tooltip--left"
role="tooltip"
style={
Object {
{
"insetInlineStart": 13,
"top": 601,
}
Expand All @@ -20,7 +20,7 @@ exports[`Tooltip #direction top 1`] = `
className="Tooltip Tooltip--top"
role="tooltip"
style={
Object {
{
"insetInlineStart": 7,
"top": 1201,
}
Expand All @@ -35,7 +35,7 @@ exports[`Tooltip #direction top-left 1`] = `
className="Tooltip Tooltip--top-left"
role="tooltip"
style={
Object {
{
"insetInlineStart": 1,
"top": 1201,
}
Expand Down
26 changes: 13 additions & 13 deletions client/src/components/Draftail/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Draftail #initEditor options 1`] = `
Object {
{
"ariaDescribedBy": null,
"ariaExpanded": null,
"ariaLabel": null,
Expand All @@ -11,51 +11,51 @@ Object {
"autoCapitalize": null,
"autoComplete": null,
"autoCorrect": null,
"blockTypes": Array [],
"blockTypes": [],
"bottomToolbar": [Function],
"commandToolbar": [Function],
"commands": true,
"controls": Array [
Object {
"controls": [
{
"meta": [Function],
"type": "sentences",
},
],
"decorators": Array [
Object {
"decorators": [
{
"component": [Function],
"strategy": [Function],
"type": "punctuation",
},
],
"editorState": null,
"enableHorizontalRule": Object {
"enableHorizontalRule": {
"description": "Horizontal line",
"icon": <Icon
name="minus"
/>,
},
"enableLineBreak": Object {
"enableLineBreak": {
"description": "Line break",
"icon": "M.436 633.471l296.897-296.898v241.823h616.586V94.117h109.517v593.796H297.333v242.456z",
},
"entityTypes": Array [
Object {
"entityTypes": [
{
"block": [Function],
"source": [Function],
"type": "IMAGE",
},
],
"inlineStyles": Array [],
"inlineStyles": [],
"maxListNesting": 4,
"multiline": true,
"onBlur": null,
"onChange": null,
"onFocus": null,
"onSave": [Function],
"placeholder": "Write something or type ‘/’ to insert a block",
"plugins": Array [
Object {
"plugins": [
{
"handlePastedText": [Function],
"type": "anchorify",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
exports[`EmbedBlock no data 1`] = `
<MediaBlock
alt=""
block={Object {}}
block={{}}
blockProps={
Object {
"editorState": Object {},
"entity": Object {
{
"editorState": {},
"entity": {
"getData": [Function],
},
"entityType": Object {},
"entityType": {},
"onChange": [Function],
}
}
Expand All @@ -34,14 +34,14 @@ exports[`EmbedBlock no data 1`] = `
exports[`EmbedBlock renders 1`] = `
<MediaBlock
alt=""
block={Object {}}
block={{}}
blockProps={
Object {
"editorState": Object {},
"entity": Object {
{
"editorState": {},
"entity": {
"getData": [Function],
},
"entityType": Object {},
"entityType": {},
"onChange": [Function],
}
}
Expand Down
Loading

0 comments on commit 5d4ab40

Please sign in to comment.