discourse/plugins/chat/spec/system/shortcuts
Martin Brennan a0381157e9
FEATURE: Mark all chat channels read with a shortcut (#20629)
This commit adds a keyboard shortcut (Shift+ESC) for chat which marks all
of the chat channels that the user is currently a following member of as read,
updating their `last_read_message_id`. This is done via a new service.

It also includes some refactors and controller changes:

* The old mark message read route from `ChatController` is now supplanted
  by the `Chat::Api::ReadsController#update` route.
* The new controller can handle either marking a single or all messages read,
  and uses the correct service based on the route and params.
* The `UpdateUserLastRead` service is now used (it wasn't before), and has been slightly
  updated to just use the guardian user ID.
2023-03-22 13:24:07 +10:00
..
chat_composer_spec.rb UX: disable arrow up to edit if last message is not editable (#20729) 2023-03-17 23:08:10 +01:00
drawer_spec.rb UX: disables composer auto focus on drawer (#20751) 2023-03-20 22:24:12 +01:00
full_page_spec.rb UX: disables composer auto focus on drawer (#20751) 2023-03-20 22:24:12 +01:00
mark_all_read_spec.rb FEATURE: Mark all chat channels read with a shortcut (#20629) 2023-03-22 13:24:07 +10:00
sidebar_spec.rb DEV: Fix random typos (#19973) 2023-01-24 15:41:01 +01:00