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

.backups-drill, .backups-error, .backups-now and .backups-restore leave the stylesheet #4631

opened this

Merged 43d 13h ago, live in production

Removes the stylesheet rules for four backup-page classes that no markup uses any more: .backups-drill, .backups-error, .backups-now and .backups-restore. Closes #4598. src/web/style/content.ts: the four rules are deleted.

Notes

opened this

Removes the stylesheet rules for four backup-page classes that no markup uses any more: .backups-drill, .backups-error, .backups-now and .backups-restore. Closes #4598.

  • src/web/style/content.ts: the four rules are deleted.
  • docs/DESIGN.md §5d: the four names are dropped from the style/content.ts page-furniture list.

Left alone:

  • test/snapshot-outcome.test.ts:105 still contains "backups-error", so a grep -rn under test/ finds that one line. It is the line that checks /settings/backups does not contain the class, which is what the issue asks such a test to do, so I didn't change it.
  • docs/design/baseline.json has no counts for these names, so it is unchanged.
  • No other file is in the diff.

Checks:

  • bun scripts/design-lint.ts passes.
  • bun test test/design-lint.test.ts test/snapshot-outcome.test.ts passes (18 tests).
  • No src/ markup drew these classes, so pages render the same. To see it, open /settings/backups on the preview and compare it with production.

🤖 Generated with Claude Code

Closes #4598

3 earlier comments
commented

Removes the stylesheet rules for four backup-page classes that no markup uses any more: .backups-drill, .backups-error, .backups-now and .backups-restore. Closes #4598.

  • src/web/style/content.ts: the four rules are deleted.
  • docs/DESIGN.md §5d: the four names are dropped from the style/content.ts page-furniture list.

Left alone:

  • test/snapshot-outcome.test.ts:105 still contains "backups-error", so a grep -rn under test/ finds that one line. It is the line that checks /settings/backups does not contain the class, which is what the issue asks such a test to do, so I didn't change it.
  • docs/design/baseline.json has no counts for these names, so it is unchanged.
  • No other file is in the diff.

Checks:

  • bun scripts/design-lint.ts passes.
  • bun test test/design-lint.test.ts test/snapshot-outcome.test.ts passes (18 tests).
  • No src/ markup drew these classes, so pages render the same. To see it, open /settings/backups on the preview and compare it with production.

🤖 Generated with Claude Code

commented

Removes the stylesheet rules for four backup-page classes that no markup uses any more: .backups-drill, .backups-error, .backups-now and .backups-restore. Closes #4598.

  • src/web/style/content.ts: the four rules are deleted.
  • docs/DESIGN.md §5d: the four names are dropped from the style/content.ts page-furniture list.
  • Merge with main: main had changed the same line in §5d, which caused a conflict. It is resolved by keeping main's version of the line with only the four names taken out.

Left alone:

  • test/snapshot-outcome.test.ts:105 still contains "backups-error", so a grep -rn under test/ finds that one line. It checks that /settings/backups does not contain the class, which is what the issue asks such a test to do, so I didn't change it.
  • docs/design/baseline.json has no counts for these names, so it is unchanged.
  • No other file is in the diff.

Checks (after the merge):

  • bun scripts/design-lint.ts passes.
  • bun test test/design-lint.test.ts test/snapshot-outcome.test.ts passes (18 tests).
  • No src/ markup drew these classes, so pages render the same. To see it, open /settings/backups on the preview and compare it with production.

🤖 Generated with Claude Code

commented

Removes the stylesheet rules for four backup-page classes that no markup uses any more: .backups-drill, .backups-error, .backups-now and .backups-restore. Closes #4598.

  • src/web/style/content.ts: the four rules are deleted.
  • docs/DESIGN.md §5d: the four names are dropped from the style/content.ts page-furniture list.
  • Merges with main: main has twice changed that same §5d line, so this branch has been merged twice. Each time the conflict is resolved by keeping main's version of the line with only the four names taken out. Against main, the diff is these two files and nothing else.

Left alone:

  • test/snapshot-outcome.test.ts:105 still contains "backups-error", so a grep -rn under test/ finds that one line. It checks that /settings/backups does not contain the class, which is what the issue asks such a test to do, so I didn't change it.
  • docs/design/baseline.json has no counts for these names, so it is unchanged.

Checks (after the latest merge):

  • bun scripts/design-lint.ts passes.
  • bun test test/design-lint.test.ts test/snapshot-outcome.test.ts passes (18 tests).
  • No src/ markup drew these classes, so pages render the same. To see it, open /settings/backups on the preview and compare it with production.

🤖 Generated with Claude Code

commented

The .backups-drill, .backups-error, .backups-now and .backups-restore classes come out of the stylesheet. The backups page draws §5's shared components instead, with no change to how it behaves. docs/DESIGN.md §5d no longer lists them.

This update merges main. The only conflict was the "page furniture" line in docs/DESIGN.md §5d, and the resolution keeps both sides' removals: this branch's four .backups-* classes, and .app-shelf and .front-pin-any, which #4630 removed on main. #4630 also removed .front-weights from the stylesheet but left it in the docs. With it still listed, bun scripts/design-lint.ts reported it as stale, so the merge strikes it too.

After the merge, the design lint is clean and the type check passes. The design tests and the backups tests (design-audit, design-lint, design-map, backups-live, backups-parts, backups-timing) pass: 35 tests, 0 failures. I didn't run the full suite here; the forge's check covers it.

To try it, open /backups on the preview at https://lab--4631--forge-trevato-apps.open-platform.sh.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs