Repository navigation
fix(portal): patch marks, tiles and Pages get the mockup's colour - #719
Merged
Merged
Conversation
allisonmahmood
force-pushed
the
portal/712-health
branch
from
October 16, 2026 00:38
af67733 to
1bbc5a4
Compare
allisonmahmood
force-pushed
the
portal/color
branch
from
October 16, 2026 00:38
141bcfc to
b047f17
Compare
Owner
Author
|
Review: GPT 6.1 Sol, xhigh, round 1. One finding, fixed in 0e5c3d8.
Sol otherwise found the treatments are documented shell components with no page-level overrides, the added tokens are harmless to the served shell, and contrast passes AA: marks 11.46–15.00:1, |
allisonmahmood
force-pushed
the
portal/712-health
branch
from
October 16, 2026 01:27
1bbc5a4 to
ab21f65
Compare
Marks used the papers' near-white tints, so Home and All patches read grey beside the mockup. They now use stronger --tint-* tokens (and yellow, and pink), tiles carry a larger mark, the card a heading-sized one, New is a yellow tag, and the Pages panel sits on paper with a hard shadow under capitalised group labels. All of it is shell components. Co-Authored-By: Claude Opus 5.5 <[email protected]>
.page-mark-lg came before .page-mark's own rules, which won at equal specificity, so a page's card mark stayed 26x32. It now follows them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
allisonmahmood
force-pushed
the
portal/color
branch
from
October 16, 2026 01:37
0e5c3d8 to
d15b327
Compare
allisonmahmood
added a commit
that referenced
this pull request
Oct 16, 2026
…u when they fail (#720) Release 13's What's new entry, written from `c9b8fc4`, ahead of deploying it. `patchy` and `CURRENT_RELEASE` move to `0.13.0`, so CLIs and patch repos installed before this deploy are told to upgrade. | Change | PRs | | --- | --- | | New: Home puts the patches you use first | #713, #716, #719 | | New: Every patch in one list | #715 | | Improved: Each patch's page leads with Open | #717 | | New: See when your tools are failing | #718 | | Fixed: Everyone has a name | #687 | | Improved: Your company's look is easier to get right | #697, #696, #703, #688 | | Improved: Forms follow your look's error states | #691, #692 | | Improved: Clearer answers when a publish goes wrong | #686, #685, #689 | | Fixed: Your agent's Patchy commands are steadier | #695, #704, #680, #681 | | Behind the scenes: stricter checks on static pages and tools' database requests; malformed requests are logged | #682, #693, #683 | | Behind the scenes: usage numbers count every publish, sharing change and restore | #698, #699, #700, #690 | | Test and tooling only, no line | #705, #702, #701, #694, #684, #607 | Made by Claude Opus 5.5 in Claude Code, running in T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>
1 of 2 tasks
allisonmahmood
added a commit
that referenced
this pull request
Oct 19, 2026
…803) ## What changed A reviewer can't see a UI or flow change without checking out the branch and running it. Now two `pnpm dev` commands put the change in the PR body, before and after: - **`pnpm dev compare <person> <path>...`** takes full-page PNGs of each page at each width on both sides. Patch frames grow to their content. - **`pnpm dev film <person> <flow>`** records a Playwright flow on both sides and joins the takes side by side. - **`--pr <number>`** puts the section in the PR body and uploads its files. A re-run replaces only its own section. Both sides run on **evidence instances**: throwaway clones at the base and at `HEAD`, each on fresh scenario data, never the developer's own instance. So the uploads only ever hold scenario data, and a flow that writes runs the same every time. This builds on the prototype in #726. Closes #725 ## Look at **1. This PR's own evidence, published with `--pr`.** This branch changes no page, so both runs use `--base df65c5b`, the commit before the Home redesign (#713–#719). <!-- patchy-dev:compare:allison --> #### Before and after, as Allison Mahmood (admin) Before is `df65c5b` (--base) and after is `ae4fe0f` (dev/725-compare-film), both on the `brightline` scenario, from `pnpm dev compare`. ##### `/` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/patches` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | - Before at 1280px answered 404; 1 browser error(s): `Failed to load resource: the server responded with a status of 404 (Not Found)`. - Before at 390px answered 404; 1 browser error(s): `Failed to load resource: the server responded with a status of 404 (Not Found)`. ##### `/brightline/kudos` **1280px, after**  No visible change at 1280px. | Width | Before | After | | --- | --- | --- | | 390px | No visible change |  | <!-- /patchy-dev:compare:allison --> <!-- patchy-dev:film:find-a-patch --> #### Flow `find-a-patch`, as Allison Mahmood (admin) Before is `df65c5b` (--base) and after is `ae4fe0f` (dev/725-compare-film), both on the `brightline` scenario, from `pnpm dev film`. - Before: stopped at "Search Home for kudos" after 10.2s: `locator.fill: Timeout 5000ms exceeded.` - After: finished in 6.9s Before is on the left, after on the right. https://github.com/user-attachments/assets/63035395-64f3-4985-b633-94a351979f5c <!-- /patchy-dev:film:find-a-patch --> **2. Cleanup holds however a run ends.** Each run takes both instances down and deletes their data on success, on failure and on Ctrl-C. Before this branch, Ctrl-C skipped that: Playwright and embedded-postgres each hook SIGINT and exit the process before Effect's finalizers run. Browsers now launch with Playwright's handlers off and close with their scope, and the supervisor (with embedded-postgres) only loads in `supervise`. Details are under How it was verified. ## How it was verified - **Focused tests**, `pnpm exec vitest run scripts/dev` (10 files, 48 tests). The new ones cover: - the section's insert and replace: before a final "Made by" paragraph, at the end when there is none, in place among other keys, ignoring markers and "Made by" inside code fences, and refusing duplicate or unclosed markers; - the layout per width, what each section attaches (an identical "before" is left out), and page errors quoted so their text can't name a file; - attachments only from the run's own folder, and which references a partial publication left as local paths, read from the real section rather than a fenced example of one; - the lock: a second run refused and the lock freed afterwards, six runs starting together never giving two holders, a dead run's entry deleted, and `down` refused while a run holds it; - the reuse-or-move decision for a clone, and shot filenames for paths that slug alike. - **Real runs** on a shared Linux machine: | Run | Took | What it showed | | --- | --- | --- | | `compare ada /` on `team`, from cold (clone, install, up, both sides) | 44 s | both instances down afterwards, nothing left running | | `compare` on five `brightline` pages at two widths | 1 min 59 s | patch frames grown to their content (the tier 0 brief to 3,398 px, tier 1 Kudos to 2,594 px); the four patch pages said "No visible change" | | `compare … --pr 803`, above | 1 min 21 s | 10 files attached, section replaced in place | | `film … --pr 803`, above | 1 min 3 s | 0.25 MB side by side, the base take stopping in red | | both again after the last push, from cold (`pnpm dev down` had deleted the checkouts) | 1 min 54 s and 1 min 5 s | each replaced only its own section, now naming `ce97595`; again at `ae4fe0f` after round 3 | - **Failure paths, run for real:** - **A base before `pnpm dev up` existed** (`--base af2aead`): before unavailable, with "Bringing the before instance up failed (exit 1)." in the section, after only, exit 0. - **A flow broken on this branch:** footage kept, nothing published, exit 1. - **A second `compare` while one ran, and `pnpm dev down`:** both refused at once, naming the running pid. Once the run ended, `pnpm dev down` printed "Removed the evidence checkouts" and deleted them; it keeps the empty lock folder beside them, since deleting it could cost a starting run its entry. In a worktree that never ran one, it still prints "Nothing to take down." and creates nothing. - **Ctrl-C during setup and during capture:** both instances taken down; no state dir, environment, lock entry or process left. Before the fix in this PR, both exited 130 and left both instances running. - **`--pr` checks**, before anything starts: ``` $ pnpm --silent dev compare allison / --pr 803 # with an uncommitted edit Evidence shows commits, and this worktree has uncommitted changes. Commit and push them first, so the PR shows what the evidence shows. exit 1 $ pnpm --silent dev compare allison / --pr 803 # one local commit past the PR PR #803's head is bbe4fe5, but HEAD here is 5bfbf35. Push this branch (or check out the PR's head) so the evidence is of the commit the PR shows. exit 1 ``` The head check also caught GitHub's lag for real: run straight after a push, it refused until the PR showed the new head a few seconds later. - **Partial publication, as far as it goes from here.** gh 2.102 refuses an empty file and an 11 MB one itself, before uploading anything. Through the publishing code, that left the body unchanged, passed gh's error through and exited 1 saying nothing was published. GitHub accepted random bytes named `.png` and `.mp4`, so I couldn't make one upload fail and another succeed. What a partial publication leaves behind is covered by the `notUploaded` test; gh's help says it updates the body with the uploads that succeeded and exits non-zero. That test section was removed from this body afterwards. - **What was uploaded:** only `brightline` scenario data. I read every PNG from an identical run without `--pr` before publishing. Pages show the instance's local hostname. - **`pnpm verify --changed`:** all passed (format, lint, typecheck, synth and 1,967 tests). It skipped the acceptance suites, since only the runner and docs changed. - **Hit every surface:** - **The dev loop:** `docs/DEVELOPMENT.md` (the command table and "Showing a change in a PR") and the `patchy-dev-loop` skill. The seed and the vitest template are unchanged. - **The evidence skill:** `pr-evidence` gains `compare` and `film` and loses the `shot` caveat. The throwaway-checkout recipe moved to Command output until `transcript` (#792) lands. - **Vocabulary:** "evidence instance" is defined in DEVELOPMENT, beside the runner's other terms; no context glossary covers the runner. - **Reverse states:** `compare` and `film` make the evidence checkouts, and `pnpm dev down` deletes them. A run's lock entry goes when it ends, and the next run deletes a dead run's entry. - **Doesn't apply:** the wire contract, the CLI in `packages/patchy`, migrations, company resources, served pages and the repo layout. - **Reviewed by GPT 6.1 Sol** over three rounds. Round 1 had 1 blocking and 4 should-fix findings; rounds 2 and 3 had no blocking ones, with 2 and 1 should-fix. All are fixed; the summaries are in the comments. - **Not checked:** macOS; a real partial upload; a non-Claude harness reading the skills. - **Done means:** #725 has no Done means section. Its spec's tests and docs are covered above, and this body's two sections show both commands working. ## Release impact Tick exactly one. - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — dev tooling and docs; nothing ships to production - **What does a revert leave behind?** Evidence checkouts under `$XDG_DATA_HOME/patchy-dev/<label>.evidence/`, which the older `pnpm dev down` doesn't know to delete (`rm -rf` them), and evidence sections already in PR bodies. - **Does the release before it still work with that?** Yes. Nothing here runs in production. Made by Claude Opus 5.5 in Claude Code, running in T3 Code. --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #718. It ships with the rest of the stack.
Tested on the real instance, Home and All patches read grey next to the mockup. Patch marks used the papers' near-white tints (
--paper-blue,--paper-green,--paper-amber), so no mark ever stood out, and the Pages panel and its group labels were flat.Fix
All of it is shell components, so every page that shows a patch picks it up.
--tint-green,--tint-blue,--tint-amberand--tint-pinktokens, the mockup's, stronger than the papers.monokeeps highlighter yellow as one of five tints picked from the name.mono-lgorpage-mark-lg, viapatchMark(name, tier, true).tag-new, a yellow tag, on Home and in All patches.side-panelsits on paper with the tiles' hard shadow. Group labels use a newshelf-label(small, capitalised, muted), replacing plain supporting text.ui-consistencydocuments the tints, sizes,tag-newandshelf-label.Verified
pnpm dev up brightline: Home, All patches and a card render the mockup's colours with no console errors.Release impact
Surfaces
ui-consistency: not touched.Part of #707.
Made by Claude Opus 5.5 in Claude Code, running in T3 Code.