discourse/plugins/chat/spec
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
..
components/chat DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
fabricators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
integration FEATURE: Auto-remove users without permission from channel (#20344) 2023-03-22 10:19:59 +10:00
jobs FEATURE: Auto-remove users without permission from channel (#20344) 2023-03-22 10:19:59 +10:00
lib DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
mailers DEV: Skip channel-wide mention chat specs (#20770) 2023-03-22 12:44:01 +10:00
models DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
queries/chat DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
requests FEATURE: Mark all chat channels read with a shortcut (#20629) 2023-03-22 13:24:07 +10:00
serializer DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
services FEATURE: Mark all chat channels read with a shortcut (#20629) 2023-03-22 13:24:07 +10:00
support DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
system FEATURE: Mark all chat channels read with a shortcut (#20629) 2023-03-22 13:24:07 +10:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_spec.rb UX: update chat icon to d-chat (#20744) 2023-03-21 10:40:42 -04:00