mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
UX: add illustrations for empty chat list + split into tabs on drawer (#26910)
Adds a placeholder image + CTA in chat, for empty channel and DM lists. On desktop with drawer mode, we split chat into tabs (like mobile). --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com> Co-authored-by: David Battersby <info@davidbattersby.com> Co-authored-by: Régis Hanol <regis@hanol.fr>
This commit is contained in:
@ -133,13 +133,14 @@ RSpec.describe "User threads", type: :system do
|
||||
end
|
||||
|
||||
context "when in drawer" do
|
||||
before { SiteSetting.chat_threads_enabled = true }
|
||||
|
||||
context "when user is a member of at least one channel with threads" do
|
||||
before { channel_1.add(current_user) }
|
||||
|
||||
it "shows a link to user threads" do
|
||||
it "shows the user threads tab" do
|
||||
visit("/")
|
||||
chat_page.open_from_header
|
||||
|
||||
expect(drawer_page).to have_user_threads_section
|
||||
end
|
||||
end
|
||||
@ -245,6 +246,8 @@ RSpec.describe "User threads", type: :system do
|
||||
|
||||
context "when in mobile", mobile: true do
|
||||
before do
|
||||
SiteSetting.chat_threads_enabled = true
|
||||
|
||||
last_message =
|
||||
chat_thread_chain_bootstrap(
|
||||
channel: channel_1,
|
||||
|
Reference in New Issue
Block a user