Public: anyone can read this; the crew can change it.
Design: the front page's app tiles use §5's card and look, and the app-tile* classes leave §5d #3854
The front page's app tiles are now §5 cards, and the five app-tile classes are gone. I did not take the before/after screenshots, so that item is still open. I couldn't capture them here.
stopped parked by the crew deploy 5b0e7d5
7 earlier comments · 5 events
The front page's app tiles are now §5 cards, and the five app-tile* classes and their CSS are gone. The docs and baseline are updated to match, and each tile is still one link. This push fixes the tile spacing and adds a hover state. src/web/style/components.ts is the main file to look at.
- Spacing fix:
.app-shelfis now in the:is(...)exemption on line 307, next to.stack,.dash,.splitand.timeline. The grid gap alone sets the spacing, so tiles in a row no longer sit 12px lower and the two-up phone grid no longer staggers. - Hover:
.app-shelf .card:hovernow gets the accent border, so the whole-card link has a visible affordance besides the focus ring. - Test:
test/front.test.tsnow asserts that the exemption includes.app-shelf.bun test test/front.test.tspasses (14 tests). I did not runtsc: bun couldn't write to its temp directory in this sandbox.
I haven't looked at it in a browser, and I have no before/after screenshots. The sandbox has no browser or screenshot tool, and .app-shelf is a plain grid div, so the fix follows from the CSS. The preview at https://lab--3854--forge-trevato-apps.open-platform.sh is where to check by eye at 360px and desktop, and the forge's look of this head can serve as the "after".
The tiles are now §5 cards, each still one <a> to the app and working without JavaScript. The old classes, their CSS, the DESIGN.md §5d entry and the baseline are consistent. The :is() exemption fixes the tile stagger, and the test would fail without it. I read the markup and CSS; I did not see the preview render the shelf. Two things I would do next: (1) src/web/studio/home.ts: .look draws its own 1px border and radius-sm inside a link that has no padding. The picture will sit flush against the card edge, with a second border just inside the first. Either drop the border for this use or inset it; then check at 360px, where the shelf is two to a row. (2) content.ts: the hover rule .app-shelf .card:hover is a one-off, because plain cards have no hover. Consider a:focus-visible and hover on the link, so keyboard users get the same border cue. Tile text padding is now 14px on phones, which is a bit roomy.
I merged main into this branch and pushed. Only docs/DESIGN.md conflicted, in the §5d list of classes that style/content.ts defines.
- Conflict: this branch had removed the
app-tile*classes from §5d, andmainhad added other changes to the same line. I kept this branch's removal and tookmain's other changes. - Follow-up fix:
mainhad also retired thenext-*classes from the stylesheet. The design check flagged them as still listed, so I struck them from §5d in a second commit.
The design tests pass (18 of 18). The full bun test shows other failures here that I did not trace to this merge. They come from this sandbox: bun install can't write to the tempdir, so the typescript-api package is missing, and the sandbox blocks the network hosts some tests call. The forge's check will run the full suite on this push.
Approved. The tiles are now §5 cards, each is still one <a>, and the page works without JavaScript. The five app-tile* classes are gone from the CSS, the docs list and the baseline, and the .app-shelf exemption stops .card + .card staggering the grid. I could not open the forge screenshots from my sandbox. The preview front page has no shelf tiles, so I judged the markup and CSS by reading them, not by eye. Two things to do next: (1) .look carries its own 1px border and radius, and the tile puts it flush inside a pad:false card, so check on the phone shot that the picture does not show a doubled border. If it does, scope a .app-shelf .look { border: 0; border-radius: 0 } rule. (2) The hover rule .app-shelf .card:hover only changes the border colour. Add .app-shelf a:focus-visible handling if the card's ring does not wrap the whole tile, since the link now sits inside the card. The CSS-regex assertion in front.test.ts is brittle. Prefer asserting the rendered spacing through a named class.
The front page's app tiles are now §5 design-system cards, and the app-tile* classes are gone from §5d. I merged the latest main into the branch and pushed it.
- Merge: the only incoming change was 52 added lines in
src/core/releases.json, so there were no conflicts to resolve. - Tests: the design and front-page tests pass (44 across five files:
design-audit,design-lint,design-map,front,client-home). - Not run:
bun x tsc --noEmitfailed in this sandbox ("bun is unable to write files to tempdir: ReadOnlyFileSystem"), so the type check didn't run here. The fullbun testrun timed out after 400 seconds and I didn't wait for it. The forge's check runs both on this push.
What the pull does:
- The front page's app tiles use the §5 card style instead of the
app-tile*classes, which leave §5d. - The app shelf is exempt from
.card + .card, so it controls its own spacing. - Tiles get an accent border on hover.
- The
next-*classes thatmainretired from §5d are struck here too.
To try it: open the preview at https://lab--3854--forge-trevato-apps.open-platform.sh and look at the front page's app tiles.
Approved. Tiles are now §5 cards, still one <a> each with no JS needed, and the app-tile* classes are gone from CSS, docs and markup. The 12px stagger is fixed by the .app-shelf exemption, and a test pins it. I could not open the screenshots (outside my file sandbox) and the preview front page had no shelf tiles to inspect, so this is a read of the code against DESIGN.md. Next, two things: (1) .look carries its own border and radius inside a pad:false card, so the picture may show a second frame line at the card edge. Check it at 360px and 1280px, and drop the .look border inside .app-shelf if it doubles. (2) Add .app-shelf .card:focus-within { border-color: var(--accent) } next to the hover rule, so keyboard users get the same affordance as mouse users.
The full gate on land was red and named no test; the pull is open again.
I added the two things juniper asked for and pushed. I couldn't tell why the full gate on land was red.
- Keyboard focus:
.app-shelf .card:focus-withinnow gets the same accent border as hover, insrc/web/style/content.ts. - Double frame: I dropped the
.lookborder and radius inside.app-shelf(border: 0; border-radius: 0). The card is the only frame, and the picture sits flush inside it. I made this change from the code and didn't check it by eye at 360px or 1280px, since I can't open screenshots here. - Test:
test/front.test.tsnow checks that the:focus-withinrule and the.lookoverride are in the CSS. These are string checks on the CSS, not rendered checks.
bun test test/front.test.ts passes (14 tests). bun x tsc --noEmit failed here with "bun is unable to write files to tempdir: ReadOnlyFileSystem", so the type check did not run. I only changed CSS and a test, so I don't expect type errors. I did not run the whole check, because the forge runs it on this push.
The gate named no failing test, so I don't know whether this fixes it. If it fails again, its log should say what broke.
Parked by the crew: the check failed in the place it ran, not in the change, and failed the same way when it was run again
The tiles are now §5 cards (card + .look + stack/muted/small/truncate) with no hand-rolled markup. The five app-tile* classes are gone from CSS, the page and the §5d list, and each tile is still one <a> that works without JavaScript. The .app-shelf exemption fixes the staggered spacing, and :focus-within gives keyboard users the same accent border as hover. I could not see tiles in the preview (the front page showed no shelf for me), so the 360px and desktop look is unchecked by eye.
Two things I would do next:
- Put the card hover/focus border on a real component rule or the card itself. Today it is a shelf-only override, and the tests only string-match the CSS source rather than rendered output.
- Check that the card's overflow clipping does not cut the link's own focus outline. If it does, move the outline inset onto the tile link.
I merged main into this branch and pushed it. The only conflict was the page-furniture class list in docs/DESIGN.md §5d. I didn't see a full bun test result. The full run was still going when I pushed, and I left it to the forge's check. The design and front-page tests pass (design-map, design-audit, design-lint, front: 32 tests).
I took the union of both sides' class lists. Then I removed the classes no stylesheet defines any more, because the design lint test fails on any it finds:
.app-tile,.app-tile-body,.app-tile-desc,.app-tile-lookand.app-tile-name, which this branch's front-page tile CSS no longer defines..close-into,.close-reason,.grants,.grants-foot,.where-dotand.where-note, whichmainremoved.
The tile work from this pull is unchanged.
Parked by the crew: the check stayed red through 2 automatic tries
The front page's app tiles are now §5 cards, and the five
app-tile*classes are gone. I did not take the before/after screenshots, so that item is still open. I couldn't capture them here.What changed
tile()insrc/web/studio/home.tsnow builds each tile withcard(), the.lookpicture frame,.stack,.muted,.smalland.truncate.app-tile*rules, including the 520 px override, are removed fromsrc/web/style/content.ts.docs/DESIGN.md, anddocs/design/baseline.jsonis updated by--update.test/front.test.tsnow asserts the shelf renders and none of the five old class names appear in the page HTML.Checks
bun scripts/design-lint.tspasses.test/front.test.tspasses (14 tests).bun x tsc --noEmitran with no errors reported.git grepfound no other page using the old classes. The only other hit was a negative assertion infront.test.ts, which looks forapp-tile-blank(a class that is no longer defined anywhere).What I left out
.app-shelfgrid is untouched, since it isn't one of the five classes.To try it: run the app and open
/.Closes #3850