Skip to content

feat(platform): put chats, tasks and the inbox in one Home panel - #3492

Merged
yannickmonney merged 46 commits into
mainfrom
feat/unified-home
Sep 26, 2026
Merged

yannickmonney merged 46 commits into
mainfrom
feat/unified-home

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Chats, project tasks and inbox conversations used to live in three sections with three shapes — a chat list with project folders, a project board, and a mail client — each with its own sub-panel. This folds them into one Home section: one panel, one row anatomy, one frame for every conversation-shaped page.

  • Rail: Home · Knowledge · Automations, with Settings, notifications and the account at its foot. The phone tab bar mirrors it (Home · Knowledge · Automations · Settings) — no More sheet, no mobile sidebar sheet; search moves into the phone's Home header.
  • Home panel: a view switcher (All / Chats / Tasks / Inbox), Projects as doors to their pages and as drop targets for filing chats, and one time-banded stream (Pinned, Today, Yesterday, Previous 7 days, Earlier) mixing your chats, the open tasks assigned to you or waiting for your review, and the open inbox conversations. The Inbox view keeps status, search, filters and bulk actions (checkboxes always shown on phones). On a phone, /home is that list as a screen.
  • One thread frame: chat, task and conversation pages share ThreadHeader (@tale/ui/thread-header); the Home panel toggle lives in it, so the panel only folds where it can be brought back.
  • A task reads like a chat: /tasks/$taskId opens from Home and search — brief card, comments and task events as one oldest-first conversation under day pills, a pinned composer (⌘/Ctrl+Enter), and a details side panel (a sheet on phones); a task that is gone shows the not-found page. The board dialog is unchanged.
  • Settings and Knowledge share SectionNavPanel (@tale/ui/section-nav) with a gliding selection (useSlidingIndicator — CSS transforms, since the app runs LazyMotion strict without layout animations). Automations stays panel-less, and so does a project's automation workbench: its canvas keeps the full width.
  • Removed: the chat sub-panel (thread list, project folders, draft row, search trigger), the mobile sidebar sheet and More overflow, --sidebar-width, and the i18n keys only they used.
  • Backend: the task list accepts reviewerId, so Home can list what waits on your review; covered by a new integration-check record.
  • Docs (EN/DE/FR, plus Home in the glossary), design notes, the ui-docs app-shell guide, the marketing demo frame, manual suites and e2e specs move with it.

A review pass over the branch also fixed: the All view losing its conversations after the Inbox view was left on another status; the chat header vanishing for archived and shared chats; row menus invisible to keyboard focus and the status menu's label not naming its status (WCAG 2.4.7, 2.5.3); a released drag filing a chat into a grazed project or archiving it (the stream now puts it back); day bands off by an hour across DST; a settings drawer route remounting its page.

Details, motion and conveniences (follow-up round)

  • One glide everywhere. The open row of every panel list — the Home stream, Projects, the Inbox view — is one highlight that glides between rows on the rail's timing (SlidingHighlight); with nothing open it fades out where it stood and lands on the next row with a fade instead of sliding in from a corner. Rows that join an open list (a new chat, a task handed to you, an arriving conversation) drop into place; opening another chat, task or conversation fades the view in (useSwapFade, opacity only), and moving between those kinds fades the page. Reduced motion stills all of it.
  • Keyboard. ⌘\ (Ctrl+) folds the Home panel; ⌥↑/⌥↓ open the previous or next item of the list on screen from anywhere but a text field, even with the panel folded; ↑/↓ move between a list's rows.
  • Drafts. A task's comment box keeps unsent text per task like a chat does, and a Home row whose chat, task or conversation holds something unsent says Draft.
  • Copy. A task page copies its link and its key (WEB-2); a conversation copies its link.
  • Tabs. The browser tab names the open chat, task or conversation ("Review the launch checklist - Acme Studio") instead of its section, so several open items stay apart; leaving hands the page its own title back. One shared useDocumentTitle serves them, the not-found page and the offline notice, which still wins the tab. TanStack swaps its <title> element whenever a page's title changes, so the hook reasserts itself over each swap and never restores a stale title after a navigation.
  • Search speaks Home's language. Hits wear the Home glyphs (task status, chat bubble, project folder, contact); a task without a description reads its status instead of its title twice, a project's line drops the repeated key. Task search hits carry their status.
  • Docs and manual suites. The Home guide (EN/DE/FR) gains a Keyboard shortcuts table, the empty views' next steps, the Draft marker, the phone's single header and Copy link; the task guide covers the kept comment draft and copying. Sixteen new manual boxes cover the motion, the keys, drafts, copying and the tab titles, with automation-ledger rows naming the specs that own each half.
  • Details. Plain-text inbox messages read in the UI font instead of monospace; the Inbox view's search and filter share one height; a settings page no longer prints its name twice; a project's Chats tab lists chats like Home (never an id for an untitled one); empty Home views offer a next step; a phone's chat, task or conversation keeps one header row; a phone hides the composer's keyboard hint.

