feat(ui): redesign the welcome empty state (LC-372) #382
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/lc-372-welcome-empty-state"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes LC-372. Part of the LC-364 redesign epic. This is the original headline problem from the reference screenshot.
What
Replaces the bare top-left "Welcome, {name}" heading + two muted prose lines with a centered, vertically balanced onboarding empty state (Linear/Slack feel). File:
server/templates/home/welcome.html.min-h-fullflex centering keeps the content optically centered at common widths instead of floating top-left.Welcome, {name}heading (lc-display), and one supporting subtitle line./enclaves/discover./invitations, with a count badge when invitations are pending.role="alert"). Existing routes kept.Backend
WelcomePagegains apending_invitescount (fromlist_invitations_for_user) to drive the badge; the home handler populates it, and the twodm.rserror-fallback renders pass0. Seven new i18n keys added toen+es(subtitle + three card title/desc pairs).Testing
home_welcome_renders_quick_actionsasserts the subtitle, the Start-a-DM action, and the discover / invitations links../dev/cargo check -p lets-chat-server- clean.just build-css- clean.just testandjust test-saas- both green (incl.i18n_catalogparity and the new test).🤖 Generated with Claude Code
Replace the bare top-left "Welcome, {name}" heading + two muted prose lines with a centered, vertically balanced onboarding empty state (Linear/Slack feel): a chat-bubble illustration in an accent-tinted circle, the welcome heading + one supporting line, and three quick-action cards. The cards are: Start a direct message (jumps the unified sidebar search to the People tab and focuses it, since DMs have no separate index page), Discover or create an enclave (/enclaves/discover), and View invitations (/invitations) with a count badge when invitations are pending. The pane uses min-h-full flex centering so the group stays optically centered at common widths instead of floating top-left. WelcomePage gains a pending_invites count (from list_invitations_for_user) to drive the badge; the home handler populates it and the two dm.rs error-fallback renders pass 0. The flash-error banner is preserved (now above the centered card group, role="alert"). Seven new i18n keys added to en + es (subtitle + three card title/desc pairs). A render test asserts the quick actions and their links. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>