Skip to content

Design note: which routes a change can affect, which removed rules mattered - #40

Closed
tmashara wants to merge 1 commit into
mainfrom
design/impact
Closed

tmashara wants to merge 1 commit into
mainfrom
design/impact

Conversation

@tmashara

Copy link
Copy Markdown
Owner

Plan only, no implementation: docs/design/impact.md.

  • Build-output diff (renderdiff impact <base-dir> <change-dir>): routes whose HTML differs after normalizeAssets, plus changed linked bundles and changed unlinked files, as a prioritised list, never a filter.
  • Removed-rule coverage (--removed-rules): rules that applied on the reference (CDP rule-usage tracking, hooks included) and whose selectors no longer exist in the change's sheets on that route and width, plus a count of removals that were never exercised, by at-rule context.

Recommends building removed-rule coverage first for the dead-CSS work. CDP semantics were checked with a Chromium spike: overridden rules still count as used, and an unmatched @media or an un-hovered :hover doesn't. Per-shot cost is an estimate to measure on metabase.com.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant