0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 03:31:04 +01:00
Commit Graph

12914 Commits

Author SHA1 Message Date
LB Johnston
5df15bed24 fix minor linting issue page-editor.js 2022-04-14 19:44:29 +10:00
Rishank
7861014316 add Monospace system UI font stack
resolves #8043

ui-monospace, Menlo, Monaco, ... "Courier New", monospace

Operating Systems and their fonts:
ui-monospace -> MacOS (Menlo, Monaco fallback)
Cascadia  ->Windows (since Vista)
Roboto -> Android (since 4.0)
Fira -> Firefox OS
Droid -> Android (<4.0)
Oxygen -> KDE
Ubuntu -> Ubuntu
In addition, ui-monospace is supported for Safari/MacOS (only way to access SF Mono in Mac);

Cascadia is a new Microsoft font-face, and Segue is the fallback.
2022-04-14 19:44:29 +10:00
Matt Westcott
c43836ddf7 Avoid raising warning on missing use_json_field during migrations
Perform check in contribute_to_class so that we can skip it for fake models in migrations.

Also bump the deprecation up to RemovedInWagtail40Warning (since it's a multi-stage deprecation that will be strung out for too long otherwise)
2022-04-14 13:25:49 +10:00
Steve Stein
b3f95f82ff
Fix comment count styling (#8355)
* Return comment count to header toggle with placeholder styling

* Fix comment count styling, adjust sidebar sizing and comment toggle space

* Remove comment spacing fix for now
2022-04-14 00:09:24 +01:00
Tidiane Dia
f5f952973a Update duplicate upload tab to work with new tab module 2022-04-13 20:01:51 +01:00
Matt Westcott
05ac817bc8 Generate new translation files 2022-04-13 19:51:31 +01:00
Matt Westcott
ab825eeb56 Add wagtailadminjs resource to transifex config 2022-04-13 19:51:31 +01:00
Matt Westcott
8a9a00abdd Fetch new translations from Transifex 2022-04-13 19:51:31 +01:00
Matt Westcott
acb51e7dbf Fix path to wagtailcore locales 2022-04-13 19:51:31 +01:00
jacobtoppm
66c2f3d328 Return comment count to header toggle with placeholder styling 2022-04-13 18:19:05 +01:00
jacobtoppm
d9aaf8e581 Changelog and release notes for image deduplication 2022-04-13 17:59:51 +01:00
Tidiane Dia
503298556e Add logic to detect duplicates when uploading an image via a modal
Add client-side logic to confirm a duplicate upload

Add template shown when a duplicate image is found via modal upload

Style duplicate upload template shown in modal

Add test for duplicate image upload in modal chooser

Avoid loading all duplicates in memory and use f-string

Make template fragments translatable and use image templatetag to render images

Use class selector instead of direct element one

Set primary button to 'Use existing and delete new' on duplicate upload
2022-04-13 17:59:51 +01:00
Tidiane Dia
c136f461bc Add duplicate detection to multiple image upload view
Add utility function to find an image's potential duplicates

Add logic to detect duplicates on multiple images upload view

Add template shown when a user is prompted to confirm a duplicate upload

Add client-side logic to confirm a duplicate upload

Add/update styles

Add tests for duplicate image uploads

Index Image file_hash field

Ensure that a user can choose an image from duplicates returned by find_image_duplicates

Use CSS classes instead of HTML elements to hide edit form on duplicate upload

Add ImagesPermissionPolicy helper to retrieve the permission policy dynamically

This allows test cases that override the base image model to pick up the corresponding permission policy, should they need it.

Remove usage of sibling selector

Use wagtail image templatetag to generate image

Renamed ImagesPermissionPolicy to ImagesPermissionPolicyGetter

Fail loudly when setting permission policy and a wromg image model is provided

Add decorator to disconnect a signal's receiver during a test execution and use it in get_image_model tests

Improve warning message on duplicate upload in multiple upload view

Show matching form when confirming a duplicate upload
2022-04-13 17:59:51 +01:00
Jake Howard
b0874941fe Remove stale reference to bootstrap-tab
This prevents the admin from loading.

Fixes a regression from #8266
2022-04-13 17:55:18 +01:00
Matt Westcott
90307f9deb Add upgrade note for removal of panel types 2022-04-13 15:44:26 +01:00
Matt Westcott
7223fd2b4e Release note for #8317 2022-04-13 15:40:07 +01:00
jacobtoppm
cbbdc3a665 Remove remaining uses of blocks receiving parent references 2022-04-13 15:27:30 +01:00
jacobtoppm
3ae0ba51a2 Switch to cut icon, and grey out rather than remove when disabled 2022-04-13 15:27:30 +01:00
jacobtoppm
85457cdad4 Fix js linting issues 2022-04-13 15:27:30 +01:00
jacobtoppm
646203a516 Allow users to modify contentpath of other user's comments when moving between blocks 2022-04-13 15:27:30 +01:00
jacobtoppm
7787abad2f Tests for splitting 2022-04-13 15:27:30 +01:00
jacobtoppm
c94b09d14b Switch to placeholder icon and translated text for split control 2022-04-13 15:27:30 +01:00
jacobtoppm
e938a9c3aa Move comments appropriately when splitting block 2022-04-13 15:27:30 +01:00
jacobtoppm
4123e2d386 Remove split control when at max block count 2022-04-13 15:27:30 +01:00
jacobtoppm
f0c42c8f4d Draftail widget splitting, permanently on 2022-04-13 15:27:30 +01:00
jacobtoppm
e2c1587f15 Make parentCapability updates use functions rather than events, to make setting other options simpler 2022-04-13 15:27:30 +01:00
jacobtoppm
08fe817375 Add setState to Draftail widget 2022-04-13 15:27:30 +01:00
jacobtoppm
8be861bc0d Start adding split block tests 2022-04-13 15:27:30 +01:00
jacobtoppm
a51a8483b0 Add StreamField parentCapabilities object, using 'duplicate' as an example function. 2022-04-13 15:27:30 +01:00
Matt Westcott
d63801b533 Update release note for page editor redesign 2022-04-13 14:46:05 +01:00
LB Johnston
edf881e4ea 3.0 release notes - move 'fix' to fix section 2022-04-13 23:41:54 +10:00
Jake Howard
59f901fb82 Use JSONField to store form submissions 2022-04-13 23:40:56 +10:00
Abdul
1822d7eee2 display help text message for tag field
- resolves #1874
- ensure message is dynamic based on the setting TAG_SPACES_ALLOWED
- Update wagtail/admin/templates/wagtailadmin/widgets/tag_widget.html
2022-04-13 13:37:30 +10:00
Steve Stein
f323d88765
Move page meta information from the header to a new status side panel component inside of the page editing UI (#8285)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-13 03:21:51 +01:00
Matt Westcott
bd3efa40cb Reorganise 3.0 upgrade consideration notes 2022-04-13 08:36:08 +10:00
Karl Hobley
a8967b5894
Page editor side panels (#8281)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-12 23:10:48 +01:00
Steve Stein
629ced01ca
Page editor underline tabs (#8266)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-12 16:11:08 +01:00
sag᠎e
ec70921e52
Refactor create snippets view into class-based view (#8332) 2022-04-12 13:59:14 +01:00
Matt Westcott
be6526e95d Release note for #8271 2022-04-12 13:09:59 +01:00
Andy Babic
b46403969e
Add chunking/iterator() support to PageQuerySet.specific() (#8271)
* Add chunking support to SpecificIterable

* Add tests

* Remove the redundant specific_iterator() function
2022-04-12 13:08:00 +01:00
Matt Westcott
1d73aa2cec update latest.txt for 2.16.2 and 2.15.5 2022-04-11 16:44:25 +01:00
Matt Westcott
8f3fdc5365 Fill in release date for 2.16.2 2022-04-11 15:59:07 +01:00
Matt Westcott
31fc598b2f Release note for #8298 in 2.16.2 2022-04-11 15:58:40 +01:00
Matt Westcott
47bf2910f3 Further locale picker fixes:
* Remove dropdown behaviour when switcher legitimately only contains a single locale
* Don't omit listing when there are no child pages, because it's possible to land on a page with no children when switching locales
2022-04-11 15:58:34 +01:00
Matt Westcott
eadcb7d7fc Prevent locale switcher in page chooser from breaking at the root level
Fixes #8079
2022-04-11 15:58:28 +01:00
Matt Westcott
999e745de5 Fill in release date for 2.15.5 2022-04-11 14:39:59 +01:00
Matt Westcott
93e92c1528 Release note for #8328 in 2.16.2 2022-04-11 13:12:16 +01:00
Matt Westcott
78bd8e4394 Check get_url_parts return value in automatic redirect creation
Addresses #7999. get_url_parts _should_ always return a valid result since we only run it on sites that the page belongs to, but if it doesn't, we don't want it to error out (since this is only a background task).
2022-04-11 13:12:12 +01:00
Matt Westcott
d42eb4ed01 Release note for #8302 in 2.16.2 2022-04-11 10:28:49 +01:00
Matt Westcott
7ad87c7d93 Ensure 'next' param on image / doc listings always links back to index page, not results view
Fixes #8291. When results listings are generated as partial AJAX responses through the listing_results review, the 'next' parameter on those results should point back to the main 'index' view so that on return from the edit view, the user gets back a full page rather than a partial response.
2022-04-11 10:14:37 +01:00