Skip to content

fix(patchy): the starter page gets a centred column with room around it - #763

Merged
allisonmahmood merged 1 commit into
mainfrom
fix/starter-page-layout
Oct 18, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
fix/starter-page-layout

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

Closes #589

New patch repos started with no page layout. Looks set body { margin: 0 } and the patch frame has no border, so the starter's heading sat in the top-left corner and its title field ran the full width of the screen.

Every new repo, at every tier, now starts with its own src/styles.css, holding the layout picked from the mocks on the issue (option A):

/* Layout only: colours, fonts and element styles come from the look. */
main {
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: calc(var(--look-space, 8px) * 6) calc(var(--look-space, 8px) * 4);
}

It's the same box the look specimen uses. Because it's built from the look's spacing token, a 4px look gets half the room of an 8px one. Tiers 1 and 2 wrap App in <main> and import the stylesheet on the line after the look. Tier 0 wraps its content in <main> and links the stylesheet after the look. The single-file build inlines it beside the look. Looks, the patch shell and existing repos are unchanged.

The patchy-look project skill now says the main rule is starter scaffolding, to be adapted to the brief's layout. Other CSS in that file still counts as the patch's own style.

Hit every surface

  • The CLI: the README's generated-repo layout list and its look section name src/styles.css. The patchy-look project skill under packages/sdk/skills has the new line. No command, flag, exit code or global skill changed, so ADR-0004 and the skills lock are untouched.
  • Vocabulary and product shape: the starter description in docs/product.md names the stylesheet. No new term.
  • Not affected: the wire contract, the dev loop (scenario patches bring their own src/ and index.html), migrations, company resources, served pages (the shell and frame are unchanged), reverse states and the repo layout.

Tests

  • Tier 0 publish test: the real starter's built page still passes validateHtml, wraps its content in <main> and has the layout rule inlined.
  • Tier 1 build test: the layout rule is inlined beside the look.
  • Init test: src/styles.css is among the authored files that refresh preserves.
  • Tests that swapped the look import for import "./styles.css" now delete it instead, so no page imports the stylesheet twice.
  • New unit test: the tier 1 and 2 starters import the look first and ./styles.css next, and wrap App in <main>.

Screenshots

The tier 1 starter, published to a local dev instance. Desktop shots come from pnpm dev shot at 1280×800. Phone shots are 390×844, signed in through the same personas door. The notes list is empty, as it is in a new repo.

Patchy look:

The starter after the change, Patchy look, desktop

Before

The starter before the change, Patchy look, desktop

Linear fixture look, with a 4px spacing token:

The starter after the change, Linear fixture look, desktop

Before

The starter before the change, Linear fixture look, desktop

Phones:

Look Before After
Patchy Before, Patchy look, phone After, Patchy look, phone
Linear fixture Before, Linear fixture look, phone After, Linear fixture look, phone

Built by Claude Opus 5.5 in Claude Code, running in T3 Code; reviewed by GPT 6.1 Sol in Codex

@github-actions github-actions Bot added area:server Touches the server area area:cli Touches the cli area area:docs Touches the docs area size:s Under 100 changed lines labels Oct 17, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review, round 1 (GPT 6.1 Sol, xhigh, in Codex): no findings. Sol ran 17 focused tests, built and typechecked the tier 2 starter with the layout CSS inlined, and test-merged this PR with #729: the merge is clean and the combined assertions still hold. VERDICT: RESOLVED.

Looks zero the body's margin and the patch frame has no border, so the
starter's heading sat in the top-left corner and its title field spanned
the screen. Every new repo now starts with src/styles.css: one layout
rule that centres the page's <main> at 960px, padded from --look-space,
the same box the look specimen uses. Tiers 1 and 2 import it after the
look; tier 0 links it after the look.

Closes #589

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the fix/starter-page-layout branch from f57f237 to fbbb9fe Compare October 18, 2026 12:31
@allisonmahmood
allisonmahmood merged commit f13fa05 into main Oct 18, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the fix/starter-page-layout branch October 18, 2026 12:42
allisonmahmood added a commit that referenced this pull request Oct 19, 2026
…ng Reconnecting (#783)

Release 14's What's new entry, written from \`7694bab\`. It covers
everything merged since release 13's \`through\` (\`c9b8fc4\`), and sets
the \`patchy\` release to \`0.14.0\` (\`packages/patchy/package.json\`
and \`CURRENT_RELEASE\`).

| Change | PRs |
| --- | --- |
| Improved: Tools with server code answer faster | #756, #764, #768,
#769, #771, #772, #773, #775, #778 |
| Improved: Your company's tools and pages open sooner | #759, #761,
#766, #770 |
| Fixed: Tools stop flashing Reconnecting while they load | #755, #776,
#780 |
| Improved: Publishing is quicker | #729 |
| Improved: New tools start with a tidy layout | #763 |
| Improved: Your usual is easier to scan | #721 |
| Fixed: A page that isn't there says what to do | #762 |
| Fixed: A logo Patchy can't read is refused, not a crash | #728 |
| Behind the scenes: richer logs for live data | #758 |

#720 is release 13's own entry, so it's left out.

Made by Claude Opus 5.5 via Claude Code.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli Touches the cli area area:docs Touches the docs area area:server Touches the server area size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(patchy): the starter page sits flush against the viewport edge

1 participant