Skip to content

Home page and docs home: every open pull request, and whose turn it is - #550

Draft
nambok wants to merge 1 commit into
mainfrom
landing-pull-requests
Draft

nambok wants to merge 1 commit into
mainfrom
landing-pull-requests

Conversation

@nambok

@nambok nambok commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

The home page and the docs home now show the pull request pages: the Pull requests overview, the Pull requests list, and answering, approving and merging from a phone. Each one links to its docs page. The pictures come from the dashboard, run on the same made up data its tests use.

"For you" has a marked TODO in both places. It goes there once it ships.

Changes

  • Home page, new section "Every open pull request, and whose turn it is" (src/content/site.ts, src/app/page.tsx). It sits right after "What the platform does":
    • The overview and the list appear as two screens in the same frames and grid as the platform section.
    • The phone gets its own row: two phone screens beside the words.
    • The words live in site.ts, so the Markdown twin and llms.txt say the same thing as the page.
  • Pictures (public/shots/home/prs*, phone-*):
    • A new spec, dashboard/e2e/landing-shots-prs.spec.ts, takes them in the site's light colors from the existing mocks. Like the other landing-shots specs, it only runs with LANDING_SHOTS_DIR set.
    • home-shots.py converts them. It now keeps phone screens at their own width.
    • ProductShot takes a picture made at one width (only).
  • Docs home (docs/content/docs/index.mdx):
    • Three new tiles lead "New in CoderHelm": Pull requests overview, Pull requests, and On your phone.
    • The "Use CoderHelm" path lists both pull request pages.
    • The tiles have two new icons.
  • Quickstart (docs/content/docs/getting-started/index.mdx): one more line under next steps.
  • Tests (e2e/landing.spec.ts):
    • The new heading is added to the order of sections.
    • A new test checks the three parts and their docs links, and that each of the four pictures has alt text and loads lazily.

Verification

  • Site: lint, typecheck, UI lint, build, and the site's end-to-end tests in Chromium and WebKit (42 passed).
  • Dashboard: lint, typecheck, static build, and the new landing-shots spec (4 passed).
  • Docs: unit tests, build, typecheck, check:links (none broken), check:output, and the end-to-end tests (167 passed).
  • Text guard and secret literal checks run locally.
  • Checked by eye in headless Chromium at 1440 and 390 wide. Nothing scrolls sideways.
Desktop Phone
Before Before, desktop Before, phone
After After, desktop After, phone

Docs home, after:

Docs home, New in CoderHelm

The home page gets a section after "What the platform does" for the
Pull requests overview, the Pull requests list and using CoderHelm from
a phone, each linked to its docs page. Its pictures are light versions
taken from the dashboard's own made up data by a new landing-shots spec
(dashboard/e2e/landing-shots-prs.spec.ts) and converted by
home-shots.py, which now also keeps phone screens at their own width.

The docs home lists the three pages under "New in CoderHelm" and in the
"Use CoderHelm" path, and the quickstart's next steps point to them.
A TODO marks where "For you" goes in both places once it ships.
@nambok nambok added the ch-review CoderHelm reviews this pull request label Dec 6, 2026
@nambok
nambok marked this pull request as draft December 6, 2026 03:04

@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: nothing in the change needs fixing.

Why approved: nothing blocks (no required rule broken, no failing check, no shown defect, no unproven critical path); no findings.

Details: PR Overview · 🎯 Risk · 🧪 Verification

PR Overview

Adds a home page section and docs home tiles for the Pull requests pages, with new dashboard screenshots, a spec to capture them, and an image script that keeps phone screens at their own width.

Changes

  • New home page section after "What the platform does" showing the Pull requests overview, the list, and two phone screens, with links to docs
  • New landing-shots spec captures four screenshots from the existing mocks, only when LANDING_SHOTS_DIR is set
  • home-shots.py gains four jobs and a "phone" mode that skips the crop and the resize and writes <name>-750.{webp,avif} plus a PNG fallback
  • ProductShot takes a picture made at one width (only)
  • Docs home gets three tiles and two icons, the "Use CoderHelm" path lists both pages, and the quickstart gets one more next-steps line
  • landing.spec.ts checks the new heading order, the three parts, their docs links, and alt text and lazy loading on the four pictures
  • New home page section "Every open pull request, and whose turn it is", with two desktop screens and a phone row, placed after "What the platform does"
  • The section's words live in site.ts, so the Markdown twin and llms.txt carry the same text

Reviewed Changes

27 changed files.

