Wykres commitów

17662 Commity (6c44d6113c6e4411c3d2cc0f6452f3e1e898bc0d)

Autor SHA1 Wiadomość Data
Sage Abdullah 6c44d6113c Use the proper content type for confirmation messages 2024-07-19 13:14:30 +01:00
Sage Abdullah 791defed46 Use more personalised messages for the current user in the sessions list 2024-07-19 13:14:30 +01:00
Sage Abdullah 5de63bd1b3 Use list elements for the editing sessions list 2024-07-19 13:14:30 +01:00
Sage Abdullah f53895ce24 Add toggle aria label for +x users in the sessions list 2024-07-19 13:14:30 +01:00
Sage Abdullah 57f34ac6ed Extract editing sessions styles into its own component 2024-07-19 13:14:30 +01:00
Sage Abdullah e2490ac72f Improve screen reader text for session avatars
Add aria label to the popups so it doesn't rely entirely on the content inside the popup, which may include things like the 'Refresh' button.

Also add a dash in between the user's name and 'Currently viewing' so that there's a pause in between.
2024-07-19 13:14:30 +01:00
Sage Abdullah c46dd53254 Do not swap sessions list HTML until focus has left the container
Prevent disrupting the flow of keyboard users when they are focusing on
the sessions list.
2024-07-19 13:14:30 +01:00
Sage Abdullah fba4389f08 Only show the overwrite confirmation dialog if there's a newer revision 2024-07-19 13:14:30 +01:00
Sage Abdullah edb3a1ab80 Update ping and release URLs on every editing session ping
In case the original session has been cleaned up
2024-07-19 13:14:30 +01:00
Sage Abdullah 1139f2a36e Include revision_id in active sessions ping request 2024-07-19 13:14:30 +01:00
Sage Abdullah 5750502772 Include unsaved changes flag as is_editing in session ping request 2024-07-19 13:14:30 +01:00
Sage Abdullah d20658454a Use the submit button's label for overwrite confirmation dialog 2024-07-19 13:14:30 +01:00
Sage Abdullah d2cbe02658 Prevent browser unload confirmation dialog when reloading via custom unsaved changes dialog 2024-07-19 13:14:30 +01:00
Sage Abdullah 298f4fea8f Use w-swap to update the sessions list on every ping
- Extract separate EditingSessionsList component for the sessions list
  only (so we can reload it separately without the full module which
  includes the dialogs and controller configurations).
- Update the ping endpoint to render the list HTML and include it in the
  JSON response at the key 'html'.
- Apply w-swap#submit on every w-session:ping, and use SwapController's
  jsonPath value for pointing to the 'html' key.
- Defer the load of EditingSession objects until the first ping from the
  client. This avoids a race condition with the release mechanism, i.e.
  if you reload the page, the 'release' endpoint and the page request
  are fired at around the same time, so the initial page response may
  still include the previous session (not yet cleaned). This also allows
  us to delegate all logic for displaying the sessions list to the ping
  endpoint instead of having to do the same logic in the edit views. To
  ensure the sessions are shown immediately, also fire the ping event
  immediately when the SessionController is connected.
2024-07-19 13:14:30 +01:00
Sage Abdullah 886af6de98 Initialize EditingSessionsModule component and SessionController
Use a separate component instead of including the markup directly in
slim_header.html, so that we can pass any necessary variables via Python
when instantiating the component, instead of polluting the
slim_header.html with a bunch of variables.
2024-07-19 13:14:30 +01:00
Sage Abdullah 80480d8499 Add popup theme for tippy and DropdownController 2024-07-19 13:14:30 +01:00
Sage Abdullah 3865be0cff Add element IDs to dialog title and subtitle texts
This allows us to easily replace just the text based on a server response using TeleportController

