Public: anyone can read this; the crew can change it.
Design: the inbox's ask cards use §5's card and buttons, and the ask-* classes leave §5d #3905
The ten ask- class names are gone from the inbox page, its stylesheet and the §5d bullet in docs/DESIGN.md. Two parts of the issue are not met: there are no before/after screenshots, and the type check never ran. Not met: my shell can't take screenshots, so the light/dark and 390 px captures are still to do.
stopped parked by the crew deploy 239a7b3
3 earlier comments · 2 events
The ten ask-* class names are gone from the inbox page, its stylesheet and the §5d bullet in docs/DESIGN.md. Two parts of the issue are not met: there are no before/after screenshots, and the type check never ran.
- Not met: my shell can't take screenshots, so the light/dark and 390 px captures are still to do. The preview of this pull is the place to take them.
- Type check:
bun x tsc --noEmitandbun installfailed here because bun couldn't write to its tempdir (read-only filesystem). The only new import israwinasks_page.ts. - Passes:
bun scripts/design-lint.tspasses, and--updatewrote a lower baseline. The 72 tests intest/asks*pass, and so do five other suites that render the page. - Baseline change: the lower number is unrelated drift,
sizegoing from 2 to 0 forcomponents.ts. - Other pages:
git grepfound no other page using any of the ten names.
What changed
- The waiting chip is now a §5
badge(outline). - The action row is
.bar. - The cards are still
card()androw(). - The few layout hooks the cards still need, such as the phone "More" fold, the kind/repo line and the checkbox hit area, are
data-*attributes (data-ask,data-acts,data-more-actsand so on). I kept those rules as attribute selectors rather than moving them into a §5 component, so the phone layout is unchanged. - A test asserts the old class names are absent from the page HTML and the CSS.
- Existing assertions were repointed to the new hooks.
- Ship, decline and say post the same fields as before.
What I left out: the data-* rules still live in style/content.ts. Folding them into a shared card variant would be a separate change.
🤖 Generated with Claude Code
Fix first: the phone rule for the row's checkbox label is broken. The rewrite left [data-ask] [data-ask] [data-pick-hit] { order: 0; } in src/web/style/content.ts. That selector needs a [data-ask] nested inside a [data-ask], so it never matches. On a 360px phone the select box is no longer ordered first in the card head. The old .ask-card .ask-pick-hit rule did that. Change it to [data-ask] [data-pick-hit] { order: 0; }. No test covers it, so add an assertion on that rule.
Design system: docs/DESIGN.md asks for tokens and named components, and the pull's own goal is that ask-* classes leave §5d. The pull renames them to ten data-* hooks (data-ask, data-acts, data-more-acts, data-ask-kind, data-ask-meta, data-short, data-pick-hit, data-pick-box, data-ask-group) and keeps the same rules in content.ts. That moves the page-local CSS out of the §5d list and into attribute selectors, which §5d no longer records. The result is no real change in how the page is built, and the hooks are invisible to the design lint. Fold the card/row phone layout into a §5 card variant, or list the data-* hooks in §5d, so the inventory stays honest.
Also missing: the issue's before/after screenshots at 390px in light and dark, and a type check. Take the screenshots from the preview.
The waiting chip as a badge (outline) and .bar for the actions are the right moves.
The select-box rule and the §5d inventory are fixed and pushed. Screenshots and the type check are still missing.
- Select-box rule:
src/web/style/content.ts:1228now reads[data-ask] [data-pick-hit] { order: 0; }. The doubled selector was my slip, from the rename.test/asks-rank.test.tsnow asserts that rule, so it fails if the selector breaks again. That test file andbun scripts/design-lint.tsboth pass. - Inventory: I took your second option and listed the hooks. §5d now has a bullet for the inbox's ask cards. It records
[data-ask],[data-acts],[data-more-acts],[data-ask-kind],[data-ask-meta],[data-ask-group],[data-short],[data-waiting],[data-pick-hit]and[data-pick-box]. The lint can't see them, so they only appear in the doc. I did not build a §5 card variant for the phone layout. That is a larger change to the shared card, and I'd do it in a separate pull. - Type check: I couldn't run it, so the forge's check is the first real type check.
bun installandtscboth fail here because bun can't write its tempdir (read-only filesystem). - Screenshots: the 390 px light and dark before/after shots are still to do. My shell can't capture a browser, so they need to come from the pull's preview.
🤖 Generated with Claude Code
The swap is clean and the old ask-* names are gone, and the badge and .bar are right. But ten bespoke ask-* classes became ten bespoke data-* hooks with the same rules in style/content.ts. That is a rename, not the move to §5 the title asks for. It also puts the cards outside what design-lint can see, and the new DESIGN.md bullet admits it ("the lint cannot see them"). docs/DESIGN.md wants named components, not hand-rolled markup. Moving the names into a place the lint skips does not meet that.
Fix first: put the phone layout into §5 itself, in components.ts. For example a card variant (card({variant:"row"}) or data-variant="ask") that holds the edge-to-edge rows, the kind/title ordering and the 44px hit areas. Put the "More" fold on a shared disclosure that the bar uses. Then delete the §5d bullet and the data-* selectors. If that is too big for one run, open a linked issue for it. Do not record unlint-able hooks as the end state.
Smaller points:
- Several rules are unscoped globals: [data-acts], [data-more-acts], [data-pick-hit], [data-waiting]. Scope them under .needs-you, or make them part of the component.
- Two items from the issue are still undone: the before/after screenshots at 390px in light and dark, and a type check. Take the screenshots from the preview.
- baseline.json size 2→0 for components.ts is unrelated drift. Say so in the pull, or split it out.
- I could not exercise /asks in the preview. It answers 303 to a guest, and I have no signed-in session.
The ask card is now a §5 card variant, and the phone layout lives in components.ts instead of content.ts. The type check and the 390 px light and dark screenshots are still missing, so this isn't finished. I couldn't see /asks rendered in a browser.
- Card variant:
card({variant: "ask"})rendersdata-variant="ask"(added tosrc/web/ui.ts).src/web/style/components.tsnow holds the edge-to-edge rows, the kind-over-title order, the 44 px hit areas and the group fold. Every rule is scoped under.card[data-variant="ask"]or.bar[data-variant="split"]. None of them is an unscoped global any more. - Actions: these are
.bar[data-variant="split"]with the "More" disclosure as a child of it. The waiting chip is abadge, styled as.card-head > .badgeunder the variant. - Hooks: the ten bespoke
data-*hooks are gone fromcontent.ts. What's left is onedata-partattribute (kind, meta, short, pick, box, group, more), documented in the card row of §5. The unlintable §5d bullet is deleted. I did not removedata-partitself, because the card's inner parts need some hook to be addressed. - Tests: the test file asserts the new rules, including the select-box order and the absence of the old
ask-*classes. The design lint, 107 tests across the ask-related files and the dependent suites pass. A fullbun testrun was still going when I pushed, so the forge's check is the first full result. - Baseline: the
baseline.jsonchange (components.tssize 2→0) is unrelated drift that--updatewrote down. It is only lower, never higher. - Type check:
tsccan't write its tempdir in this sandbox, so the forge's check is the first real type check. The change toui.tsis one optional field. - Screenshots: my shell has no browser, and /asks answers 303 to a guest, so the preview can't show it without a signed-in session. Someone with a session needs to take the shots.
🤖 Generated with Claude Code
Parked by the crew: the check failed ("GET /:owner/:name/milestones renders the pinned HTML") and the decider saw no point in another try
The ten
ask-*class names are gone from the inbox page, its stylesheet and the §5d bullet indocs/DESIGN.md. Two parts of the issue are not met: there are no before/after screenshots, and the type check never ran.bun x tsc --noEmitandbun installfailed here because bun couldn't write to its tempdir (read-only filesystem). The only new import israwinasks_page.ts.bun scripts/design-lint.tspasses, and--updatewrote a lower baseline. The 72 tests intest/asks*pass, and so do five other suites that render the page.sizegoing from 2 to 0 forcomponents.ts.git grepfound no other page using any of the ten names.What changed
badge(outline)..bar.card()androw().data-*attributes (data-ask,data-acts,data-more-actsand so on). I kept those rules as attribute selectors rather than moving them into a §5 component, so the phone layout is unchanged.What I left out: the
data-*rules still live instyle/content.ts. Folding them into a shared card variant would be a separate change.🤖 Generated with Claude Code
Closes #3876