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

12879 Commits

Author SHA1 Message Date
Andy Babic
2d5571f316 Include the new methods in the docs 2022-04-14 12:12:23 +01:00
Andy Babic
1580a29806 Add newly generated renditions to the prefetch cache 2022-04-14 12:12:23 +01:00
Andy Babic
0e188e5655 Add tests 2022-04-14 12:12:23 +01:00
Andy Babic
3592a28f0a Add docstrings 2022-04-14 12:12:23 +01:00
Andy Babic
2a09954bd8 - Rename 'lookup_rendition' to 'find_existing_rendition' for clarity
- Drop the 'all_renditions_prefetched' option in favour of doing the most optimal thing (90% of cases) by default
2022-04-14 12:12:23 +01:00
Andy Babic
7b6d4db4e5 Further improve readability by separating out file-generation code from Rendition object creation 2022-04-14 12:12:23 +01:00
Andy Babic
84189aab90 Restore ability to lookup from the cache after prefetched data has been checked 2022-04-14 12:12:23 +01:00
Andy Babic
9f8aad06b1 Update lookup_rendition to use prefetched data if available, and introduced the 'all_renditions_prefetched' flag for determining what should happen if the rendition isn't found in the prefetched data 2022-04-14 12:12:23 +01:00
Andy Babic
aa4cc9d51e Break rendition lookup logic out of AbstractRendition.get_rendition() into a new 'lookup_rendition' method 2022-04-14 12:12:23 +01:00
Andy Babic
e34ffa93f9 Move rendition generation logic out of AbstractImage.get_rendition() into a new method 2022-04-14 12:12:23 +01:00
Kalob Taulien
0f62b437d8
Updated screenshot for Wagtail 3 (#8331)
* Updated screnshot for Wagtail 3

* Updated screenshot for Wagtail 3.0
2022-04-14 12:09:17 +01:00
Steve Stein
6f10ae45c7
Fix issue with status sidebar history button & unlock button in message bar (#8356)
* Fix issue with lock unlock button in message bar, fix reversed logic on action_list_item

* Remove testin code from page-editor.js

* Remove comment count element fix, to address in another PR
2022-04-14 12:08:14 +01:00
Matt Westcott
6d2dcee4b9
Remove a stray reference to ChooserPanels (#8360)
These are no longer required in Wagtail 3
2022-04-14 11:09:31 +01:00
Matt Westcott
cdeb1cf479
Add use_json_field=True to all StreamField examples (#8359)
This argument should be used on all new StreamFields created under Wagtail 3. It does add some clutter to the examples, but only using it in select cases would create more confusion...
2022-04-14 11:09:19 +01:00
Karl Hobley
a78216320a
Close the side panel when comments are selected (#8357)
* Move page history button to after the side panel toggles

This was requested by Ben to make the "Info" button come first

* Close the side panel when comments are selected
2022-04-14 11:07:57 +01:00
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