Repository navigation
feat(patchy): look preview shows the Patchy look when the company has none - #697
Merged
Merged
Conversation
allisonmahmood
force-pushed
the
fix/595-compare-frames
branch
from
October 15, 2026 20:56
5068834 to
f2db870
Compare
… none With no company look, `patchy look preview` refused and `--compare` showed the candidate alone, though GET /api/look already carries the Patchy look that stands in. Preview now shows that look, labelled as such, in both cases. Co-Authored-By: Claude Opus 5.5 <[email protected]>
allisonmahmood
force-pushed
the
fix/593-look-preview
branch
from
October 15, 2026 21:04
602e07e to
1171b12
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]>
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 #696
With no company look,
patchy look preview(no folder) refused with exit 1, and--compareshowed the candidate alone. YetGET /api/lookalready returnspatchyLook, the look the company's tools actually render while it has none. So an admin couldn't compare a first look against what people see today, and the skill's advice to preview the company's look failed in a company without one.Preview now reads
patchyLookwhencurrentis null:patchyLookcarries none, so the masthead falls back to the brief's heading as a wordmark.patchy look previewwith no folder renders that single pane, exit 0, and the file passespatchy validate.--compareframes the candidate beside it, and the candidate pane no longer carries a "no look yet" note.--jsonshape{ ok, path, failures, warnings? },failureslisting only the candidate's publish failures, a candidate alone previewing offline with no request, and--comparewithout a folder failing locally before any request. A response with neithercurrentnorpatchyLook, which the server never sends, still gets the local refusal.No API, server, generation or renderer change.
PaneandpreviewPageare reused as they are.It works
Run by hand against a
pnpm dev up teamenvironment (Acme Co, no company look), through its CLI, with each file opened offline in Playwright at 1280×720:patchy look preview --jsonexited 0 with{"ok":true,…,"failures":[]}. The page is labelled "The Patchy look" with the note, its wordmark is "Patchy's look", it has no logo<img>, and its full-page screenshot is 1280×2961.patchy validateon it returned{"ok":true,"warnings":[]}.patchy look preview linear --compare --jsonexited 0 withfailures: [], and wrote two frames titled "Candidate" and "The Patchy look", the second with the note. The full-page screenshot is 1280×3611 with both whole looks (frames 2651px and 3611px). No requests.patchy look publish duolingo, the same--compareshows "Candidate" beside "Revision 1, the company's look", as before.Tests, in
packages/patchy/src/cliLook.test.ts:look preview --jsonexits 0 with{ ok: true, failures: [] }. The file shows "The Patchy look" and the note, has nodata:image/svg+xml, and passesvalidateHtml.look preview <dir> --comparewrites frames "Candidate" and "The Patchy look".--comparewithout a folder still exits 1 with no request. The existing company-look and offline-candidate cases are unchanged.commands.ts.cliLook,lookPreviewandskillLockvitest pass 13/13,look-preview.spec.tspasses 6/6 after a fresh build, and lint, prettier and the typechecks are clean.pnpm verifyis queued behind the machine's shared lock; CI is the gate.Surfaces
dirargument,--compareand the command description name the Patchy-look fallback. These are the onlycommands.tsedits, all insidelook preview.--compareparagraph (the Patchy look stands in, labelled, no logo), thefailuressentence, the exit-1 paragraph (only--comparewithout a folder), and the--compareflag line.--jsonshape and exit codes are unchanged; only the no-look behaviour moved.docs/product.md's specimen paragraph, and the comment on the browser-tier compare spec (comparing needs an instance, not "a current look").patchyskill, "Changing the look":--compareshows the candidate beside the company's look, or the Patchy look when there is none.skills-lock.jsonhash refreshed.Closes #593
Made by Claude Opus 5.5 in Claude Code, running in T3 Code.