UX: various tweaks on thread (#21083)

- Back button in drawer will bring you back to channel
- Larger font for thread indicator
- Prevents screen flashing due to clearing messages when they were already loaded
- Fixes a bug where did-update params were inverted causing an error when expanding/collapsing drawer
This commit is contained in:
Joffrey JAFFEUX
2023-04-13 10:08:12 +02:00
committed by GitHub
parent 967010e545
commit 18c81958e5
12 changed files with 59 additions and 29 deletions

View File

@ -58,6 +58,18 @@ describe "Single thread in side panel", type: :system, js: true do
expect(chat_drawer_page).to have_open_thread(thread)
end
it "navigates back to the channel when clicking back button from a thread" do
visit("/latest")
chat_page.open_from_header
chat_drawer_page.open_channel(channel)
channel_page.message_thread_indicator(thread.original_message).click
expect(chat_drawer_page).to have_open_thread(thread)
chat_drawer_page.back
expect(chat_drawer_page).to have_open_channel(channel)
end
it "opens the side panel for a single thread from the indicator" do
chat_page.visit_channel(channel)
channel_page.message_thread_indicator(thread.original_message).click