discourse/plugins/chat/spec
Martin Brennan 1526d1f97d
FEATURE: Sort thread list by unread threads first (#22272)
* FEATURE: Sort thread list by unread threads first

This commit changes the thread list to show the threads that
have unread messages at the top of the list sorted by the
last reply date + time, then all other threads sorted by
last reply date + time.

This also fixes some issues by removing the last_reply
relationship on the thread, which did not work for complex
querying scenarios because its order would be discarded.

* FIX: Various fixes for thread list loading

* Use the channel.threadsManager and find the channel first rather
  than use activeChannel in the threads manager, otherwise we may
  be looking at differenct channels.
* Look at threadsManager directly instead of storing result for threads
  list otherwise it can get out of sync because of replace: true in
  other places we are loading threads into the store.
* Fix sorting for thread.last_reply, needed a resort.
2023-06-28 13:14:01 +10:00
..
components/chat FEATURE: Sort thread list by unread threads first (#22272) 2023-06-28 13:14:01 +10:00
fabricators FEATURE: Thread indicator improvements and participants (#21909) 2023-06-15 10:49:27 +10:00
integration DEV: Update chat cooked quote spec (#22202) 2023-06-20 10:30:33 +08:00
jobs DEV: Update the rubocop-discourse gem 2023-06-26 11:41:52 +02:00
lib DEV: Introduce an array type for Chat contracts (#22278) 2023-06-27 10:51:58 +10:00
mailers DEV: fix and enable flaky specs (#21753) 2023-05-30 14:25:14 +04:00
models DEV: Update the rubocop-discourse gem 2023-06-26 11:41:52 +02:00
queries/chat DEV: Update the rubocop-discourse gem 2023-06-26 11:41:52 +02:00
requests FEATURE: Export chat messages to CSV file (#22113) 2023-06-21 16:13:36 +04:00
serializer DEV: Update the rubocop-discourse gem 2023-06-26 11:41:52 +02:00
services FEATURE: Sort thread list by unread threads first (#22272) 2023-06-28 13:14:01 +10:00
support DEV: Fix plugin:spec task return code (#21661) 2023-05-19 16:17:02 +02:00
system FEATURE: Sort thread list by unread threads first (#22272) 2023-06-28 13:14:01 +10:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb FEATURE: Allow users to manually track threads without replying (#22100) 2023-06-16 12:08:26 +10:00
plugin_spec.rb UX: update chat icon to d-chat (#20744) 2023-03-21 10:40:42 -04:00