Skip to content

feat(platform): redesign the Home view switcher so its labels fit and it works with three views or four #4688

Open

Description

@yannickmonney

Summary

At the top of Home, the switcher that picks which kind of work the list shows (All, Chats, Tasks, Inbox) is a row of text labels in one pill track, beside the New chat button. The names are too long for the space, and the code already carries a special case for it. Redesign the control so it is modern and slick, looks right with three views and with four, and stays within the Tale design guide.

You have the freedom to change whatever it takes: the form of the control, the labels, the layout of the header row around it, the place of New chat.

Current behavior

  • services/platform/app/features/home/components/home-view-switcher.tsx: a role="radiogroup" pill track (h-8, bg-muted/70) with one radio per view, a pill that glides under the selection (useSlidingIndicator), labels in text-xs font-medium with truncate, and a small dot when something waits on the caller. Buttons are sized to their label because equal widths cut the long ones; the comment at lines 85-88 names "Aufgaben, Réception".
  • Three or four views today. home-panel.tsx:631-638 always offers All, Chats and Tasks, and offers Inbox only when the organization has one (data.hasInbox). A further kind of work would need yet another slot.
  • Little room. The panel resizes between 280 and 480 px (home-panel.tsx:177-178). The same row holds the 32 px New chat icon button (HomeNewChatButton, home-panel.tsx:931), a 10 px padding each side and a 6 px gap, so at the narrowest panel the track has roughly 220 px for every label. On a phone the same navigator is the Home screen.
  • Labels (services/platform/messages/{en,de,fr}/home.yml, views.*): EN All / Chats / Tasks / Inbox, DE Alle / Chats / Aufgaben / Inbox, FR Tout / Chats / Tâches / Réception.
  • A hand-built control beside shared ones. @tale/ui already ships SegmentedControl (packages/ui/src/components/forms/segmented-control.tsx), Tabs, SectionNav and BottomTabBar, which share useSlidingIndicator. Read them first; the result should live in @tale/ui or reuse a primitive there, not add another bespoke tab pattern.

Directions to weigh

Not a prescription; pick what looks best and say why.

  • Icon-led segments where only the selected view shows its label (an expanding pill), the others icon-only with a tooltip and an accessible name.
  • Icons with quiet attention badges (a count or a dot), labels reserved for the active view and the tooltip.
  • A compact tab row that overflows into a menu past a set number of views.
  • Treating All as the cleared state of the filter chips instead of a segment of its own.

Constraints

  • Design guide first. Learn design/ and @tale/ui (ui.tale.dev; services/ui-docs/content/components/tabs-and-navigation.md) before drawing anything; use the existing tokens.
  • Count-independent. Good with three views, with four, and with a fifth added later without a redesign: options come from a list, and Inbox stays conditional.
  • No truncated label in EN, DE or FR at the 280 px panel and at a 360 px phone width. If a label becomes an icon, its accessible name is still the full localized label.
  • Accessibility (WCAG 2.1 AA). Keep today's contract: one tab stop, arrow keys move between views, visible focus, the attention state announced (home.aria.attention) and kept equally quiet visually, prefers-reduced-motion respected.
  • Behavior unchanged. The persisted view (usePersistedState), Inbox hidden when absent, narrowing by project, the per-view search placeholder and the empty states stay as they are.
  • Both hosts. The resizable desktop panel and the phone Home screen.

Blast radius

Update in the same change:

  • Tests: home-view-switcher.browser.test.tsx, home-panel.browser.test.tsx, and the e2e specs navigation.spec.ts, responsive.spec.ts and automations.spec.ts.
  • Manual boxes that name the switcher: services/platform/tests/manual/suites/navigation.md (around lines 293 and 643), responsive.md (64, 121), chat.md (79), conversations.md (12, 146). Append, never renumber; run check-guide.ts.
  • Locales: home.views.* in en, de and fr per the write-translations skill, if any label changes.
  • Docs in EN, DE and FR that describe the switcher: docs/en/platform/index.md:39 and docs/en/platform/chat/basics.md:101.
  • Screenshots that show the panel (at least home-inbox; check services/docs/public/images/manifest.json) and the README gallery: retake through bun run docs:screenshots.
  • @tale/ui stories and the ui-docs guide if a primitive changes.

Acceptance criteria

  • Before/after screenshots at 280 px, 480 px and a phone width, in EN, DE and FR, with three and with four views, observed in a real browser and attached to the PR.
  • No ellipsis at those sizes; a mock fifth view does not break the layout.
  • Keyboard and screen-reader pass, including the attention announcement.
  • Tests, manual boxes, locales, docs and screenshots updated as listed above.

Activity

  1. added
    agent-ready
    on Oct 29, 2026
  2. tale-review-bot commented on Oct 30, 2026

    @tale-review-bot
    Collaborator

    The icon-led Home view switcher has landed on the feature line's merge train: feature-train commit 9fc9830 (task TALE-114). It reaches release/0.6 with the next feature-train pull request.

    That commit says Refs #4688, not Closes, because one item on this issue's acceptance list is still open:

    • Docs screenshots not retaken. The home-inbox shots in en, de and fr (services/docs/public/images/manifest.json) and the README gallery still show the old labelled switcher. Retaking them needs bun run docs:screenshots with the running platform stack, which neither agent worker has (no Docker).

    Before/after screenshots of the switcher at 280 px, 480 px and a 360 px phone, in EN, DE and FR with 3, 4 and a mock 5th view, are attached to TALE-114. The e2e specs (navigation, responsive, automations) run with the feature train's pull request.

    (Reviewer, review-merge slice 3 of 4, run 4f05aaeb)

  3. 1 remaining item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyimprovementservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions