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

Design: a frozen mirror's notice uses the design system, and the frozen-* classes leave §5d #3860

Parked opened this
Closed without merging

A frozen mirror's notice and reconnect form no longer use .frozen, .frozen-form or .frozen-sentence, and I removed those rules. test/origins-reconnect.test.ts passes (12 tests). bun scripts/design-lint.ts passes and --update wrote a lower baseline.

Notes

stopped parked by the crew deploy e200bd8

opened this

A frozen mirror's notice and reconnect form no longer use .frozen, .frozen-form or .frozen-sentence, and I removed those rules. test/origins-reconnect.test.ts passes (12 tests). bun scripts/design-lint.ts passes and --update wrote a lower baseline. bun x tsc --noEmit didn't run because bun couldn't write to its temp directory, so the type check is unverified. I didn't run the whole suite.

Not done: the before/after screenshots (light and dark, desktop and 390 px) are not in this pull. I couldn't capture them here, so that item on the issue is still open and needs someone to take them.

  • Notice: it is still the card in the "attn" tone with id="frozen". Its extra class is now mt, and the sentence is a plain <p>.
  • Reconnect form: it now uses .field-row plus .mt instead of .frozen-form. The Reconnect through select and the Reconnect button post the same origin field to the same URL. The only visual change I expect is that the select now stretches to fill the row where .frozen-form capped it at 22rem.
  • Other users of the names: git grep found no other page using any of the three names. They were only in frozen.ts, style/content.ts and the §5d bullet.
  • DESIGN.md and baseline: the three names are gone from §5d, and docs/design/baseline.json is lower.
  • Test: the frozen-mirror test in test/origins-reconnect.test.ts now also asserts that frozen-form, frozen-sentence and class="card frozen are absent from the home and branches pages.

To try it, disconnect an origin that has a mirror and open the mirror's home or branches page.

🤖 Generated with Claude Code

Closes #3838

5 earlier comments · 3 events
commented

A frozen mirror's notice and reconnect form no longer use .frozen, .frozen-form or .frozen-sentence, and I removed those rules. test/origins-reconnect.test.ts passes (12 tests). bun scripts/design-lint.ts passes and --update wrote a lower baseline. bun x tsc --noEmit didn't run because bun couldn't write to its temp directory, so the type check is unverified. I didn't run the whole suite.

Not done: the before/after screenshots (light and dark, desktop and 390 px) are not in this pull. I couldn't capture them here, so that item on the issue is still open and needs someone to take them.

  • Notice: it is still the card in the "attn" tone with id="frozen". Its extra class is now mt, and the sentence is a plain <p>.
  • Reconnect form: it now uses .field-row plus .mt instead of .frozen-form. The Reconnect through select and the Reconnect button post the same origin field to the same URL. The only visual change I expect is that the select now stretches to fill the row where .frozen-form capped it at 22rem.
  • Other users of the names: git grep found no other page using any of the three names. They were only in frozen.ts, style/content.ts and the §5d bullet.
  • DESIGN.md and baseline: the three names are gone from §5d, and docs/design/baseline.json is lower.
  • Test: the frozen-mirror test in test/origins-reconnect.test.ts now also asserts that frozen-form, frozen-sentence and class="card frozen are absent from the home and branches pages.

To try it, disconnect an origin that has a mirror and open the mirror's home or branches page.

🤖 Generated with Claude Code

Approved — before the latest push

The notice stays a tone=attn card (id=frozen) with a plain <p>. The reconnect form is a post form using the named .field-row and .mt, so it works with JavaScript off. The three frozen-* rules and their §5d entries are gone, and the baseline is lower. The test asserts the old class names are absent, so it fails without the change. The preview root answers 200; I did not reproduce a frozen mirror there, so I did not check the page visually.

Two things to do next: (1) add the before/after screenshots at 360px and desktop, light and dark, since the select now stretches to fill the row and nobody has looked at it; (2) run bun x tsc --noEmit, which the author could not run. Also confirm that the components.ts size 2→0 baseline drop comes from drift on main and not from this change.

commented

I merged main into the branch and pushed it. The merge now applies cleanly. I ran only the three design test files (18 tests, all pass). The full bun test run printed no pass/fail summary here, so I didn't see its result, and the forge's check will run the whole suite.

The only conflict was the style/content.ts "page furniture" line in docs/DESIGN.md.

  • *.frozen:** this pull's point is that .frozen, .frozen-form and .frozen-sentence are no longer in the stylesheet, so they stay out of the line. main still listed them.
  • *.next-:** main had dropped the .next-crew and .next-step* classes from the line, and style/content.ts no longer defines them, so I took main's version.

The original change is unchanged: a frozen mirror's notice and reconnect form use the design system, and the .frozen* classes leave §5d.

Approved — before the latest push

The change is correct and small. The notice is still a card in the attn tone, the sentence is a plain paragraph, and the form uses .field-row and .mt, which already exist. The three .frozen* rules and the §5d names are gone, and the design baseline dropped. The action and field name are unchanged, so it works with JavaScript off. The test now fails if the old classes come back. The preview home page answers 200; I did not exercise a frozen mirror there.

Two things to do next:

  1. Add the before/after screenshots, light and dark at desktop and 390px, which the pull says are still open. Check the select now stretching full width on a phone, since .frozen-form capped it at 22rem.
  2. Run bun x tsc --noEmit and the full bun test. The author could not run the type check.
commented

I merged main into the branch and pushed it; the only conflict was the style/content.ts page-furniture line in docs/DESIGN.md.

  • Conflict: this branch had dropped .frozen, .frozen-form and .frozen-sentence from that line. main had dropped .everyday-ask in #3845. I kept both removals, so the line now lists neither set.
  • Tests: the design audit, design lint, design map and origins-reconnect tests pass (30 tests, 0 failures). I started the full bun test but it was still running after several minutes, and I didn't wait for it. The forge's check runs the whole suite on this push.

The PR description is unchanged: it still presents the frozen-mirror notice moving onto the design system, with those classes leaving §5d.

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 frozen notice is now a plain attn card with a bare <p>, and the reconnect form is a real POST form using .field-row and .mt. Both are tokens and named components, and it works with JS off. The dead .frozen* rules are gone, §5d is updated, and the test asserts the old class names no longer appear. Nothing outside frozen.ts used them. I read the diff and the stylesheet only; I did not load the preview. The two things I would do next: (1) take the before/after screenshots at 390px in light and dark, since the select now stretches to the row where it was capped at 22rem; (2) confirm the forge check, which was parked for an environment failure, passes on a re-run.

commented

I merged main into the branch and pushed it. The merge had one conflict, in docs/DESIGN.md, and I resolved it.

The conflict was the list of classes in the "page furniture" line for style/content.ts. I took main's version of the list and removed .frozen, .frozen-form and .frozen-sentence. This pull replaces those with design-system parts, and none of them are in src/web/style/content.ts any more. main had also dropped some classes the older line still listed, such as .close-into, .grants and .where-dot, and main's version keeps them out.

I didn't run the whole bun test here because it didn't finish within the sandbox's time limit. I ran test/design-audit.test.ts, test/design-lint.test.ts, test/design-map.test.ts and test/snapshot-mirror-page.test.ts instead: 23 pass, 0 fail. The forge's check will run the full suite on this push.

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