Ideally, the {{ id }} should be a prefix instead of a postfix, but there's an existing title-{{ id }} for the h2 element so we follow it for now
2024-07-19 13:14:30 +01:00
Sage Abdullah 43b9d18aa3 Make dialog component accept an icon_classname variable for the header icon's classname
So we can change the color for the overwrite changes dialog
2024-07-19 13:14:30 +01:00
Sage Abdullah e7dac3e18d Allow SwapController to use the form element's method 2024-07-19 13:14:30 +01:00
Sage Abdullah 3c1ba47566 Dispatch w-swap:json event for emitting JSON data from the response 2024-07-19 13:14:30 +01:00
Sage Abdullah 682bef0db2 Allow SwapController to get the HTML from a JSON response 2024-07-19 13:14:30 +01:00
Sage Abdullah c95b6e3dff Fix flaky SwapController tests
And change the description for one of the describe blocks, which may
have been a copy-paste leftover as there's an existing describe block
with the exact same sentence. Change this to accurately describe that
we are testing without the form's input values (as we're using
replace() directly instead of submit()).
2024-07-19 13:14:30 +01:00
Sage Abdullah 3e6e4f2ee3 Add confirm() method to DialogController
Like hide(), but dispatches an event to indicate that the dialog was 'confirmed'
2024-07-19 13:14:30 +01:00
Sage Abdullah 1c2616623d Add reload() method to ActionController 2024-07-19 13:14:30 +01:00
Sage Abdullah 0cf68697c0 Allow avatar template tag to use HTML content for the tooltip 2024-07-19 13:14:30 +01:00
Sage Abdullah 0277467dac Allow TooltipController to use HTML content target
This follows the same approach we already have in DropdownController
2024-07-19 13:14:30 +01:00
Sage Abdullah 54f12e6354 Add sendBeacon support to ActionController 2024-07-19 13:14:30 +01:00
Sage Abdullah 5168ee0c7c Only apply hover-opacity effect to button icons inside the default 'dropdown' theme 2024-07-19 13:14:30 +01:00
Sage Abdullah f0569661a3 Add ping-critical animation and w-ping--critical class to use it 2024-07-19 13:14:30 +01:00
Sage Abdullah c3cbe81a95 Rename pulse-warning animation to ping-warning and extract to its own file
Tailwind has a similarly-named 'pulse' animation that behaves differently:
it makes the element fade in and out.

Meanwhile, it has a 'ping' animation that behaves similarly to our 'pulse'
animation: https://tailwindcss.com/docs/animation

Follow the Tailwind names to avoid confusion. In the future, we might
want to implement a similar 'pulse' animation. Or, perhaps we can reuse
Tailwind's animations as-is.
2024-07-19 13:14:30 +01:00
Albina 2508b712a9
Language label fine-tunes (#12136)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-07-19 12:48:55 +01:00
SebCorbin 966f2df4ce
Fix focal point data being localized 2024-07-19 12:19:16 +01:00
Th0masCat 5cc28acc56
Fix not allowed extension not showing in the error message 2024-07-19 12:07:36 +01:00
Matt Westcott f82f6fd2b7 Downgrade minimum version of Sphinx for Python 3.8 compatibility
In 5a8c33f34a the minimum version was set to 7.3 to allow use of the long-form `--fail-on-warning` option, but this is not compatible with Python 3.8. Revert this to the original `-W` option and set 7.0 as the minimum version.
2024-07-19 12:01:18 +01:00
Nathanaël Jourdane 5a8c33f34a doc: fix pdf export (#12076) 2024-07-19 01:27:07 +01:00
Matt Westcott e066424163 Release note for #12044 2024-07-19 00:23:55 +01:00
Matt Westcott a7d72f9fbf Fix formatting errors 2024-07-19 00:21:39 +01:00
Chris Shenton d1c020cd5f Fix Page.copy ref; silence warnings due to Sphinx missing support for type hints
Builds upon HimanshuGarg47:fix/11972-documentation-build-with-errors
2024-07-18 23:15:58 +01:00
Himanshu Garg de4eee4849 update 1.1.rst 2024-07-18 23:15:51 +01:00
Himanshu Garg 9adf742580 fixes errors by adding aliases, double backtick, changing indexentry 2024-07-18 23:15:40 +01:00
Himanshu Garg e02ca6ce62 fixes some of errors by removing directives 2024-07-18 23:13:26 +01:00
Sage Abdullah 6b5662cbdc
Release note for #12023 2024-07-18 18:26:38 +01:00
Sage Abdullah 9ac9a93e54
Reinstate canAddBlock assertions for StreamBlock and ListBlock's max_num 2024-07-18 18:26:14 +01:00
Matt Westcott 6eacfec4ec
Add tests for showing / hiding errors on per-block-type min_num 2024-07-18 18:26:14 +01:00
Matt Westcott b2f49f64a1
Add tests for showing / hiding errors on per-block-type max_num 2024-07-18 18:26:13 +01:00
Matt Westcott c510d7f720
Show error when ListBlock falls below min_num 2024-07-18 18:26:13 +01:00
Matt Westcott 14325d4615
Show error when StreamBlock falls below min_num 2024-07-18 18:26:13 +01:00
Matt Westcott 23df591435
Show error on exceeding ListBlock maxNum, rather than disabling addition 2024-07-18 18:26:13 +01:00
Matt Westcott 0fb10fb663
Show error on exceeding StreamBlock maxNum, rather than disabling addition
As per #9513 / #9784
2024-07-18 18:26:13 +01:00
smark-1 95eac5ab78
Allow page to change private page options 2024-07-18 17:23:30 +01:00