Skip to content

feat(admin): Add peer — inline card info under the clicked agent (CLEAN-94) - #85

Merged
maksymhryzodub-prog merged 4 commits into
fix/CLEAN-90-peer-id-and-descriptionfrom
feat/CLEAN-94-add-peer-inline-info
Sep 16, 2026
Merged

maksymhryzodub-prog merged 4 commits into
fix/CLEAN-90-peer-id-and-descriptionfrom
feat/CLEAN-94-add-peer-inline-info

Conversation

@maksymhryzodub-prog

Copy link
Copy Markdown
Contributor

Summary

  • The Add peer preview rendered at the bottom of the candidate list — under the fold with ten agents, so clicking a row looked like a no-op.
  • Each candidate row is an accordion now: the card preview and the Connect button expand directly under the clicked agent; clicking again collapses.
  • Every selectable row carries an Info pill with a chevron (rotates when open) so it is obvious the row is clickable and which one is expanded; connected rows keep the ✓ connected marker.
  • The preview-before-Connect step itself is unchanged on purpose (spec decision from CLEAN-74).

Test plan

  • Add peer with 10+ candidates: click a mid-list agent — the card opens right under it, no scrolling
  • Click the same row again — it collapses; click another — the first closes, the second opens
  • Connect from the expanded panel — toast, modal closes, peer appears in the tree
  • Connected candidates stay non-clickable with the ✓ marker
  • cd admin && bun run typecheck (run: green)

Jira: https://dreamvention.atlassian.net/browse/CLEAN-94

🤖 Generated with Claude Code

maksymhryzodub-prog and others added 4 commits September 16, 2026 16:07
The Add peer preview rendered below the whole candidate list — under
the fold with ten agents, so selecting looked like nothing happened.
Each row is an accordion now: the card and Connect button open right
under the click, and an Info pill with a chevron says the row is
clickable and which one is open.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…AN-91)

DateTimeAgo stacks the absolute date over the relative one, which
wrapped awkwardly after the "card read" label and inside the feed's
meta line. New formatTimeAgo renders a single relative phrase with the
full date in the tooltip.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… helper (CLEAN-91)

Same useTimeAgoIntl the stacked DateTimeAgo already uses, so the
wording matches and the label keeps ticking without a re-render;
drops the formatTimeAgo duplicate added one commit earlier.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0.3.51 is already tagged; a matching tag would silently skip the
release run.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@maksymhryzodub-prog
maksymhryzodub-prog merged commit 8b437c5 into fix/CLEAN-90-peer-id-and-description Sep 16, 2026
1 check passed
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