Wykres commitów

11568 Commity (192a74835a716ba3967f0fd2768535bf78f99766)

Autor SHA1 Wiadomość Data
Matt Westcott 192a74835a Generate new strings for translation 2021-07-13 13:37:31 +01:00
Matt Westcott 6e27cc762e Fetch new translations from Transifex 2021-07-13 13:31:22 +01:00
Matt Westcott 2bec229e12 Correctly handle embeds inside inline styles/entities in richtext contentstate conversion (#7338)
Fixes #4602 as per https://github.com/wagtail/wagtail/issues/4602#issuecomment-479539444 (option 2).

Previously, given HTML input such as:

    <p>
        <i>a bunch of text before <embed alt="somepic" embedtype="image" format="fullwidth" id="1"/> after</i>
    </p>

the `<embed>` would start a new block, but the converter would keep hold of references to currently-open tags such as the `<i>`, so that when the corresponding `</i>` tag was encountered, it could match it up to the opening tag and fill in the 'length' field on the resulting InlineStyleRange object. However, since the span length is calculated based on the text content of the _current_ block (which is now "after"), it would obtain the wrong result - or, when there is no content between the embed and the closing tag (and thus no current block), would throw the exception `'NoneType' object has no attribute 'text'`.

In this new approach, when the embed is encountered, the current block is closed _along with all of its styles and entities_, causing the lengths of those spans to be filled in correctly. After inserting the embed, the current block is then set to a replica of the previous block with all those styles and entities reopened, so that when the closing tag is finally encountered, the span length is correctly set based on the new 'after' block.
2021-07-13 11:20:10 +01:00
Matt Westcott c44c0a9800 Release note for #7324 in 2.13.4 2021-07-13 11:04:34 +01:00
Matt Westcott afe7813d92 Release note for #7324 in 2.12.6 2021-07-13 11:03:57 +01:00
Matt Westcott 760bafe686 Add missing max_length on temporary thumbnail_url migration
Fixes #7323
2021-07-13 10:52:25 +01:00
Nick Smith 15de4b69a4 Change some words in the style guide
This removes a few US English dialectical uses of _regular_, preferring
_basic_ or _standard_ in British English.
2021-07-13 10:51:46 +01:00
Nick Smith 1d03c36421 Change some word choices in the docs
This replaces several US English dialectical uses of _regular_ with
British English equivalents _normal_ or _standard_. This is the result
of a search of the docs for the string 'regular', rather than due to any
US English seen in the user interface.

This search also found one use of _regularly_ where _often_ was closer
to the intended meaning, a change which is less about dialect than about
word choice.
2021-07-13 10:51:46 +01:00
Nick Smith ab7b0d81d6 Change wording of docs and UI for page aliases
This replaces several US English dialectical uses of _regular_ with
British English equivalents, chiefly _ordinary_.
2021-07-13 10:51:46 +01:00
Thibaud Colas d6cd16f001 Add separate mention about known issues to editor guide 2021-07-12 18:20:54 +01:00
Thibaud Colas d2c27844a6 Update accessibility targets with links to known issues 2021-07-12 18:20:54 +01:00
Tom Usher c6017abca0
Improve admin listing performance (#7318) 2021-07-12 16:58:49 +01:00
Matt Westcott be857cc5e9 Release note / Upgrade consideration note for #7292 2021-07-12 16:55:21 +01:00
Thomas Kremmel 9b387625ca docs: add facebook and instagram oembed change docs 2021-07-12 15:31:31 +01:00
Thomas Kremmel aead2125eb feat: update facebook & instagram oembed test cases 2021-07-12 15:30:12 +01:00
Thomas Kremmel 4d1d8260f9 feat: add facebook & instagram oembed v11 support 2021-07-12 15:30:12 +01:00
Matt Westcott 439edf381b Update test snapshot from #7322 to reflect action button changes from #7307 2021-07-12 12:59:46 +01:00
Matt Westcott 3306a98257 set icon / label identifier at the class level 2021-07-12 12:16:26 +01:00
Matt Westcott ca2263a12f DRY ActionButton definitions 2021-07-12 12:16:26 +01:00
Matt Westcott e1cb2a07d1 Refactor action buttons into subclasses of ActionButton 2021-07-12 12:16:26 +01:00
Matt Westcott 528e4810af Add event listeners for enable/disable logic
This decouples the action button handling from the rest of BaseSequenceChild; nothing after the initial render needs to deal with button states.
2021-07-12 12:16:26 +01:00
Matt Westcott f584dd57bb Remove onRequestFoo callbacks from BaseSequenceChild in favour of just giving it a handle to the sequence object.
The rationale for these was to keep the control flow in one direction, so that the child blocks don't know about the wider sequence they belong to. But that's already undermined by the fact that they have to keep track of their own index number, and it just makes things needlessly unwieldy, particularly when we go on to make action buttons pluggable (and emphatically want to avoid having a mass of abstraction between the button and the action it performs).
2021-07-12 12:16:26 +01:00
Matt Westcott be0996486d Give action buttons their own ActionButton class 2021-07-12 12:16:26 +01:00
Coen van der Kamp 3f24beaae6 Add background information on multi site, multi instance and multi tenancy (#7228) 2021-07-09 17:05:28 +01:00
Karl Hobley 7d237092d1 Fix crash when user copies a page from a section they can't publish (#7313) 2021-07-09 17:01:58 +01:00
Andrew Stone ded8bacc5d Use DATETIME_FORMAT for localization in templates (#7321) 2021-07-09 16:33:02 +01:00
Matt Westcott e0ac8ae73d Support non-block validation errors on ListBlock (#7322) 2021-07-09 16:24:11 +01:00
Kevin Gutiérrez 4eb7c2c019 Change spin animation name (#7299)
The animation name `spin` is too generic, and it can be easily override by other libraries (eg. the code used in (django-json-widget)[https://github.com/jmrivas86/django-json-widget/blob/master/django_json_widget/static/dist/jsoneditor.min.css]) or by custom code, affecting the saving animation.
2021-07-08 16:29:54 +01:00
Matt Westcott 60a3365ce2 Add Daniel Fairhead to contributors 2021-07-07 16:30:36 +01:00
Petr Dlouhý 3f260f4598 add google data studo to oEmbed providers 2021-07-06 21:17:46 +01:00
Dan Braghis f1ddaa9a46 Optimize images used in documentation
Ran through ImageOptim (with 100% quality)
Saved 3.6 MB out of 10.7 MB. 38.4% per file on average (up to 94.7%)
2021-07-06 21:14:33 +01:00
Vlad Podgurschi f54e7e1e41 Add instructions on copying and aliasing pages to the editor's guide #7010 2021-07-06 20:44:10 +01:00
Daniel fee65a9345 Preserve `features` & `editor` kwargs on RichTextField.clone() (#7272) 2021-07-06 17:20:12 +01:00
Dan Braghis a1cd95646b Prefetch pages in site history 2021-07-06 15:12:43 +01:00
Dan Braghis ea26f22a25 Use `select_related` when viewing the Site History report 2021-07-06 15:12:43 +01:00
Matt Westcott b8680fbaf2 Give quoted and unquoted versions of pip install commands
Fixes #7312
2021-07-05 17:53:12 +01:00
Jake Howard b41eef4ebf `select_related` user profile when listing users
This is used for the user avatar
2021-07-05 17:35:19 +01:00
Jake Howard 02d8dac97e Just compare the live revision id, rather than the whole object
This avoid running a query, which in this case would be `n`
2021-07-05 17:34:55 +01:00
Jake Howard 07490bfb18 Pre-compute page's latest revision 2021-07-05 17:34:55 +01:00
Jake Howard 507c7f8a84 `select_related` fields when listing history
The user profile is used for the avatar URL
2021-07-05 17:34:55 +01:00
Andrew Stone d6c92f30af Add missing block.super in extra_css/extra_js blocks (#7310) 2021-07-05 17:28:13 +01:00
Matt Westcott 9850ca7acf Fill in release date for 2.13.3 2021-07-05 11:08:36 +01:00
Jake Howard 738a716586 `select_related` collection on image listing
`images/results.html` shows the collection if it's available, which
results in `O(n)` queries.
2021-07-02 12:45:23 +01:00
Matt Westcott d7bd351660 Release notes for #7306 and #7298 in 2.13.3 2021-07-02 12:10:59 +01:00
Matt Westcott aff898ad8d Prevent comments CSS from overriding custom colours
Fixes #7294. CommentApp/main.scss mistakenly redefined the SCSS colour variables to their Wagtail defaults, overriding the ability to customise them as pe https://docs.wagtail.io/en/stable/advanced_topics/customisation/admin_templates.html#custom-user-interface-colors
2021-07-02 12:06:07 +01:00
jacobtoppm 26b0ecf724 Allow users to edit the in-field positions of comments 2021-07-02 10:38:40 +01:00
Scott Cranfill 9f3e6585af
Docs: Update sphinx-wagtail-theme to 5.0.4 (#7296) 2021-06-30 11:18:07 +02:00
Matt Westcott 990e91a85a Release note for #7295 in 2.13.3 2021-06-29 13:36:15 +01:00
Matt Westcott fa648116b2 Correctly handle nulls in ListBlock validation errors
Fixes @cnk's test case from #7248. blockErrors within a ListBlockValidationError is an array (with nulls for the items with no errors), but setError was treating it as a dict keyed by block index, which meant it was erroneously passing nulls to the child setError method. FieldBlock handles this gracefully, but other blocks such as StructBlock don't.
2021-06-29 13:33:55 +01:00
Matt Westcott ac00945d3b Ensure comparison view picks up request/instance-specific EditHandler customisations (#7285)
Some edit handlers, such as the 'unofficial' PerUserContentPanels recipe from #4749, vary their field list according to the current request/instance by hooking into bind_to. This was not being called on the comparison view, meaning that when these edit handlers are in use, the field list was never getting populated and so the view was wrongly reporting no changes.

Note that the bind_to method also allows binding a form, which we do still skip (since the comparison view doesn't construct one).
2021-06-29 13:15:33 +01:00