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:
chapoi
2024-05-28 15:00:04 +02:00
committed by GitHub
parent e02b8b4a83
commit d0427919f1
22 changed files with 363 additions and 213 deletions

View File

@ -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,