feat(cards): title on top, one line with a hover pan; notification + time in a foot row #49

Closed
gabrielvidal wants to merge 0 commits from conv-card-layout into main
pull from: conv-card-layout
Owner

Summary

Conversation cards move from three columns (tile | title, notification, tags | cost, week share, time) to the three bands of Gabriel's whiteboard sketch: the title across the card, then tile | two tag rows | cost, then a foot row with the newest notification and the time. The title is now a single line: a longer one fades out at the right edge, and hovering the card with a mouse (or holding it on a phone) pans it to its end and back once. Applies to the list card (drawer, home Running / Finished) and the /conversations grid card.

Key changes

  • components/CardTitle.tsx (new, shared): one-line title, typed in when a card arrives live as before; pans on mouse hover of the card and on a 350 ms touch hold.
  • components/ConversationListElement.tsx: title band, body band (tile, TagRows, $ + week share), foot band (notification line, time). Subagents count, paid-tools chip and local energy are pills in the tag rows.
  • pages/Conversations.tsx: the grid card takes the same bands; its foot holds the lifecycle checks and the time.
  • index.css: .conv-title (mask fade, conv-title-pan keyframes).
  • CLAUDE.md: "A card is three bands".

Key decisions

  • Picked in form conversation-card-layout_u2kkm7: everywhere the card shows; foot row kept with the time alone when there is no notification; faded edge instead of an ellipsis; one pan per hover; long-press pan on phone; extra chips into the tag rows; grid card too.
  • The fade is a CSS mask on every title, with no per-card measurement or ResizeObserver. A title that fits is unaffected unless its last letters land in the final 20 px, where they are slightly faded.
  • The cut is measured only when a pan starts (pointer enter / hold), and the pan overshoots by the fade's width so the last letters are fully readable.
  • The search snippet moved above the foot so the foot is always the card's last row and the completion stamp keeps the bottom-right corner (the foot leaves room for it).
  • In the drawer, a long-press still opens the card menu; the title pan starts under it at 350 ms.
  • The pan is off with the Animations switch and under reduced motion.

Changelog

  • Changed: conversation cards show the title on its own line at the top, tags beside the tile, and the latest notification with the time in a bottom row.
  • Changed: a long conversation title stays on one line and fades at the edge; hover the card (desktop) or hold it (phone) to slide the rest into view.
  • Changed: subagent count, tools cost and energy chips sit with the card's tags.

Test notes

  • npx tsc --noEmit: clean. npx vitest run src/business/conversations: 183 pass, 1 fails (FreshContext.test.tsx › CacheExpiredNotice) — it fails the same way on main without this branch.
  • Mock build (npm run build:mock) viewed on the EVOX2: home desktop + phone, drawer, /conversations grid (screenshots below).
  • Hover pan driven in headless Chromium on a cut drawer title: data-pan set on hover, the text translates, the attribute clears when the animation ends. The touch-hold pan was not exercised on a real phone.
  • Not deployed from the EVOX2: deploy from the Homelab after merge.

🤖 Generated with Claude Code

Screenshots

home-desktop.png
home-phone.png
grid-desktop.png
drawer-pan-mid.png

## Summary Conversation cards move from three columns (tile | title, notification, tags | cost, week share, time) to the three bands of Gabriel's whiteboard sketch: the title across the card, then tile | two tag rows | cost, then a foot row with the newest notification and the time. The title is now a single line: a longer one fades out at the right edge, and hovering the card with a mouse (or holding it on a phone) pans it to its end and back once. Applies to the list card (drawer, home Running / Finished) and the `/conversations` grid card. ## Key changes - `components/CardTitle.tsx` (new, shared): one-line title, typed in when a card arrives live as before; pans on mouse hover of the card and on a 350 ms touch hold. - `components/ConversationListElement.tsx`: title band, body band (tile, `TagRows`, `$` + week share), foot band (notification line, time). Subagents count, paid-tools chip and local energy are pills in the tag rows. - `pages/Conversations.tsx`: the grid card takes the same bands; its foot holds the lifecycle checks and the time. - `index.css`: `.conv-title` (mask fade, `conv-title-pan` keyframes). - `CLAUDE.md`: "A card is three bands". ## Key decisions - Picked in form `conversation-card-layout_u2kkm7`: everywhere the card shows; foot row kept with the time alone when there is no notification; faded edge instead of an ellipsis; one pan per hover; long-press pan on phone; extra chips into the tag rows; grid card too. - The fade is a CSS mask on every title, with no per-card measurement or ResizeObserver. A title that fits is unaffected unless its last letters land in the final 20 px, where they are slightly faded. - The cut is measured only when a pan starts (pointer enter / hold), and the pan overshoots by the fade's width so the last letters are fully readable. - The search snippet moved above the foot so the foot is always the card's last row and the completion stamp keeps the bottom-right corner (the foot leaves room for it). - In the drawer, a long-press still opens the card menu; the title pan starts under it at 350 ms. - The pan is off with the Animations switch and under reduced motion. ## Changelog - Changed: conversation cards show the title on its own line at the top, tags beside the tile, and the latest notification with the time in a bottom row. - Changed: a long conversation title stays on one line and fades at the edge; hover the card (desktop) or hold it (phone) to slide the rest into view. - Changed: subagent count, tools cost and energy chips sit with the card's tags. ## Test notes - `npx tsc --noEmit`: clean. `npx vitest run src/business/conversations`: 183 pass, 1 fails (`FreshContext.test.tsx` › CacheExpiredNotice) — it fails the same way on `main` without this branch. - Mock build (`npm run build:mock`) viewed on the EVOX2: home desktop + phone, drawer, `/conversations` grid (screenshots below). - Hover pan driven in headless Chromium on a cut drawer title: `data-pan` set on hover, the text translates, the attribute clears when the animation ends. The touch-hold pan was not exercised on a real phone. - Not deployed from the EVOX2: deploy from the Homelab after merge. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ## Screenshots ![home-desktop.png](https://git.gabvdl.xyz/attachments/31982450-640f-497f-969a-c56a44805415) ![home-phone.png](https://git.gabvdl.xyz/attachments/4f386462-ab7f-48dd-86fa-c136bb9d72e3) ![grid-desktop.png](https://git.gabvdl.xyz/attachments/67291878-95dd-4a11-a741-c9b6e31512a4) ![drawer-pan-mid.png](https://git.gabvdl.xyz/attachments/50080fdc-f789-4a7d-a360-ab112c349e1e)
gabrielvidal self-assigned this 2026-11-29 16:48:42 +01:00
gabrielvidal added 1 commit 2026-11-29 16:48:42 +01:00
The list card and the /conversations grid card become three bands: the
title across the card, then tile | two tag rows | cost, then a foot with
the newest notification and the time. The title is one line, faded at
the cut edge; hovering the card (mouse) or holding it (touch) pans it to
its end and back once. Subagents, tools and energy chips move into the
tag rows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Author
Owner
Merged into `main` as 2b8385db by the auto-ship batch https://ai-agent.lab.gabvdl.xyz/conversation/01a2287c-a099-7541-b95d-b0234cea19cb.
gabrielvidal closed this pull request 2026-11-29 19:07:10 +01:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gabrielvidal/ai-agent#49