Repository navigation
For you without stubs, the Inbox retired, a repo picker on Pull requests, and the polish rounds - #553
Conversation
…sts, and the polish rounds - For you: the plan a run wrote (steps per repo, files, tests) in the Give sheet and a plan sheet with Approve and Change; each run's step checklist; Nudge with undo; Is this you? with the tickets it was seen on; the menu count on every screen; the Jira link sheet with three steps and a live wait; no Jira button an older backend can't serve. - The Inbox is gone: its answer and pull request pages live under For you (/foryou/answer, /foryou/pr), its reads in lib/foryou-sources.ts, and every /inbox address redirects. - Pull requests: a repo picker (All repos, then the installation's repos, grouped by owner only when there are several, with search; ?org= still works) on both tabs, and designed states for an older backend and a backend still reading the repos. - Polish: on the design tokens (one type ramp, semantic colors, sentence case), one primary button, code shown as code, old rows folded with Dismiss all, copies under one row, a rail that never contradicts itself, the accounts card with one plain status per account.
| Old, probably abandoned <span className="font-normal tabular-nums text-fg-muted">{stale.length}</span> | ||
| <span className="ml-auto font-normal tracking-normal text-fg-muted">idle over {STALE_DAYS} days</span> | ||
| </summary> | ||
| <div className="flex items-center justify-between gap-3 px-4 py-2 text-xs text-fg-muted"> |
There was a problem hiding this comment.
💬 FYI: Keyboard shortcuts act on rows hidden inside the closed 'Old, probably abandoned' fold (bug, not verified)
The j/k/D/H handler (around line 314) collects every [data-fy-row] in the DOM. The stale rows are rendered inside a <details> that is closed by default, so they are in the DOM but not visible. Pressing j past the last fresh row moves focus onto a hidden row: focus() and scrollIntoView do nothing there, so the page looks stuck. Pressing D or H then calls .click() on that row's hidden Done or Snooze button. A click on a hidden element still fires, so the user marks an item they cannot see as done, and a toast names it. Before this PR no rows sat in a closed fold, so the handler did not need to handle this.
FYI, not a block: on the whole picture this is not a named correctness, security or data-loss problem to hold the merge on.
| export function WaitingRow({ w }: { w: WaitingItem }) { | ||
| export function WaitingRow({ w, onNudge, onUnnudge }: { w: WaitingItem; onNudge?: (w: WaitingItem) => void; onUnnudge?: (w: WaitingItem) => void }) { | ||
| const sent = w.nudge?.sent ?? null; | ||
| const to = w.nudge ? w.nudge.to : w.next.who; |
There was a problem hiding this comment.
💬 FYI: Nudge button still shows when the backend sent no nudge data (correctness, not verified)
const to = w.nudge ? w.nudge.to : w.next.who; falls back to the next person when the row has no nudge field, which is what the PR says an older backend sends. The button then shows whenever the row has pr and next.who. Its click POSTs to /api/foryou/nudge, which an older backend may not serve, so the user would get an error toast. That contradicts the description's 'offers no button that would fail'. The e2e fixture at foryou-data.ts:111 has pr and nudge_href but looks like no nudge, so it may be an older-shape row. I could not confirm whether an older backend sends pr on waiting rows. PlanSteps has the same shape: its toggle always shows under a work card, and a 404 only appears as text after the click. If an older backend can lack both endpoints, only show Nudge when w.nudge is present.
FYI, not a block: on the whole picture this is not a named correctness, security or data-loss problem to hold the merge on.
| const to = w.nudge ? w.nudge.to : w.next.who; | |
| const to = w.nudge ? w.nudge.to : null; |
| comment: { words: "Commented", tone: "text-fg" }, | ||
| }; | ||
|
|
||
| export default function PrDecisionPage() { |
There was a problem hiding this comment.
💬 FYI: Near-identical helpers added together (scope, not verified)
dashboard/src/app/foryou/pr/page.tsx adds PrDecisionPage next to AnswerPage (in dashboard/src/app/foryou/answer/page.tsx), added in the same change. Keep one helper with the shared logic (a parameter for what differs) and call it from both places. If the ticket truly needs it, say why on a line Wider than the ticket: dashboard/src/app/foryou/pr/page.tsx: <why>.
FYI, not a block: on the whole picture this is not a named correctness, security or data-loss problem to hold the merge on.
| // it is. Old links and bookmarks land there. | ||
| export default function InboxPage() { | ||
| // An old address: what needs you is on For you. Bookmarks land there. | ||
| export default function InboxMoved() { |
There was a problem hiding this comment.
💬 FYI: Near-identical helpers added together (scope, not verified)
dashboard/src/app/inbox/page.tsx adds InboxMoved next to AnswerMoved (in dashboard/src/app/inbox/answer/page.tsx), added in the same change. Keep one helper with the shared logic (a parameter for what differs) and call it from both places. If the ticket truly needs it, say why on a line Wider than the ticket: dashboard/src/app/inbox/page.tsx: <why>.
FYI, not a block: on the whole picture this is not a named correctness, security or data-loss problem to hold the merge on.
| </Modal> | ||
| ); | ||
| // An old address: approving or merging a pull request is on For you (its query is kept). | ||
| export default function PrMoved() { |
There was a problem hiding this comment.
💬 FYI: Near-identical helpers added together (scope, not verified)
dashboard/src/app/inbox/pr/page.tsx adds PrMoved next to AnswerMoved (in dashboard/src/app/inbox/answer/page.tsx), added in the same change. Keep one helper with the shared logic (a parameter for what differs) and call it from both places. If the ticket truly needs it, say why on a line Wider than the ticket: dashboard/src/app/inbox/pr/page.tsx: <why>.
FYI, not a block: on the whole picture this is not a named correctness, security or data-loss problem to hold the merge on.
| const known = typeof read === "number" && typeof total === "number" && total > 0; | ||
| const share = known ? Math.min(100, Math.round((read! / total!) * 100)) : 0; | ||
| return ( | ||
| <EmptyState testId={testId} icon={<ReadingIcon />} title="Pull requests is being set up"> |
There was a problem hiding this comment.
💬 FYI: Near-identical helpers added together (scope, not verified)
dashboard/src/app/prs/scope.tsx adds ReadingIcon next to UpdateIcon, added in the same change. Keep one helper with the shared logic (a parameter for what differs) and call it from both places. If the ticket truly needs it, say why on a line Wider than the ticket: dashboard/src/app/prs/scope.tsx: <why>.
FYI, not a block: on the whole picture this is not a named correctness, security or data-loss problem to hold the merge on.
|
💚 Post-merge health check passed: the deploy of
|
Summary
For you without stubs, the Inbox retired, a repo picker on Pull requests, and the two polish rounds, built on the design tokens. The backend for the new parts is CoderHelm/coderhelm-platform#994; on an older backend each part says it arrives with the next update and offers no button that would fail.
Changes
/api/foryou)./foryou/answerand/foryou/pr, its reads arelib/foryou-sources.ts(used by For you's older-backend view), and/inbox,/inbox/answer,/inbox/prand any other/inbox/*address redirect (the query is kept). The phone bar is For you, Runs, PRs, Chat, Menu; the phone docs speak of For you only.?repo=stays in the address and?org=still works. A 404 backend says it isn't available on this version yet; a backend still reading says so with progress. No zero counts or blank boxes.src/app/foryouis on the tokens (held by the UI lint): row titles 15px, meta 13px, group headers as SectionHeadings in sentence case, rail numbers 18px and quiet words when there's nothing to count. One primary button (the top row). Code in row text shows as code. Rows idle over 30 days fold into "Old, probably abandoned" with Dismiss all; copies of one thing sit under one row. The accounts card has one plain status per account and small secondary actions. The older-backend notice is a slim banner.Verification
npm run lint(with the UI lint) andnpm run typecheck: cleanforyou-real(plan, steps, nudge, count),foryou-polishandforyou-polish2(sizes and widths, nothing open at rest, no sideways scroll, no zero tiles; type and buttons; old rows and copies; accounts card states; the link sheet; an older backend with no Jira button and no 404 toast),inbox-redirects(every old address),prs-scope(picker contents with no PR data, filtering both tabs,?org=, alignment, 404 and empty backends)check:links(none broken),check:outputtext_guard.py --texton this description and the changed docs: clean