0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-22 11:07:57 +01:00
Commit Graph

12934 Commits

Author SHA1 Message Date
Steve Stein
7756453849
Breadcrumbs & Slim header design review styling (#8434)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-28 13:25:59 +01:00
Steve Stein
db5f4106db
Sidebar animation fixes (#8423). Fix #8311
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>

- Animations – The close animation for sub-menus doesn't seem to play when the menu is expanded - Made it so sub menu's stay open when the menu is expanded and collapsed
- Animations – The account menu seems to have a different tween animation to the rest of the menu. Causing it to do a weird thing when you collapse the menu while the account menu is open
- Animations – The avatar suddenly jumps to the right when you collapse the menu
- Animations – The Bird seems to have two hover states (try slowly moving your mouse cursor from top to bottom and you'll see it's wing appears before the hover animation is triggered). Not sure if this is intended behaviour.
- Accessibility – Focus order is incorrect on the mobile version (it should be possible to move to the sidebar after having toggled it)
- Try and fit more letters in to the sidebar menu items by reduce the padding / margin on the right side of the arrow, and reduce the gap between the icon and the text a tiny bit
- Make it so when you have a menu open (e.g. Bakery misc) and you click the slim sidebar icon, the menu stays open as the menu gets slim.
- Add a label to the sidebar’s `<aside>`
2022-04-28 02:14:18 +01:00
sag᠎e
1cd471f1d1
Remove is_searchable check from shared header template (#8427)
Not all views that use this template extend from generic IndexView.
They might only define search_url without is_searchable in the context.
2022-04-26 16:10:34 +01:00
sag᠎e
9d1110d349
Wrap snippet views in SnippetViewSet (#8422) 2022-04-26 16:08:26 +01:00
Kalob Taulien
df8349a81b
Documentation updates & emojis
* Extra documentation support & added emojis

* Removed link to Google Group
2022-04-26 07:21:11 -06:00
Matt Westcott
5ff20cda8c Fix deep_update for Python 3.10 (#8394)
This is only used by the Elasticsearch backend, so we were missing test runs for it over all Python versions.

Thanks to @przemub for reporting and the initial fix.
2022-04-26 14:14:49 +01:00
LB (Ben Johnston)
54daa01116
3.0 - add JSON1 SQLite compatibility requirements (#8433) 2022-04-26 13:22:03 +01:00
Matt Westcott
f7c80e669e
Reinstate use_json_field=None fallback as a Wagtail 5.0 deprecation (#8436) 2022-04-26 12:34:34 +01:00
Kalob Taulien
6f74668dac
Added installation animation; changed link to getting started docs. 2022-04-25 08:35:38 -06:00
Tidiane Dia
94b20b418a
More actions dropdown button toggling on bulk actions (#8057)
* Hide more actions dropdown button on listing pages when performing actions in bulk

* Add toggleMoreActionsDropdownBtn function

* Fix lint issues

* Use if/else statement instead of ternary operator to avoid lint warning
2022-04-25 14:53:13 +01:00
sag᠎e
ecfca0169e
Use class-based view for snippet chosen view (#8417) 2022-04-25 13:51:03 +01:00
Thibaud Colas
1cd784adb7 Add basic "multilingual support" section 2022-04-23 01:05:27 +01:00
Thibaud Colas
eedc7fb11c Convert Developing page to Markdown 2022-04-23 01:05:27 +01:00
Thibaud Colas
48e080965b Move JavaScript guidelines to the same page 2022-04-23 01:05:27 +01:00
Thibaud Colas
949362e802 Move HTML and CSS guidelines to a single "UI guidelines" page 2022-04-23 01:05:27 +01:00
Thibaud Colas
a395d9c565 Auto-generate docs for most important design tokens 2022-04-23 01:05:27 +01:00
Thibaud Colas
bd874c63c9 Implement colors palette visualisation with contrast grid link 2022-04-23 01:05:27 +01:00
Thibaud Colas
5fd3962d7f Update existing stories with latest storybook-django version 2022-04-23 01:05:27 +01:00
Steve Stein
64dd361cf7
Slim sidebar visual design issues (#8404)
- Visual design – Collapsed sidebar is wider than intended
- Visual design – Change “Edit your account” to “Account” tooltip
- Visual design – Slim side bar on bird hover, make the bird a little big bigger (don’t make it shrink as much)
- Visual design – Change the tooltip to the darker indigo (discussed with ben and this is no longer necessary)
- Visual design – Expand the space between the menu items (add 3px padding) - then adjust the flyout menu items spacing too
- Visual design – Get the labels and icons to align vertically (space between icon and label)
- Visual design – Make the width 60px
- Visual design – Make the arrows slightly smaller and closer to the icons on slim view
- Visual design – Move the bird higher up and slightly smaller, as per the designs
- Animations – I wonder if the new |-> icon should flip horizontally rather than roll? (or maybe not animate at all?) The rolling animation feels a little strange as I think the pipe is meant to represent the always vertical menu
- Animations – The Bird seems to have two hover states (try slowly moving your mouse cursor from top to bottom and you'll see it's wing appears before the hover animation is triggered). Not sure if this is intended behaviour.
- UX – Unexpected behavior with the search – clicking the "Search" icon submits a search, while all other icons in the sidebar are safe to click (This will expand the menu in slim mode and only have pointer events to submit in expanded mode which should be acceptable as its the submit button for the field?)

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-23 00:10:32 +01:00
Steve Stein
92705d8f06
Design review changes - Info panel, Page title field (#8411)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>

-Add a down arrow to right of Switch Locales
- Change the wording “Set Privacy” to “Change Privacy”
- Make the close icon on the info panel the same size as the close icon on the slim sidebar
- Make title field text font weight 800
2022-04-22 22:08:04 +01:00
Matt Westcott
37784643e9 API docs for Panel 2022-04-22 17:25:30 +01:00
Matt Westcott
06abc49712 Add documentation for the panel rendering mechanism 2022-04-22 17:25:30 +01:00
Matt Westcott
f190b2dcac Fetch new translations from Transifex 2022-04-22 15:14:23 +01:00
Matt Westcott
262e94401a
Housekeeping to start work on 4.0 (#8420)
* Add release notes page for 4.0

* Version bump to 4.0

* Rotate deprecation warnings
2022-04-22 14:25:16 +01:00
Steve Stein
90ccbff15b
Add comment notifications switch back into tabs (#8392) 2022-04-22 13:05:13 +01:00
Sage Abdullah
e02c3ebc61 Add tests for calling delete and history views with i18n enabled 2022-04-22 13:04:49 +01:00
Sage Abdullah
98fa66d35e Call super().setup() after the model has been set 2022-04-22 13:04:49 +01:00
Sage Abdullah
dbccec63ab Use setup() method to set instance attributes in HistoryView 2022-04-22 13:04:49 +01:00
Sage Abdullah
c5c8b74ceb Check whether self.model is not None before calling issubclass in LocaleMixin 2022-04-22 13:04:49 +01:00
Sage Abdullah
57c5c4c9ea Use ModelPermissionPolicy in snippet views 2022-04-22 12:11:46 +01:00
Kalob Taulien
19c259d107
Slack button and link + license clarification
* Slack button; license clarification

* Updated link to wiki; better license wording
2022-04-21 09:43:31 -06:00
Karl Hobley
0d489543b8
Reinstate get_snippet_edit_handler with a deprecation warning (#8407) 2022-04-21 11:50:44 +01:00
Matt Westcott
86aa38329d
Fix release notes and updatemodulepaths to cover coreutils module rename (#8396)
Fixes #8376
2022-04-20 17:42:34 +01:00
Matt Westcott
a55136f55b linting fixes 2022-04-20 14:18:54 +01:00
sag᠎e
bc1a2ab114
Extract mixins from Snippet views and use it in generic create/edit/delete views (#8361) 2022-04-20 11:55:32 +01:00
Paarth Agarwal
da78e0f449 added full_url field for image rendition field api
- resolves #7558
2022-04-20 07:08:24 +10:00
Matt Westcott
fec647d8aa Fix constructor args on HelpPanel
Fixes #8373
2022-04-20 06:35:48 +10:00
Dan Swain
484ca159d2
Change 2.17 reference to 3.0 (#8389)
There will not be a 2.17 release
2022-04-19 16:56:51 +01:00
Vu Pham
68287e97e1 Add base_url_path functionality to ModelAdmin
- Co-Authored-By: Khanh Hoang <39248704+thoang43@users.noreply.github.com>
- adds ability to set `base_url_path` on ModelAdmin to override the `app_name`/`model` URL building behaviour
- fixes #8038
2022-04-18 14:32:18 +10:00
Simon Krull
4f3ec696ff Fix minor typo in the documentation - third party tutorial 2022-04-18 08:26:22 +10:00
luz paz
5c894345b9 Fix various user-facing and non-user-facing typos
- Found via `codespell -q 3 -S *.po,*.js`
2022-04-18 08:18:03 +10:00
Daniel Kirkham
c877bf9886 convert various documentation pages to Markdown
- Removes use of topic:: in docs as this directive is not needed
- resolves #8323
2022-04-18 08:16:27 +10:00
Thijs Kramer
667774f2fe clarify what happens when converting an external link to an internal link 2022-04-18 08:05:55 +10:00
Karl Hobley
b48e1c083c
Update myst_parser to v0.17.2 (#8380)
To resolve issue with the removed `attrs` module.

See: https://github.com/executablebooks/MyST-Parser/pull/557
2022-04-17 17:57:30 +01:00
Dan Braghis
4cc10322a1
Sync tree: cascade unpublish, move and delete (#7984)
* Add construct_synced_page_tree_list hook and use in page unpublish view

* Implement construct_synced_page_tree_list in simple_translation

but only when sync page tree is enabled

* Add hook documentation

* Add construct_synced_page_tree_list hook tests (#8058)

* Move translated and alias pages when WAGTAIL_I18N_ENABLED and WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE are enabled

Co-Authored-By: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>

* Delete corresponding translations when WAGTAIL_I18N_ENABLED and WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE are true

Co-Authored-By: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>

* Rename the hook to be more specific

* Update singular string version in confirm_move.html

* Update test test_translation_count_in_context

Co-authored-by: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>
Co-authored-by: Karl Hobley <karl@kaed.uk>
2022-04-17 17:34:38 +01:00
sag᠎e
84c414e758
Refactor Snippets list view to extend from generic IndexView (#8335) 2022-04-16 11:47:06 +01:00
Andy Babic
0c1ecc35f1
Add guidance on rendition prefetching to docs (#8363) 2022-04-16 11:18:23 +01:00
Karl Hobley
72e0be7a45
Remove an unused import
Usages of this import were removed across multiple PRs so this wasn't picked up before merge
2022-04-16 11:00:35 +01:00
sag᠎e
44b1ee6af7
Refactor Snippets index view to extend from TemplateView (#8352) 2022-04-16 10:27:18 +01:00
sag᠎e
809b840e17
Refactor Snippets delete view to extend from generic DeleteView (#8346) 2022-04-14 21:31:53 +01:00