Checklist

  • bun run check passes (format, lint, typecheck, all tests). — Format ✓. Typecheck ✓ (platform, ui, marketing-ui, ui-docs). Lint ✓ on every changed file (type-aware oxlint over the whole platform workspace runs out of memory on this machine, so CI's run is the full one). Tests: see the test plan.
  • bun run lint:sast passes (Opengrep) — 467 rules, 0 findings.
  • Translations updated in messages/{en,de,fr}.yml — new home namespace, task-page and navigation keys; de-CH needs no override (no ß).
  • Docs updated in docs/{en,de,fr}/ — navigation guide, a new Home section, the task page, and every page that sent readers to Chat or Projects in the old sidebar.
  • README.md / README.de.md / README.fr.md — N/A: they don't describe the navigation. Their hero images come from docs screenshots (follow-up below).

Test plan

Automated (run locally):

  • Platform UI suite (jsdom), on the merge with the latest main: 434 files, 3,503 tests — green, including new specs for the Home panel, its data, rows, grouping (with a DST case), view switcher, compact ages, task page and conversation, search targets, the chat header and the boot shell, and this round's keyboard navigation, drafts, copy links, entering rows, swap fade and tab titles.
  • Platform browser project (real Chromium, 82 tests): green apart from message-thread › stops the glide where an upward wheel takes over, which fails the same way on a clean origin/main checkout on this machine (expected 29 to be greater than 40) and passes in CI on main. The new home-panel.browser.test.tsx pins the project list under half of the panel with its own scroll, the stream taking the rest, the open row scrolled into view, a drop on a project, and a release over the stream putting the chat back — the last two fail against the code before the fix.
  • Platform server + pii: 76,838 passed, 5 skipped — green. lib/config-watcher.test.ts, a load-dependent chokidar timing test this branch does not touch, has flaked on clean main too.
  • @tale/ui unit (2,375), marketing-ui (36), ui-docs (82) and docs (166) — green. @tale/ui browser: green apart from entity-view-dialog › keeps long names and identifiers within a phone viewport, which fails the same way on a clean main checkout on this machine. Typecheck 16/16 workspaces, knip clean, bun run lint:manual green (1,087 boxes).
  • backend:integration (first round), A/B against a clean origin/main worktree on fresh databases: both truncate at the same lane (40, checkKnowledgeEntries — needs an embedder key locally) with the same 18 environmental failures; main 153/171, this branch 154/172 — the extra check is the new reviewer filter (mine=1, others=0).

By hand (desktop 1440 px and phone 390 px, light and dark):

  1. Rail: Home opens your last chat; choosing Home again (or ⌥⌘N) starts a new chat; the badge counts unread inbox conversations.
  2. Home panel: switch All / Chats / Tasks / Inbox; the choice survives a reload; leaving the Inbox view on Closed keeps All's open conversations. Drag a chat onto a project — it's filed there; release a drag over the stream — nothing changes. Tab through the rows — each row's menu shows while it holds focus.
  3. Open a task from Home or ⌘K search — it opens as a page; post a comment with ⌘Enter; fold and unfold Details; Board opens the project board; a dead task link shows the not-found page.
  4. Inbox view: switch status, filter, select two conversations and close/reopen them in bulk; on a phone, tap a row's checkbox to start a selection.
  5. Hide the panel from a chat header, reload — it stays hidden; open an archived chat — its title and menu stay in the header; open Settings or Knowledge — their panels glide between pages.
  6. Phone: tab bar, Home list with Search, back arrow from a chat/task/conversation, the task details sheet.
  7. Follow-up round: the highlight glides between rows and lands with a fade after a project; ⌘\ folds the panel and ⌥↓/⌥↑ step through the stream even while it is folded; a typed-but-unsent chat, task comment or reply marks its row Draft; Copy link and the task key copy the right values; the tab names each open item and Settings gets its own title back; offline, the tab reads Reconnecting even on a chat; a phone's thread page shows one header.

Merging main: main gained #3490 and #3491 meanwhile; they are merged in (no force-push). Both rounds had added manual boxes under the same six IDs, so this branch's unmerged ones moved to CHAT-F46, NAV-F41, PROJ-F28, SET-F48, TASK-F28 and TASK-B7; a separate commit recounts suites whose counts main left behind.

Follow-ups (not in this PR): re-capture the docs screenshots and README hero images through the capture pipeline, and re-record the tutorial videos — they still show the old sidebar. Notification links to tasks still open the board dialog, because the same target feeds the public REST notifications path. On desktop the Inbox view keeps its filters per device rather than in the URL (nothing in the app links with them).

A section's navigation now has one frame everywhere: SubPanel gains a
280px `list` width for two-line rows and a SubPanelHeader that names the
section in the same h-13 row as the page header beside it. SectionNavPanel
assembles a fixed-pages panel (Settings, Knowledge) with icon rows and a
highlight that glides to the open page, driven by the new
useSlidingIndicator hook (measured, moved by a CSS transform, reduced
motion respected).

ThreadHeader is the shared title row of every conversation-shaped page:
controls, a 32px identity mark, the title, one line of context and the
actions, in the page header's height and rule (or floating over content).

The adaptive header's phone slot now lays its content out as a row, like
the desktop title row, instead of stacking a back button above the title.
The rail now holds the sections — Home, Knowledge, Automations, with
Settings pinned beside notifications and the account — on one pill that
glides between tiles. Projects and the Inbox fold into Home.

Home is one list beside every Home route (chat, tasks, projects, the
inbox): chats, the open tasks assigned to you or waiting on your review,
and the inbox's customer conversations, banded by time, with one row
anatomy for all three and a switcher (All, Chats, Tasks, Inbox). Projects
sit above the list as doors and drop targets. The Inbox view carries the
status switch, search, facets and multi-select with the bulk verbs, on the
same list model as the phone inbox (useInboxList). A phone shows the list
as its Home screen; the tab bar lists the rail's sections.

A chat, a task and a conversation open in one frame: the shared thread
header, a centred column, one composer frame. A task opens on its own page
as a structured chat — its brief first, comments and history oldest first
under day pills, the composer at the foot, the details in a panel — and
the board keeps its dialog. Settings and Knowledge take the same section
panel as Home.

The task list read gains a reviewer filter (with its real-Postgres check).
The old chat list, the unreachable mobile drawer, the expandable-sidebar
leftovers and their strings are removed.
The demo frame depicts the app 1:1: its rail now shows Home, Knowledge and Automations, with Settings at the foot beside notifications and the account. Chat, project and agent demos light Home, where those live now; the stale Agents tile is gone.
A task found in the palette opens on its own page, the way Home opens it, unless its board is the page you are on (the dialog opens in place); the routing is a pure, tested function now. The Home panel mounts on desktop only (a phone's Home list is a screen of its own), a fresh chat's draft row scrolls into view, and the unread and attention dots speak through the row's text instead of stray live regions.
useThreadDndState, HomePanelHeader and formatCents are only called inside
the files that define them now that the chat panel's list and folder rows
are gone, so knip flags their exports as unused.
The stream carried no drop zone, so a drag released over it fell through
to the rect-intersection fallback and went to whichever zone the lifted
card grazed: a short drag near the top filed the chat into the last
visible project, one near the bottom archived it. The stream now
registers as a zone where a drop changes nothing; filing a chat still
means dropping it on a project.

A Chromium spec replaces the retired chat list's layout spec: it pins
the project list under half of the panel with its own scroll, the stream
taking the rest, the open row brought into view, a drop on a project,
and the put-back cases above.
The navigation guide now walks the rail (Home, Knowledge, Automations,
with Settings at its foot), the phone tab bar, and a new Home section:
the view switcher, projects, the time-banded list and its rows, the
Inbox view with its bulk bar, and hiding the panel. The task guide gains
the task page that Home opens; every page that sent readers to Chat or
Projects in the old sidebar now points into Home. EN, DE and FR move
together, and the glossary records Home as Start and Accueil.
The board read's cache key gained a reviewer entry when Home started
listing the tasks that wait on your review, so the by-project case now
expects it, and a new case pins the across-projects read carrying
reviewerId into both the URL and the key.
The stream read its conversations with the status the Inbox view was
left on, then kept only the open ones — so leaving that view on Closed
emptied All of every conversation, and the Inbox dot counted the wrong
tab. The stream now always reads the open conversations (and skips the
read for an organization without an inbox; passing an empty org id only
fell back to the active one); the Inbox view keeps its own pages.

In the Inbox view the remembered status is checked like the view, Send
waits while another bulk verb runs, a bulk verb lets go of the open
conversation as the inbox page does, and the status menu's name leads
with the status it shows. The open row is now revealed once it arrives,
since the inbox can answer after the first render.
A chat or project row's menu, and the checkbox that stands in for a
conversation's initials, showed on hover only — invisible to a keyboard
user who had tabbed onto them, and out of reach on a phone, where nothing
hovers, so a selection could never start there. They now show while the
row holds keyboard focus (focus-visible, so a click does not pin them
open), a phone shows every inbox row's checkbox from the start, and only
a row that carries actions hides its age to make room for them.
The desktop header drew only for a chat in your own active list, so an
archived chat, or a teammate's chat shared into a project, opened with
no title and no Share or Export. The header now falls back to the
thread's own read; the owner's row actions still key off the list.
The rail's search trigger is hidden below md and the chat drawer that
carried the phone's trigger is gone, so a phone could only search with a
keyboard shortcut. The Home screen's header now opens the same palette.
The page fade keyed the content on the full path, so a drawer route
inside a page — a data-subject request over its list — remounted the
page, resetting its filters and scroll. The key is now the rail entry
the path sits in, the same match that names the page in its header.
Yesterday and the week band were counted back in 24-hour steps, so on
the day after a 23-hour day a late chat from two days ago read as
Yesterday. The edges are now counted in calendar days.
A task page whose read answered nothing — deleted, never there, or out
of reach — rendered a blank column with no header and no way back. It
now shows the platform's not-found state beside the Home panel.
A project's automation workbench wears the Automations chrome, yet the
Home panel stood beside it and took 280px from its canvas; it now keeps
the full width like an automation outside a project, while the rail
still marks Home. The pre-hydration script mirrors that and no longer
reads /dashboard/changelog as an organization, and the phone tab bar's
stand-in draws the four tabs the live bar shows.
The chat seam, its types and the rows still spoke of the chat sub-panel,
its thread list and project folders, and of a mobile overflow sheet that
no longer exist; they now name what holds those reads today. One moved
comment also sheds a ticket reference.
The leaf check looked for the project's name anywhere on the page, and
the Home panel beside it lists the same project, so the row satisfied
it even without a breadcrumb. Both crumbs are now looked up inside the
breadcrumb landmark.
The platform suites now judge the rail and the phone tab bar, the Home
panel (views, bands, rows, the open item, hiding it), the Inbox view,
the shared thread header and the task page, with rewritten boxes where
the old sidebar, chat panel and More sheet were described and struck
ones where they are gone. The automation register and pins follow, and
the suite counts are refreshed.
The compact age takes its narrow units from Intl, and that locale data
moves between ICU builds — German reads "3 Std." under one and "3h"
under the one CI runs. The test now pins that the locale reaches Intl
(and that "now" reads "jetzt") instead of a CLDR literal.
The abbreviation comes from the browser's locale data, so the box says
German reads "3 Std." in Chrome instead of promising it everywhere.
The settings page header now names the open page, so "Notifications"
is both the page's h1 and the section's h2; the spec looks for the
section's own heading.
A highlight whose item went away collapsed to its container's corner,
so the next active item was glided to from a place nobody saw. It now
fades out where it stood and lands on its next item with a fade, and
glides only between two places it is seen at. The rail, the view
switcher and the section panels share one glide timing, and panels draw
the highlight through one SlidingHighlight element; measuring from the
padding box keeps a bordered container from shifting it.
useSwapFade plays a short opacity fade through the Web Animations API
when a view shows another item where the last one stood, so the swap
reads as new content rather than a flicker. The node stays mounted and
nothing moves, so a view that measures itself or keeps state across
items keeps doing so; the first render and a change to nothing open
never fade, and reduced motion skips it.
The Home panel's lists — the stream, the projects and the Inbox view —
now draw their open row's fill as one highlight that glides from row to
row, like the rail and the Settings and Knowledge panels; it steps away
while a chat is dragged. A row that joins a list while it is open (a
chat you started, a task handed to you, a conversation that came in)
drops into place; the first paint and a swapped view only fade.
Opening another chat, task or conversation where the last one stood
now fades the view in, and moving between those kinds of page fades the
page beside the Home panel. A chat created by its first message is the
same conversation continuing, so it does not fade.
Every palette hit sat behind the same file glyph. A task now shows its
status glyph, a chat its bubble, a project its folder and a contact a
person, as they read in Home; documents keep the file. The line under a
task without a description showed its title a second time and now
reads its status instead, and a project's line drops the key its title
already leads with. Task hits carry their status for this.
A plain-text message — an API source's reply, a text-only email — is
stored as one <pre> to keep its line breaks, so the preview showed it
in the monospace code font, without wrapping. That <pre> now reads in
the message's own font and wraps, keeping its breaks; a code block
inside an HTML email stays monospace.
In the Home panel's Inbox view the icon-only filter button stood 36px
tall beside a 32px search box. FilterPanel and FilterButton take a
compact size for a panel's toolbar, and the Inbox view uses it, so the
two controls share one edge.
Since the page header names the open settings page, a page whose first
section carried the same title read "Teams" and then "Teams" again.
That first section now keeps its heading for assistive tech and lets
its description lead; a later section with the page's name keeps its
title, where it tells the sections apart.
⌘\ (Ctrl+\) folds and unfolds the Home panel wherever its header toggle
could, and the toggle's tooltip says so. ⌥↑ and ⌥↓ open the previous or
next chat, task or conversation of the list on screen from anywhere but
a text field — through your work one item at a time, even with the
panel folded. Inside a list, ↑ and ↓ move between rows (Home and End to
its ends) instead of tabbing through every row's menu, and a title the
narrow panel truncates shows whole on hover.
The task page's header copies the page's link from a button beside
Board, and its key (WEB-2) from the key itself — what people paste into
a message or a commit — each with a toast saying what was copied.
A chat and an inbox reply kept their unsent text, but a task's comment
box lost it the moment you left the task. It now keeps its draft per
task, the way a chat does, in the board dialog and on the task page.
With every composer keeping its draft, a Home row whose chat, task or
conversation holds something unsent says "Draft" — except the one you
have open, whose composer is in view.
Like a task's page, a customer conversation's header now leads its
actions with Copy link: the page with the conversation selected, so a
teammate who opens it lands on the same thread.
An empty All or Chats view now offers New chat, and an empty Tasks
view the project list, where tasks are handed out — instead of only
saying there is nothing yet. The empty state rises in as it fades.
The project's Chats tab showed a different glyph, linked only the title
text and named an untitled chat by its id. Its rows now read like
Home's: the chat bubble, the title or "Untitled chat", when it last
moved and — for a chat shared by someone else — its author, with the
whole row opening the chat and the share switch still its own control.
New chat carries the pencil Home uses for it.
On a phone a chat, a task or an open conversation stacked the shell's
bar — holding only the account button — above its own header with the
back arrow, title and actions. Those pages now keep just their own
header (with the notch clearance the bar gave them), in the boot shell
too. Their context lines keep what fits beside the actions: a task's
key and status, a conversation's contact and time.
The app's design contract now names one motion for every selection
highlight — faded out in place when nothing is open, landed with a fade,
glided on one timing — rows dropping into an open list, and the fade of
an item opening in place. It records Home's Draft marker and keyboard
moves, the Copy link and key actions of a task and a conversation, and
the phone's single header row on those pages.
The app-shell guide shows how a panel list of its own draws the shared
gliding highlight, and how a page that opens items in one place fades
the swap without remounting its view.
"⌘ Enter to send" under a task's comment box means nothing on a touch
keyboard, and the chat's composer already leaves its hint out there.
The shortcut now steps aside below the desktop breakpoint, keeping the
send button in place; a hint passed in for the reader stays.
A chat, a task and an inbox conversation now name the tab after
themselves — "Review the launch checklist - Acme Studio" rather than
"Task - Acme Studio" — so several open items stay apart in the tab strip
and the history menu.

One shared useDocumentTitle serves them, the not-found page and the
offline notice. The route head keeps owning the <title> element and
swaps it whenever the page's own title changes, so the hook puts its
title back over each swap and, on unmount, only hands back a title it
wrote itself: a navigation away leaves the next page's title standing.
The latest mounted title shows, and the offline notice outranks the
page names beneath it.
Home's platform guide gains a Keyboard shortcuts table (new chat,
search, fold the panel, the previous or next item, moving between
rows), the empty views' next steps, the Draft marker, the phone's
single thread header and a conversation's Copy link. The task guide
covers the kept comment draft, Copy link beside Board and the
click-to-copy key. English, German and French ship together.
Sixteen boxes for the polish round: the gliding highlight, rows
dropping into place, the swap fade, folding the panel with ⌘\, stepping
through work with ⌥↓/⌥↑, the Draft marker, palette glyphs, reduced
motion, arrow keys between rows, a task's copy link and key, a comment
draft per task, a conversation's copy link, the project Chats rows, the
settings page title printed once, the phone's single thread header and
the tab named after the open item. Boxes whose behaviour moved are
rewritten; NAV-B5 now says the offline gate answers a failed request.
The automation ledger and pins follow.
Brings in #3490 and #3491. chat-surface.tsx takes main's new
branch-selection import path and fork comment; chatDraftKey stays in
lib/draft-key.ts, unchanged.

Main's round added CHAT-F44, NAV-F25, PROJ-F25, SET-F46, TASK-F19 and
TASK-B6 while this branch's unmerged boxes held the same IDs. Main's
boxes keep theirs; this branch's move to CHAT-F46, NAV-F41, PROJ-F28,
SET-F48, TASK-F28 and TASK-B7, and their references follow. The
conflicted suites' counts are recounted.
Main's latest round added boxes to auth, automations, data-residency,
governance, knowledge and skills without moving their counts. Each
suite's Cost line and the readme's table now match the boxes they hold,
752 in all.
@yannickmonney
yannickmonney merged commit 116b604 into main Sep 26, 2026
57 checks passed
@yannickmonney
yannickmonney deleted the feat/unified-home branch September 26, 2026 17:51
larryro added a commit that referenced this pull request Sep 27, 2026
Rebasing fix/eval-0926-s3 onto main (#3492, d563b5b): main had also
given the assignee chip role="img", so the auto-merge left the attribute
twice; and main's TaskAgentRunEntry now takes `assigneeId`, which the
missing-agent tests written before the rebase did not pass.
larryro added a commit that referenced this pull request Sep 27, 2026
Rebasing fix/eval-0926-s3 onto main (#3492, d563b5b): main had also
given the assignee chip role="img", so the auto-merge left the attribute
twice; and main's TaskAgentRunEntry now takes `assigneeId`, which the
missing-agent tests written before the rebase did not pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant