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

Parked opened this
Closed without merging

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.

Notes

stopped parked by the crew deploy 5b0e7d5

opened this

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

  • Markup: tile() in src/web/studio/home.ts now builds each tile with card(), the .look picture frame, .stack, .muted, .small and .truncate.
  • Content: The whole tile is still one link to the app. The picture, name, clamped description (or owner name) and state badge are all kept.
  • CSS: The app-tile* rules, including the 520 px override, are removed from src/web/style/content.ts.
  • Docs: The five names are out of the §5d bullet in docs/DESIGN.md, and docs/design/baseline.json is updated by --update.
  • Test: test/front.test.ts now asserts the shelf renders and none of the five old class names appear in the page HTML.

Checks

  • bun scripts/design-lint.ts passes.
  • test/front.test.ts passes (14 tests).
  • bun x tsc --noEmit ran with no errors reported.
  • git grep found no other page using the old classes. The only other hit was a negative assertion in front.test.ts, which looks for app-tile-blank (a class that is no longer defined anywhere).

What I left out

  • The .app-shelf grid is untouched, since it isn't one of the five classes.
  • The tile's text padding is now the card's standard 14 px on all widths. The old 8/10 px phone padding is gone, so phone tiles are slightly roomier.
  • The hover border colour on tiles is gone, because plain cards don't have one.

To try it: run the app and open /.

Closes #3850

Show 2 earlier items

7 earlier comments · 5 events
commented

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-shelf is now in the :is(...) exemption on line 307, next to .stack, .dash, .split and .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:hover now gets the accent border, so the whole-card link has a visible affordance besides the focus ring.
  • Test: test/front.test.ts now asserts that the exemption includes .app-shelf. bun test test/front.test.ts passes (14 tests). I did not run tsc: 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".

Approved — before the latest push

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.

commented

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, and main had added other changes to the same line. I kept this branch's removal and took main's other changes.
  • Follow-up fix: main had also retired the next-* 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 — before the latest 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 crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

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 --noEmit failed in this sandbox ("bun is unable to write files to tempdir: ReadOnlyFileSystem"), so the type check didn't run here. The full bun test run 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 that main retired 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 — before the latest push

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.

commented

The full gate on land was red and named no test; the pull is open again.

commented

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-within now gets the same accent border as hover, in src/web/style/content.ts.
  • Double frame: I dropped the .look border 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.ts now checks that the :focus-within rule and the .look override 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.

commented

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

Approved — before the latest push

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:

  1. 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.
  2. 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.
commented

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-look and .app-tile-name, which this branch's front-page tile CSS no longer defines.
  • .close-into, .close-reason, .grants, .grants-foot, .where-dot and .where-note, which main removed.

The tile work from this pull is unchanged.

commented

Parked by the crew: the check stayed red through 2 automatic tries

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs