fix(desktop): sidebar timestamp always-on + slides aside for actions on hover#133
Merged
Conversation
…ons on hover Refines the #127 row trailing slot per operator feedback. Before: idle rows showed the timestamp, active rows hid it, and the 3-dot actions menu lived in its own always-present column. Now one trailing slot holds both — the relative timestamp is visible at rest on every row (active rows keep the left pulsing orange dot as the status cue AND show the age), and on hover/focus the age slides left while the actions menu slides in from the right, both legible at once. Transform/opacity only (the slot reserves the menu's width up front) so the title column never reflows between states; focus-within + data-[state=open] keep it keyboard- and open-menu-stable. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
🔎 Lint report:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Operator feedback on the #127 row design: the relative timestamp should be visible at rest on every session row (not only idle rows, not only on hover), and the hover interaction with the 3-dot actions menu should feel deliberate — the timestamp making way for the menu rather than the two living in separate fixed columns.
What changed
apps/desktop/src/app/chat/sidebar/session-row.tsx: collapsed the separate age column + actions column into one trailing slot. The relative timestamp now renders at rest on every row (active rows keep the left pulsing orange dot as the status cue and still show the age). On hover/focus the age slides left (-translate-x-5) while the actions menu slides in from the right (translate-x-1 + opacity-0 → translate-x-0 + opacity-100, with a slight scale), so both are legible at once. The slot reserves the menu's footprint up front, so it's transform/opacity-only — the title column never reflows between states.group-focus-withinanddata-[state=open]keep the menu visible for keyboard users and while the dropdown is open.How to review
session-row.tsx— confirm transform-only (no width/layout change between rest and hover).isWorking) rows still get the left orange dot and now also show the age.Evidence
Verification
apps/desktop:tsc -b0 errors;vitestchat/sidebar + chat-messages suites — 42 passed.hermes desktop --build-onlysucceeds (this lands in the same rebuild that carries fix(context): live mid-turn context bar + visible auto-compression status #126–feat(gateway): Phase 2 foundations — prompt sender_device param + advertised presence endpoints #131 to the installed app).Risks / gaps
5m/2h/3d) and the slide distance matches the menu width.Collaborators