Public: anyone can read this; the crew can change it.

The home page's front controls and app shelf draw §5's bar and stack, and the shelf test finds it by data attribute #4630

opened this

Merged 43d 13h ago, live in production

The front controls now use §5's bar and the app shelf uses §5's stack, with data-shelf on the shelf. I did not do the 375 px / 1280 px look, so that item is open. I never started the app, so I haven't seen the page.

Notes

opened this

The front controls now use §5's bar and the app shelf uses §5's stack, with data-shelf on the shelf. I did not do the 375 px / 1280 px look, so that item is open. I never started the app, so I haven't seen the page.

bun scripts/design-lint.ts is clean and bun test test/design-lint.test.ts test/front.test.ts passes (29 tests). The type check didn't run: bun x tsc --noEmit stops with "Cannot find type definition file for 'bun'" because I didn't run bun install first. The forge's check will run it.

What changed

  • Shelf: the <div> in src/web/studio/home.ts is now class="mt stack" data-shelf. The grid layout in src/web/style/content.ts moved from .app-shelf to .stack[data-shelf], including the two-column rule under 520 px.
  • Front controls: the "pin any" and "weights" forms are plain bars. Their padding, the repo input's flex fill, and the narrow weight inputs are now .front-controls .bar… rules, so .front-pin-any and .front-weights are gone.
  • Test: test/front.test.ts finds the shelf by ' data-shelf' instead of by class.
  • Docs: I removed the three dead classes from the style/content.ts list in docs/DESIGN.md.

Not done

  • Baseline: docs/design/baseline.json is already empty, so there was nothing to lower.
  • Look: a person should view / and /front (as an admin) at 375 px and 1280 px. Check that the shelf grid is still auto-fill, 220 px minimum, at desktop width and two columns on a phone, and that the repo input in the pin bar still fills its row.

I left .front-controls and .front-pick as they were, since the issue doesn't name them.

Closes #4608

2 earlier comments
commented

The front controls now use §5's bar and the app shelf uses §5's stack, with data-shelf on the shelf. I did not do the 375 px / 1280 px look, so that item is open. I never started the app, so I haven't seen the page.

bun scripts/design-lint.ts is clean and bun test test/design-lint.test.ts test/front.test.ts passes (29 tests). The type check didn't run: bun x tsc --noEmit stops with "Cannot find type definition file for 'bun'" because I didn't run bun install first. The forge's check will run it.

What changed

  • Shelf: the <div> in src/web/studio/home.ts is now class="mt stack" data-shelf. The grid layout in src/web/style/content.ts moved from .app-shelf to .stack[data-shelf], including the two-column rule under 520 px.
  • Front controls: the "pin any" and "weights" forms are plain bars. Their padding, the repo input's flex fill, and the narrow weight inputs are now .front-controls .bar… rules, so .front-pin-any and .front-weights are gone.
  • Test: test/front.test.ts finds the shelf by ' data-shelf' instead of by class.
  • Docs: I removed the three dead classes from the style/content.ts list in docs/DESIGN.md.

Not done

  • Baseline: docs/design/baseline.json is already empty, so there was nothing to lower.
  • Look: a person should view / and /front (as an admin) at 375 px and 1280 px. Check that the shelf grid is still auto-fill, 220 px minimum, at desktop width and two columns on a phone, and that the repo input in the pin bar still fills its row.

I left .front-controls and .front-pick as they were, since the issue doesn't name them.

commented

I merged main into the branch and pushed it. The only conflict was in docs/DESIGN.md, in the class list for style/content.ts.

I took main's version of that list, which had already dropped the explore classes. I then removed .app-shelf, .front-pin-any and .front-weights from it, as in the first commit. No conflict markers remain.

bun scripts/design-lint.ts is clean, and bun test test/design-lint.test.ts test/front.test.ts passes (29 tests). I did not run the full suite or the type check; the forge's check does that on the push.

The 375 px / 1280 px look of / and /front is still open, as before. Nothing else changed from the first pull description.

commented

I merged main into the branch again and pushed it. The conflict was in docs/DESIGN.md, in the class list for style/content.ts.

I took main's version of that list and removed .app-shelf, .front-pin-any and .front-weights from it again. No conflict markers remain. The pull's diff against main is still the same four files, 11 lines in each direction.

bun scripts/design-lint.ts is clean, and bun test test/design-lint.test.ts test/front.test.ts passes (29 tests). I did not run the full suite or the type check; the forge's check does that on the push.

The 375 px / 1280 px look of / and /front is still open.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs