discourse/plugins/chat/spec
David Taylor ed2dae6d1a
FIX: Ensure dialogs are still rendered if triggered during boot (#22511)
When the loading slider is enabled, the rendering of `application.hbs` is slightly delayed compared to the old 'spinner' strategy. This means that if a route tried to render a dialog during its `model()` hook, the dialog wrapper element would not be present and an error would occur.

This commit detects that situation and delays rendering the error until the next runloop iteration. If the element is still not found, we print a useful error to the console.

In the long term, we should ideally convert the dialog service to use a pure-ember rendering strategy instead of leaning on a11y-dialog. But for now, this workaround should resolve the problems identified by the chat system specs.
2023-07-10 11:29:04 +01:00
..
components/chat DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
fabricators FIX: Track thread in UI when user sends first message (#22462) 2023-07-07 13:09:06 +10:00
integration DEV: Update chat cooked quote spec (#22202) 2023-06-20 10:30:33 +08:00
jobs FIX: Mark threads read when threading enabled for a channel (#22458) 2023-07-06 16:24:56 +10:00
lib FEATURE: new jump to channel menu (#22383) 2023-07-05 18:18:27 +02:00
mailers DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
models DEV: Move user count update for channels to ensure_consistency! (#22321) 2023-07-03 11:41:51 +10:00
queries/chat FIX: Better handling of deleted thread original messages (#22402) 2023-07-06 09:47:34 +10:00
requests FEATURE: new jump to channel menu (#22383) 2023-07-05 18:18:27 +02:00
serializer DEV: Update the rubocop-discourse gem 2023-06-26 11:41:52 +02:00
services DEV: more resilient auto remove spec (#22472) 2023-07-06 21:44:53 +02:00
support FEATURE: new jump to channel menu (#22383) 2023-07-05 18:18:27 +02:00
system FIX: Ensure dialogs are still rendered if triggered during boot (#22511) 2023-07-10 11:29:04 +01:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
plugin_spec.rb DEV: Move user count update for channels to ensure_consistency! (#22321) 2023-07-03 11:41:51 +10:00