Show a summary per file
File Description
dashboard/e2e/landing-shots-prs.spec.ts New screenshot spec for the Pull requests pages and the phone views, gated on LANDING_SHOTS_DIR.
dashboard/scripts/home-shots.py Adds the prs, prs-overview, phone-prs and phone-merge jobs and a "phone" mode that keeps the screen's own width.
docs/components/home.tsx Adds the chart, phone and pr icons to the tile icon map.
docs/content/docs/getting-started/index.mdx Adds a next-steps line linking the pull request pages and the phone page.
docs/content/docs/index.mdx Adds two links to the 'Use CoderHelm' path and three new tiles, with a marked TODO for 'For you'.
e2e/landing.spec.ts Adds the new heading to the section order and a test of the new section's links and pictures.
public/shots/home/phone-merge-750.avif New phone merge picture, AVIF.
public/shots/home/phone-merge-750.webp New phone merge picture, WebP.
public/shots/home/phone-merge.png New phone merge picture, PNG fallback.
public/shots/home/phone-prs-750.avif New phone list picture, AVIF.
public/shots/home/phone-prs-750.webp New phone list picture, WebP.
public/shots/home/phone-prs.png New phone list picture, PNG fallback.
public/shots/home/prs-1280.avif New Pull requests list picture, AVIF, 1280 wide.
public/shots/home/prs-1280.webp New Pull requests list picture, WebP, 1280 wide.
public/shots/home/prs-2400.avif New Pull requests list picture, AVIF, larger size.
public/shots/home/prs-2400.webp New Pull requests list picture, WebP, larger size.
public/shots/home/prs-overview-1280.avif New overview picture, AVIF, 1280 wide.
public/shots/home/prs-overview-1280.webp New overview picture, WebP, 1280 wide.
public/shots/home/prs-overview-2400.avif New overview picture, AVIF, larger size.
public/shots/home/prs-overview-2400.webp New overview picture, WebP, larger size.
public/shots/home/prs-overview.png New overview picture, PNG fallback.
public/shots/home/prs.png New Pull requests list picture, PNG fallback.
src/app/page.tsx Adds the PullRequests section and a shared PartTitle, which Platform now uses too
src/components/ProductShot.tsx Builds a one-width srcset when a shot sets only
src/content/shots.ts Adds the only option, a phoneScreen helper and four new shots with alt text
src/content/site.ts Adds the pull-requests section with three cards and a TODO for the "For you" card
src/content/types.ts Adds four ShotIds and an optional also field on cards

I read the changed script and the other parts of the change that it depends on: the new landing-shots spec, shots.ts and the helpers the spec imports. The phone branch in home-shots.py writes <name>-750.* and <name>.png, which matches phoneScreen in shots.ts (width 750, only: 750). The spec's imports (mockOverview, mockInbox, hideDevOverlay, skipLanding, capture, prepare) all exist.

🎯 Risk: MEDIUM (50/100)

  • ██████████ blast radius 100 — ~94 dependent refs; hottest: home.tsx (~25), index.mdx (~25), index.mdx (~25) · cross-repo consumers: home.tsx to 1 repo(s), index.mdx to 1 repo(s)
  • ░░░░░░░░░░ sensitive area 0 — no sensitive areas touched
  • ████░░░░░░ test coverage 40 — 25 source / 2 test file(s) changed
  • ████░░░░░░ size/spread 37 — 236 lines across 27 file(s), spread 78%

🧪 Verification

✅ Ran cd '.' && npm ci --no-audit --no-fund --workspaces=false in the sandbox: passed.
✅ Ran cd '.' && npx --no-install tsc --noEmit -p tsconfig.json in the sandbox: passed.
✅ Ran cd 'dashboard' && npm ci --no-audit --no-fund --workspaces=false in the sandbox: passed.
✅ Ran cd 'dashboard' && npm run typecheck in the sandbox: passed.
✅ Ran cd 'docs' && npm ci --no-audit --no-fund --workspaces=false in the sandbox: passed.
✅ Ran cd 'docs' && npm run typecheck in the sandbox: passed.

Not run here:

  • e2e/landing.spec.ts is an end-to-end spec: it runs against a preview, not in the review's sandbox, so the pull request's CI result stands for it
  • dashboard/e2e/landing-shots-prs.spec.ts: package dashboard has no unit-test script whose runner takes one file, so the pull request's CI result stands for it

Was this review right? Rate it 👍 / 👎 so the reviewer learns · reply @coderhelm re-review or @coderhelm <question>

@coderhelm

coderhelm Bot commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Auto-merge · waiting

  • ✅ CoderHelm approved
  • ⏳ Waiting for the PR to leave draft
    Commit into main. Merges on its own once every item is done.
    Stop auto-merge or comment @coderhelm stop auto-merge.

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