Skip to content

feat(dashboard): open-worktree dialog control + finished-time parity - #9686

Merged
brennanb2025 merged 3 commits into
mainfrom
brennanb2025/agent-canvas-focus-worktree
Jul 21, 2026
Merged

brennanb2025 merged 3 commits into
mainfrom
brennanb2025/agent-canvas-focus-worktree

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

What

Polish for the pop-out agent dashboard (experimental):

1. Terminal dialog controls

  • Replaced the footer Close button with the standard top-right ✕.
  • Renamed the primary action Focus worktree → Open worktree.
  • Added an open-in-window icon before the label.

2. Card time column — finished-time parity with the left sidebar

  • Finished agents now read time since they finished instead of time since they started, matching the left worktree sidebar exactly (same 4m / 8h bare format).
  • Extracted the sidebar's finished-timestamp logic into a shared helper (agent-finished-timestamp.ts) so the two surfaces can't drift, and threaded finishedAt through the DashboardCard snapshot contract (+ relay validator).

3. Pending-question chip icon

  • Replaced the raw ✋ emoji (rendered per-OS, off the design system) on the amber "needs you" question chip with the lucide MessageCircleQuestion (chat bubble + question mark).

Screenshots

Board — the amber chip now uses the chat-question icon, and the two Idle cards read 33m / 7h since they finished, not since they started (which would be 3h / 9h):

board

Terminal dialog — corner ✕, "Open worktree" with the open-in-window icon, footer Close removed:

dialog

Testing

  • AgentKanbanCard, build-dashboard-snapshot, dashboard-payload-validation, and sidebar activity-summary unit tests pass.
  • Full CI verify (lint + typecheck + test + packaged-CLI smoke) green.
  • Localized string catalog re-synced (dropped the now-unused terminal.close key across locales).
  • Verified live in a dev Electron build via CDP: opened the real pop-out window, published a representative snapshot through the real main→popout relay, and confirmed the rendered board + dialog above. Note: the dashboard data in the screenshots is seeded (the test profile has no live agents); the components, styling, relay path, and behavior are the real app.

Pop-out agent dashboard polish:
- Terminal dialog: replace the footer Close button with the standard top-right
  X, rename the primary action from Focus worktree to Open worktree, and prefix
  it with an open-in-window icon.
- Card time column: finished agents now read time-since-finish (matching the
  left worktree sidebar) instead of time-since-start. Extracts the sidebar's
  finished-timestamp logic into a shared helper so the two surfaces cannot
  drift, and threads finishedAt through the dashboard snapshot contract.
@coderabbitai

coderabbitai Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The dashboard card contract now includes nullable finishedAt data derived from the agent’s latest transition into done. Shared timestamp logic is used by dashboard snapshots and compact sidebar rows. Kanban cards use the completion timestamp for display, equality, and memoization, with updated test fixtures. Dashboard payload validation accepts finite completion timestamps. The terminal dialog now provides an “Open worktree” action, and related locale entries were updated.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description covers summary, screenshots, and testing, but it misses the required AI Review Report, Security Audit, Notes, and checklist formatting. Add the missing required sections from the template, including the testing checklist, AI Review Report, Security Audit, and Notes.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main changes: open-worktree dialog updates and finished-time parity for dashboard cards.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…xture

CI typecheck caught a DashboardCard fixture in dashboard-payload-validation.test.ts
missing the new finishedAt field; also validate finishedAt in the relay guard.
…n icon

The amber pending-question chip used a raw hand emoji (renders differently
per-OS and off the design system); use the lucide chat-with-question icon.
@brennanb2025
brennanb2025 merged commit 6785f9d into main Jul 21, 2026
1 check passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…tablyai#9686)

* feat(dashboard): open-worktree dialog control + finished-time parity

Pop-out agent dashboard polish:
- Terminal dialog: replace the footer Close button with the standard top-right
  X, rename the primary action from Focus worktree to Open worktree, and prefix
  it with an open-in-window icon.
- Card time column: finished agents now read time-since-finish (matching the
  left worktree sidebar) instead of time-since-start. Extracts the sidebar's
  finished-timestamp logic into a shared helper so the two surfaces cannot
  drift, and threads finishedAt through the dashboard snapshot contract.

* fix(dashboard): thread finishedAt through payload validator + test fixture

CI typecheck caught a DashboardCard fixture in dashboard-payload-validation.test.ts
missing the new finishedAt field; also validate finishedAt in the relay guard.

* feat(dashboard): swap pending-question emoji for MessageCircleQuestion icon

The amber pending-question chip used a raw hand emoji (renders differently
per-OS and off the design system); use the lucide chat-with-question icon.
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