0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-10 22:51:02 +08:00
discourse/plugins/chat/spec/system
Régis Hanol 87f9d907ab
FIX: Handle a member disabling chat in their preferences (#41805)
Previously, a member who turned chat off in their preferences saw their
existing chat notifications render as blank rows, and any chat link
silently bounced them to the homepage.

This change registers the chat notification renderers whenever chat is
enabled site-wide so those notifications still render correctly, and
sends chat links to a new "chat is disabled" page that explains how to
turn it back on.

**BEFORE**

(the notification are "blank")

<img width="1400" height="1200" alt="before-notifications"
src="https://github.com/user-attachments/assets/d8dcef2e-98eb-4b30-bf33-4a1f8c2c4626"
/>

**AFTER**

(the notification are there)

<img width="1400" height="1200" alt="after-notifications"
src="https://github.com/user-attachments/assets/72b17123-8f82-4c5e-a74d-7d5347de623a"
/>

(the "blank slate" page that is displayed when you click a #chat
notification after you've disabled #chat in your preferences)

<img width="1400" height="1200" alt="after-disabled-page"
src="https://github.com/user-attachments/assets/1905ecb5-7b8c-4682-87a9-1559ca4ec569"
/>
2026-07-17 16:21:12 +02:00
..
admin DEV: Remove enable_simplified_category_creation old code (#40108) 2026-05-27 10:04:46 +10:00
chat/composer DEV: Add theme screenshots system spec and skill (#39426) 2026-05-05 09:36:29 -04:00
chat_channel_search
chat_message
drawer FIX: Chat back button loses starred context after drawer reopen (#40219) 2026-05-21 17:55:46 +02:00
list_channels UX: Long press chat channel rows to open the actions menu on touch (#41441) 2026-07-07 16:27:55 -03:00
page_objects UX: Chat channel empty and not yet joined state redesigns (#41737) 2026-07-17 13:11:24 +02:00
reply_to_message DEV: Add theme screenshots system spec and skill (#39426) 2026-05-05 09:36:29 -04:00
select_message
shortcuts DEV: Make visit() wait for the app to boot (#39659) 2026-04-30 17:33:57 +02:00
thread_list DEV: Fix two more chat spec flakes (#39760) 2026-05-05 21:40:26 +02:00
thread_tracking DEV: Restore and fix skipped chat drawer thread indicator specs (#39545) 2026-04-27 10:42:49 +02:00
user_menu_notifications DEV: Restore and fix chat's user menu invitation spec (#39593) 2026-04-28 18:48:14 +02:00
user_status
about_page_site_acitivity_spec.rb
admin_search_spec.rb
admin_sidebar_navigation_spec.rb
anonymous_public_channels_spec.rb UX: Chat channel empty and not yet joined state redesigns (#41737) 2026-07-17 13:11:24 +02:00
anonymous_spec.rb
archive_channel_spec.rb FIX: Normalize tag-chooser tags to names in RSS polling and chat archive (#41654) 2026-07-13 14:19:14 +02:00
archived_channel_settings_spec.rb
bookmark_message_spec.rb
browse_page_spec.rb FIX: Handle a member disabling chat in their preferences (#41805) 2026-07-17 16:21:12 +02:00
channel_members_page_spec.rb DEV: Fix two more chat spec flakes (#39760) 2026-05-05 21:40:26 +02:00
channel_message_upload_spec.rb
channel_notice_spec.rb
channel_settings_page_spec.rb
channel_thread_message_echoing_spec.rb
chat_channel_sidebar_context_menu_spec.rb
chat_channel_spec.rb DEV: Restore and fix five chat specs (#39541) 2026-04-27 10:41:06 +02:00
chat_composer_draft_spec.rb DEV: Restore chat draft specs (#39523) 2026-04-24 15:12:19 +02:00
chat_composer_spec.rb DEV: Fix (again again) the chat upload spec (#40746) 2026-06-10 20:05:37 +02:00
chat_disabled_spec.rb FIX: Handle a member disabling chat in their preferences (#41805) 2026-07-17 16:21:12 +02:00
chat_footer_spec.rb DEV: Fix flaky chat footer specs (#39721) 2026-05-05 12:22:12 +02:00
chat_informative_blocks_spec.rb
chat_lazy_youtube_spec.rb
chat_message_codeblock_spec.rb
chat_message_creator_spec.rb
chat_message_interaction_spec.rb
chat_message_onebox_spec.rb
chat_new_message_spec.rb
chat_search_spec.rb
closed_channel_spec.rb
create_channel_spec.rb UX: update chat form to formkit, clean up chat modal styles (#40845) 2026-06-15 09:17:14 -04:00
dates_separators_spec.rb DEV: Fix a last-visit spec flake (#40539) 2026-06-03 18:15:52 +02:00
deleted_channel_spec.rb DEV: Silence expected error/debug output in system specs (#39164) 2026-04-13 13:59:41 +02:00
deleted_message_spec.rb
document_title_spec.rb
drawer_spec.rb DEV: Fix a chat drawer spec (#40613) 2026-06-05 17:17:53 +02:00
edited_message_spec.rb
flag_message_spec.rb
hashtag_autocomplete_spec.rb DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
invite_users_to_channel_spec.rb
kick_user_from_channel_spec.rb DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
last_visit_spec.rb FIX: Disappearing last-visit marker bug in chat (#40506) 2026-06-03 14:03:31 +02:00
mention_warnings_spec.rb
message_errors_spec.rb
message_notifications_mobile_spec.rb
message_notifications_with_sidebar_spec.rb
message_thread_indicator_spec.rb DEV: Restore and fix chat thread indicator specs (#39623) 2026-04-29 11:39:05 +02:00
message_user_info_spec.rb
move_message_to_channel_spec.rb
navigation_spec.rb Revert "FIX: Await channel lookups before redirecting in chat index routes" (#40474) 2026-06-02 10:16:16 -03:00
pinned_messages_spec.rb
plugin_admin_interface_compatibility_spec.rb
react_to_message_spec.rb DEV: Restore and fix chat reactions spec (#39549) 2026-04-27 10:43:13 +02:00
read_only_spec.rb
restore_message_spec.rb
reviewables_spec.rb
rich_editor_extension_transcript_spec.rb FIX: BBCode attribute values with quotation marks produce malformed output (#40016) 2026-05-29 14:11:47 -05:00
send_message_spec.rb DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
separate_sidebar_mode_spec.rb
sidebar_navigation_menu_spec.rb DEV: Silence expected error/debug output in system specs (#39164) 2026-04-13 13:59:41 +02:00
sidebars_spec.rb
silenced_user_spec.rb
single_thread_spec.rb
starred_channels_spec.rb
thread_preview_spec.rb
transcript_spec.rb
unfollow_dm_channel_spec.rb
update_last_read_spec.rb
uploads_spec.rb DEV: Fix a chat upload spec flake (#40579) 2026-06-04 17:29:04 +02:00
user_card_spec.rb
user_chat_preferences_spec.rb UX: Consolidate chat notifications into live notification preferences (#41538) 2026-07-14 08:32:48 +02:00
user_notification_preferences_spec.rb UX: Consolidate chat notifications into live notification preferences (#41538) 2026-07-14 08:32:48 +02:00
user_profile_spec.rb
user_threads_spec.rb DEV: Restore and fix chat thread indicator specs (#39623) 2026-04-29 11:39:05 +02:00
visit_channel_spec.rb FIX: Handle a member disabling chat in their preferences (#41805) 2026-07-17 16:21:12 +02:00