paperclip/ui/storybook/stories
Dotta f12bb27bcd
feat: make issue monitors visible across task surfaces (#9783)
## Thinking Path

> - Paperclip is the open source control plane people use to supervise
AI-agent companies.
> - Operators need task execution state to be visible where they read,
reply to, and manage an issue.
> - Scheduled monitor state was easy to miss because it lived in a
description-area card and used inconsistent, mostly static time copy.
> - The task page, composer, retry card, and properties panel therefore
needed one shared monitor-state and countdown language.
> - This pull request adds shared live-ticking time utilities, moves
monitor status into a top-of-page banner and composer strip, and
redesigns the properties row with complete read-only details.
> - The benefit is that operators can immediately understand when an
agent resumes, why it is waiting, and how to act without hunting across
the page.

## Linked Issues or Issue Description

Issue monitors can schedule a future agent check, retry, or wake, but
the UI did not present that state consistently or prominently. The
existing description-area activity card competed with issue content, the
composer did not explain that replying wakes the agent early, compact
properties copy truncated important details, and relative times did not
share a live two-unit formatter.

This change makes scheduled monitor state visible and consistent across
the issue header, reply composer, properties panel, and scheduled-retry
card. Related prior server-side recovery visibility work: #9629
(distinct scope).

## What Changed

- Added shared two-unit monitor ETA/offset formatters and a live-ticking
countdown hook, including compact absolute-time rules for Today,
weekday, and cross-year dates.
- Replaced the description-area monitor activity card with a top-of-page
status banner and added an inline composer strip that explains replies
wake the agent before the scheduled check.
- Redesigned the properties Monitor row as readable two-line copy with
attempt state, due/overdue/cleared wording, click-to-edit behavior, and
a hover/tap details tooltip.
- Adopted the shared two-unit formatting in the scheduled-retry card and
added focused coverage for monitor formatting, state transitions,
visibility, and controls.
- Added the approved wireframe package and published reference:
https://pages.paperclip.ing/pap-14557-monitor-visibility/

## Verification

- `pnpm vitest run ui/src/lib/issue-monitor.test.tsx
ui/src/components/IssueMonitorBanner.test.tsx
ui/src/components/IssueProperties.test.tsx` — 3 files, 74 tests passed.
- `pnpm -r typecheck` — passed.
- `pnpm build` — passed with existing Vite optimization/chunk-size
warnings.
- UX review approved the rendered real components across desktop/mobile,
light/dark, and the scheduled/retrying/due/overdue/cleared/none state
matrix.
- QA passed 6/6 criteria in Chromium, including a live countdown
transition without refresh. Review evidence included the P2 banner
state-matrix screenshot and the P3 properties-row and details-tooltip
screenshots, plus a dark-mode capture.
- `pnpm check:token-gates` currently reports five pre-existing `#9627`
comment literals on `origin/master`; this branch introduces none of
those literals or any new token violation.

## Risks

- Low-to-moderate UI behavior risk: monitor copy and placement change
across several issue surfaces, but all derive from one shared state
builder and focused tests cover the state matrix.
- Countdown rendering wakes once per minute while a visible monitor is
scheduled; the hook is limited to active monitor surfaces and stops when
hidden.
- No database, API contract, migration, telemetry, or authorization
behavior changes.

> For core feature work, check [`ROADMAP.md`](ROADMAP.md) first and
discuss it in `#dev` before opening the PR. Feature PRs that overlap
with planned core work may need to be redirected — check the roadmap
first. See `CONTRIBUTING.md`.

## Model Used

- OpenAI Codex, `gpt-5.6-sol`; context-window metadata was unavailable
in this runtime; reasoning, repository tool use, command execution, and
test execution enabled. Earlier implementation commits were assisted by
Claude Fable 5 and Claude Opus 4.8 (1M context), as credited in their
commit trailers.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [x] All Paperclip CI gates are green
- [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-07-18 14:39:37 -05:00
..
access-profiles.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
action-card.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
activity-feed.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
agent-detail.stories.tsx feat(ui): design-system component convergence — Card/Badge adoption, multiplicative radius ladder, unified list surfaces (#9240) 2026-07-08 17:15:45 -07:00
agent-management.stories.tsx Make ACP the default engine for local adapters (#9238) 2026-07-08 19:05:03 -07:00
agent-skill-row.stories.tsx Skill Studio: three-pane skill IDE with sandboxed test runs (#9241) 2026-07-09 13:08:56 -05:00
agent-skills-edge.stories.tsx Skill Studio: three-pane skill IDE with sandboxed test runs (#9241) 2026-07-09 13:08:56 -05:00
agents-using-skill.stories.tsx Skill Studio: three-pane skill IDE with sandboxed test runs (#9241) 2026-07-09 13:08:56 -05:00
app-activity-lifecycle.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
apps-connect-discoverability.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
apps-connect-name.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
artifacts.stories.tsx PAP-10440: group artifacts by task stacks (#7654) 2026-06-06 10:22:47 -05:00
assigned-backlog-safeguards.stories.tsx Guard assigned backlog liveness (#5428) 2026-05-07 12:25:26 -05:00
blocked-inbox.stories.tsx Show live descendant status in inbox rows (#8876) 2026-07-02 10:22:33 -05:00
budget-finance.stories.tsx [codex] add comprehensive UI Storybook coverage (#4132) 2026-04-20 12:13:23 -05:00
built-in-agents.stories.tsx feat: add built-in summarizer and summary slots (#9713) 2026-07-17 11:03:07 -05:00
chat-comments.stories.tsx fix(server): suppress stale handoff alarms during live continuation (#9695) 2026-07-16 10:49:47 -05:00
control-plane-surfaces.stories.tsx [codex] add comprehensive UI Storybook coverage (#4132) 2026-04-20 12:13:23 -05:00
data-viz-misc.stories.tsx feat(secrets): add user-specific runtime secrets (#8825) 2026-07-05 05:58:20 -05:00
dev-ops-surfaces.stories.tsx [codex] UI and dev ops quality-of-life (#6384) 2026-05-19 15:52:39 -05:00
dialogs-modals.stories.tsx Make ACP the default engine for local adapters (#9238) 2026-07-08 19:05:03 -07:00
document-annotations.stories.tsx feat(secrets): add user-specific runtime secrets (#8825) 2026-07-05 05:58:20 -05:00
document-comments.stories.tsx feat(ui): single-source design tokens, visual regression suite, and theme retune (#9134) 2026-07-07 16:22:16 -05:00
environment-variables-editor.stories.tsx feat(secrets): add user-specific runtime secrets (#8825) 2026-07-05 05:58:20 -05:00
external-objects.stories.tsx External object references across issue surfaces (#8512) 2026-06-23 08:27:19 -05:00
file-viewer.stories.tsx Add workspace file viewer and artifact links (#7681) 2026-06-09 17:17:43 -05:00
fork-skill-flow.stories.tsx Skill Studio: three-pane skill IDE with sandboxed test runs (#9241) 2026-07-09 13:08:56 -05:00
forms-editors.stories.tsx feat(secrets): add user-specific runtime secrets (#8825) 2026-07-05 05:58:20 -05:00
foundations.stories.tsx [codex] add comprehensive UI Storybook coverage (#4132) 2026-04-20 12:13:23 -05:00
frontmatter-panel.stories.tsx Skill Studio: three-pane skill IDE with sandboxed test runs (#9241) 2026-07-09 13:08:56 -05:00
gateways-tab.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
interrupt-handoff.stories.tsx [codex] Clarify interrupt handoffs and scoped wake semantics (#7855) 2026-06-09 21:57:21 -05:00
issue-blocked-notice.stories.tsx feat(ui): explain when a message won't reopen a blocked issue (Rule C, PAP-13554) (#9417) 2026-07-16 02:34:53 -05:00
issue-management.stories.tsx Clarify task-level model overrides in issue properties (#9710) 2026-07-16 15:53:03 -05:00
issue-plan-decompositions.stories.tsx Add accepted-plan decomposition exact-once guards and UI state (#6831) 2026-05-28 23:30:18 -07:00
issue-thread-interactions.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
monitor-surfaces.stories.tsx feat: make issue monitors visible across task surfaces (#9783) 2026-07-18 14:39:37 -05:00
navigation-layout.stories.tsx feat(ui): single-source design tokens, visual regression suite, and theme retune (#9134) 2026-07-07 16:22:16 -05:00
overview.stories.tsx [codex] add comprehensive UI Storybook coverage (#4132) 2026-04-20 12:13:23 -05:00
permitted-vs-installed.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
policies-tab.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
primitives-coverage.stories.tsx feat(ui): single-source design tokens, visual regression suite, and theme retune (#9134) 2026-07-07 16:22:16 -05:00
projects-goals-workspaces.stories.tsx Add cheap model profiles for local adapters (#4881) 2026-04-30 15:32:04 -05:00
routine-detail-c.stories.tsx feat(secrets): add user-specific runtime secrets (#8825) 2026-07-05 05:58:20 -05:00
routine-secrets.stories.tsx feat(secrets): add user-specific runtime secrets (#8825) 2026-07-05 05:58:20 -05:00
routines-list-groups.stories.tsx [codex] Polish routine layout follow-ups (#7858) 2026-06-09 18:55:01 -05:00
runtime-health.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
scheduled-retry.stories.tsx Add issue controls and retry-now recovery (#5426) 2026-05-07 12:23:13 -05:00
search.stories.tsx feat(search): filters, sorting, operators & command-palette parity (#9327) 2026-07-09 19:32:58 -05:00
searchable-select.stories.tsx [codex] Improve reusable workspace selector search (#8597) 2026-06-24 13:21:32 -05:00
secrets.stories.tsx feat(secrets): add user-specific runtime secrets (#8825) 2026-07-05 05:58:20 -05:00
skill-policy-surfaces.stories.tsx feat(skills): open-by-default company skill policy and core UX (#9564) 2026-07-15 11:42:40 -05:00
skills-store-detail.stories.tsx feat(skills): add company skill fork prechecks (#9235) 2026-07-08 14:22:39 -05:00
skills-store-discovery.stories.tsx feat(skills): import skills from projects (#9620) 2026-07-15 18:01:44 -05:00
source-issue-recovery.stories.tsx Enforce durable external-wait liveness (#9373) 2026-07-10 13:21:12 -05:00
source-resolved-fold.stories.tsx [codex] Roll up May 17 branch changes (#6210) 2026-05-17 17:15:06 -05:00
status-language.stories.tsx [codex] Split PR #4692 UI/QoL updates (#4701) 2026-04-28 17:18:58 -05:00
sub-issues-workflow.stories.tsx Add cheap model profiles for local adapters (#4881) 2026-04-30 15:32:04 -05:00
successful-run-handoff.stories.tsx fix(server): suppress stale handoff alarms during live continuation (#9695) 2026-07-16 10:49:47 -05:00
summary-slot-card.stories.tsx feat: add built-in summarizer and summary slots (#9713) 2026-07-17 11:03:07 -05:00
task-watchdog-surfaces.stories.tsx [codex] feat(watchdog): add task watchdog control plane (#8339) 2026-06-19 15:38:52 -05:00
team-catalog.stories.tsx [codex] Add teams catalog extraction (#7550) 2026-06-05 12:55:49 -05:00
test-tab.stories.tsx feat(mcp) [split 7/8]: activate Apps and gateway UI (#9562) 2026-07-14 15:40:08 -05:00
user-secrets.stories.tsx feat(ui): single-source design tokens, visual regression suite, and theme retune (#9134) 2026-07-07 16:22:16 -05:00
ux-labs.stories.tsx Add recovery handoff system notices (#5289) 2026-05-06 06:05:58 -05:00
what-needs-me.stories.tsx feat: add decision training snapshot foundation (#9702) 2026-07-17 12:17:34 -05:00
work-timeline.stories.tsx [codex] Improve work timeline activity story (#9222) 2026-07-08 08:59:24 -05:00
workspace-file-browser.stories.tsx Add workspace file downloads 2026-06-26 06:05:57 -05:00
workspace-service-control-bar.stories.tsx feat(ui): stabilize workspace service controls (#9705) 2026-07-16 21:07:04 -05:00