Skip to content

For you without stubs, the Inbox retired, a repo picker on Pull requests, and the polish rounds - #553

Merged
coderhelm[bot] merged 1 commit into
mainfrom
for-you-next
Dec 6, 2026
Merged

coderhelm[bot] merged 1 commit into
mainfrom
for-you-next

Conversation

@nambok

@nambok nambok commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

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

  • The real plan: the Give sheet shows the plan a ticket's newest run wrote. A "Draft a plan first" run waits in CoderHelm asks you with Review plan, which opens the plan as written (steps per repository, files, tests) with Approve and Change. Each run at work has a step checklist.
  • Nudge: reminds the one person a pull request waits on, as a GitHub comment that says it's from you, once a day; the row then shows it was sent, with Undo.
  • Linking: Is this you? names the tickets the account was seen on. Link opens a sheet with three steps, the code with Copy, and a live "Waiting for Jira…" that turns into "Linked as …". An older backend shows "Arrives with the next update" and no button.
  • The menu count is read with the shell on every screen (one read of /api/foryou).
  • The Inbox is retired: its answer and pull request pages are /foryou/answer and /foryou/pr, its reads are lib/foryou-sources.ts (used by For you's older-backend view), and /inbox, /inbox/answer, /inbox/pr and 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.
  • Pull requests: the "All orgs" dropdown is a repo picker on List and Overview: All repos, then the installation's repos (grouped by owner only with two or more owners, with search), anchored to its button. ?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.
  • Polish: everything under src/app/foryou is 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.
  • Docs: the For you page (plan, steps, Nudge, linking, the count), the phone page, and the Pull requests pages, with screenshots taken again from invented data.

Verification

  • npm run lint (with the UI lint) and npm run typecheck: clean
  • Playwright, the full suite on the static build: every test passes. New: foryou-real (plan, steps, nudge, count), foryou-polish and foryou-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)
  • Docs: build, check:links (none broken), check:output
  • text_guard.py --text on this description and the changed docs: clean

…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.
@nambok nambok added the ch-review CoderHelm reviews this pull request label Dec 6, 2026

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved with notes e0fba3c (merged)

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">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 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.

Suggested change
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() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 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() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 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() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 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">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 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.

@coderhelm

coderhelm Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

💚 Post-merge health check passed: the deploy of af77b70 completed and stayed green for the full 15-minute watch window (no new failures vs. the pre-merge baseline).
Auto-merge

  • ✅ CoderHelm approved
  • ✅ CI green
    The rest is in the pull request description.

@coderhelm
coderhelm Bot merged commit af77b70 into main Dec 6, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant