Repository navigation
Inbox F1: Project Overview page - #2775
Conversation
…ute) projectOverviewGet returns running chats and recent ideas/merged PRs for the Inbox F1 Project Overview page; GET /api/projects/:projectId/overview. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move composer state and the Instant/task start out of useProjectChatState into useNewChatComposer, which returns what it started and never navigates. The chat page keeps opening the new chat; the Project Overview task box will reuse the same start without leaving the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ns, Recently and a task box New lazy-loaded page at /projects/:id/overview, first in the project nav on desktop and phone. Running now and Recently come from the aggregated overview read (refreshed by project socket events); Budgets reuses the composer's usage model; Automations reuses the Automation page's model and fix button through a new one-line AttentionLine. The task box is the real new-chat composer and start path; sending stays on the page with a receipt and an optimistic Running now row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…omposer collapse Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Merging this PR will not alter performance
Comparing Footnotes
|
… to one row The composer measured its height only when its text changed, so a box first measured while its row was narrower kept a wrapped placeholder's height. It now re-measures on width changes. While folded, attach waits in the To row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ox refolds, accessible budgets
- Running now ranks chats waiting on the viewer first and reports
waitingOnViewerTotal, so the cap never hides the page's one exception
('7 more running · 2 waiting on you').
- Composer folds on an outside tap or a completed send instead of on blur
(iOS does not focus tapped buttons); the success receipt is transient;
receipt live regions are persistent; the text box has a name.
- Budgets tiles speak the usage left; failing automations count in red with
a secondary Resume; compact idea rows in Recently.
- Merged PR links must be https; global profile names only for the task
creator's own profiles.
- Performance: index for newest merged PRs (migration 0246), a lighter
recent-ideas read (11 measured round trips), no socket refetch on a
hidden tab, ResizeObserver work deferred to the next frame.
- Tests: nav order on desktop and phone, round-trip budget, query plan,
automation fix, Recently links, hidden-tab, fold-after-send.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Playwright visual audit — Project Overview (375×667 and 1280×800, dark)Spec: Normal project (5 running, one waiting on you; 5-hour window at 38%; 1 failing automation)Stress: 12 running (3 waiting on you, 2 past the cap), account at 6% of its week, two failing automations, very long titles and unbroken namesQuiet, empty projectAfter sending a task (no navigation; receipt + new Running now row; phone box folds back to one row)Failed start (error in the receipt line, text kept)Phone task box unfolded on focus
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@coderabbitai review |
Action not completed
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1-inbox-abzqvb # Conflicts: # apps/api/src/index.ts # packages/operations/src/index.ts
The app-wide prompt in AuthProvider used bg-surface-elevated, a class no theme defines, so it rendered transparent over whatever sat at the bottom of the page. Staging2 showed it over the Overview task box. Use the Toast's glass-surface and shadow-dropdown. The Overview audit gains a GitHub-reauth failed-start scene that asserts the prompt paints a background (red against the old class). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Staging verification — staging2 (sammy2.party), deploy run 43816025863 on 9488f63Signed in by workload identity as the staging2 agent user, on a fresh Artifacts-backed project with a Claude Code profile, and drove the real UI with Playwright:
I opened and reviewed every image.
GitHub sign-in prompt after the fix (local audit, mocked
|
|



Summary
Inbox slice F1 (SAM task
01M7GZW4C52GAKVN3B57ABZQVB, spec idea01M7G03ZCQ6TM6CMEYDRKQ8ST9§4.2/§6): the Project Overview page at/projects/:id/overview, first in the project nav on desktop and phone. Not the landing page yet (index still opens chat) and no Needs you / brief — those are F2/I.ProfileUsageAvatar) per account the project's profiles run on. Words only for exceptions, naming the window ("Personal Max: Weekly window · 6% left · resets 2d 4h").AttentionLine, sharingAttentionFixwithAttentionPanel), then the next scheduled run.IdeaRow) and 3 most recently merged PRs (GitHub links).ChatInputwith the profile picker and run-account control). Sending does not navigate: the box clears, a receipt line reads "Started: <title> · Open chat", and the task appears in Running now at once. A failed start shows "Couldn't start: " in the same line.Implementation notes
projectOverviewGetinpackages/operations/src/project-overview.ts+GET /api/projects/:projectId/overview. Measured round trips: 10 D1 + 1 Durable Object = 11 (membership 1, running 1 withCOUNT(*) OVER (), merged PRs 1, recent ideas vialistRecentIdeasWithDerivedStatus≤ 7 + 1 DO), pinned by the teststays within the dashboard round-trip budget…with every evidence read firing; budget 20. Each section fails on its own intounavailable; one malformed row is skipped and logged (rule 50).running.waitingOnViewerTotalis returned, so the 5-row cap never hides them; the page says "7 more running · 2 waiting on you".pull_requests(project_id, state, merged_at)so the newest merged PRs are read from an index, not by sorting a project's history (query-plan test asserts the index and no temp B-tree; proven red without it). Numbered 0249 to avoid 0242–0248 claimed by feat: run deployment builds in Cloudflare Containers (phase 3) #2721, fix(api): atomic first-superadmin election without demotion (replaces #2753) #2772 (0246), Inbox backend: asks table, shared inbox operations and REST (slice A) #2776, Inbox slice G: request_human_input questions become asks rows #2780 (0247) and Inbox slice E: SAM files system error items #2781 (0248).useProfileUsages, which the task box already loads for its own ring (zero extra requests); Automations readsuseAutomationData(shared cache with the Automation page).useProjectChatStateintouseNewChatComposer(pure move, own commit594acda38).startNewChat()returns what it created and never navigates; the chat page still navigates exactly as before (86 existing chat-page tests unchanged and green). Effects that react to a new session on the chat page (useProvisioningTracker,useComposerPrefill,useAvailableCommands(sessionId), thesession.createdsocket handler) are not mounted on the Overview; no global listener navigates onsession.created.refetchIntervalthat stops on a hidden tab. A just-started task is shown optimistically until the read lists it (TTL 2 min).OverviewLayout), so crossing the breakpoint never remounts the composer. Phone: one column (Running now, Budgets, Automations, Recently) with the task box pinned; it is one row while empty and unfocused (collapseToolbarWhenIdle). Desktop: widemaincolumn (Running now, Recently, task box pinned) and arail(Budgets, Automations). F2 adds brief + Needs you to the top ofmainand moves Running now/Recently into the rail — a slot change.lazyNamed).AuthProvider) usedbg-surface-elevated, which no theme defines, so it rendered transparent over the bottom of every page (here, over the task box). It now uses the Toast'sglass-surface+shadow-dropdown(cd0e3db).Validation
pnpm lint(full, exit 0)pnpm typecheck(full, exit 0)pnpm test— web unit 413 files / 5274 tests pass; API operations+routes 292 files / 4198 pass (2 skipped); overview op tests 12/12; full suite runs in CIfetch(5), budgets (6), composer collapse (5); discrimination verified (see below)Staging Verification (REQUIRED for all code changes — merge-blocking)
Staging Verification Evidence
staging2 (sammy2.party), deploy run 43816025863 on 9488f63: all jobs green, smoke tests included. Full write-up and screenshots: #2775 (comment)
/overview, the box cleared, the receipt read "Started: … · Open chat", and Running now showed Starting · F1 Overview Check. The server read listed the session within 4 s, with one row for it on the page.AuthProviderused an undefinedbg-surface-elevated), fixed in cd0e3db. That fix is a one-class style change, verified locally against the built CSS (new audit scene, red against the old class); staging2 was then held by other slices, so I did not redeploy for it.UI Compliance Checklist (Required for UI changes)
UI Screenshot Evidence
All images: #2775 (comment)
Surface: Project Overview page (normal, stress, quiet)
Surface: Overview task box (receipt, failed start, phone fold)
Surface: GitHub sign-in prompt (app-wide, over the task box)
401 GITHUB_REAUTH_REQUIREDstart failure with the real long message, over the normal stress project with text in the task box; staging2 showed the real failure.Surface: Project navigation (Overview first)
AppShell.test.tsx)AppShell.test.tsx, which asserts the rail and drawer order.End-to-End Verification (Required for multi-component changes)
Data Flow Trace
ProjectOverview(apps/web/src/pages/project-overview/index.tsx) →useProjectOverview→projectOverviewQueryOptions→getProjectOverview(lib/api/project-overview.ts) →GET /api/projects/:projectId/overview(apps/api/src/routes/project-overview.ts) →projectOverviewGet(packages/operations/src/project-overview.ts):authorizeProjectOperation→readRunning(D1session_summaries⨝tasks⨝agent_profiles, project-scoped join),readRecentIdeas(listIdeasWithDerivedStatus),readMergedPullRequests(pull_requests).OverviewTaskBox→useNewChatComposer.startNewChat→submitTask/startInstantChatSession(lib/api) → existingPOST /api/projects/:id/tasks/submit/ Instant start → returns{sessionId, taskId}→ receipt +addPendingStart(optimistic row) + invalidate overview read → server row replaces it once the chat index lists it.session.*events →scheduleRefresh→ invalidate overview query.Untested Gaps
None known. The full path (UI → submit → task runner → real agent → Overview read) was exercised on staging2; see Staging Verification Evidence.
Post-Mortem (Required for bug fix PRs)
N/A: not a bug fix
Specialist Review Evidence (Required for agent-authored PRs)
needs-human-reviewlabel added and merge deferred to humanCodeRabbit Review Evidence (Required for agent-authored PRs)
CodeRabbit Notes
Requested at 02:31:41Z by applying the
coderabbit-reviewlabel when the PR was marked ready (the "Request CodeRabbit review" workflow job passed). CodeRabbit replied with "Review limit reached — You've used all free OSS reviews for now" and "Action not completed: Review rate limited". No review arrived; per rule 25 the wait ended on the rate-limit reply and the PR proceeds on its remaining gates.Exceptions (If any)
useProjectChatState.tsremains 523 lines (was 729 before this PR's extraction); further splitting is out of scope.Deferred review items (MEDIUM, with reasons):
running.totalby design (it is running; only its row is unreadable).Agent Preflight (Required)
Classification
External References
N/A: no external APIs; internal spec idea
01M7G03ZCQ6TM6CMEYDRKQ8ST9and accepted prototype screenshots (Library/design/project-overview-inbox-2026-11-15/) used as the design reference.Codebase Impact Analysis
packages/shared(overview response types),packages/operations(newprojectOverviewGet),apps/api(new route + mount),apps/web(new page, nav item,useNewChatComposerextraction fromuseProjectChatState,ChatInputreceipt/collapse props,usageWordsnamed windows, automationAttentionFix/AttentionLine, full-bleed route list, command palette).Documentation & Specs
Public docs: new
apps/www/src/content/docs/docs/guides/project-overview.md(+ sidebar entry); API referencereference/api.mddocumentsGET /api/projects/:projectId/overview.Constitution & Risk Check
Principle XI: limits are shared constants with route overrides (
DEFAULT_PROJECT_OVERVIEW_*,MAX_PROJECT_OVERVIEW_LIMIT), poll/debounce/TTL areDEFAULT_*withVITE_*overrides. Risks: the chat page start path moved (covered by unchanged chat tests); project scope in the running query is a join predicate (real-SQL attack + owner control, proven discriminating).🤖 Generated with Claude Code