Skip to content

fix(desktop): drop dead css-test-helpers after #2406 - #2415

Merged
Astro-Han merged 1 commit into
mainfrom
fix/knip-css-test-helpers-dead-exports
Aug 7, 2026
Merged

fix(desktop): drop dead css-test-helpers after #2406#2415
Astro-Han merged 1 commit into
mainfrom
fix/knip-css-test-helpers-dead-exports

Conversation

@Astro-Han

@Astro-HanAstro-Han commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Why

#2406 deleted the meta-test that was the last external consumer of:

  • findBadgeClassNames / findUnreadableBadgeCallSites
  • cssMediaBody
  • findTextRoleOffenders
  • mergeBySelector
  • assertCustomPropPinnedOnce

#2410 fixed orphan-semicolon format breakage. #2414 unblocked Knip by turning those exports private. This PR finishes the job: remove the dead functions and their exclusive private dependency graph (readTsxTree, JSX badge scan, text-role vocabulary scan, mergeByContext/UNCONDITIONAL, parseCssCustomProps, etc.).

Live contract tests still import readAllRendererCss, stripCssComments, parseCssBlocks, splitSelectorList, assertCssRuleDecls, and REPO_ROOT — those stay.

Validation

  • npx knip --workspace apps/desktop (zero findings)
  • node --test on the seven contract tests that import the helpers (17/17 pass)

Test plan

  • CI typecheck: Knip (apps/desktop) green
  • CI format:check / lint green

Follow-up to #2406 / #2410 / #2414.

helper exports. Format residue was cleared in #2410; Knip still failed
the required typecheck lane on those unused exports. Remove them and
their exclusive private dependency graph, keep what live contracts import.
@Astro-Han
Astro-Hanforce-pushed the fix/knip-css-test-helpers-dead-exports branch from 3cd4303 to 40272baCompareAugust 7, 2026 07:49
@Astro-Han
Astro-Han marked this pull request as ready for review August 7, 2026 08:00
@Astro-Han
Astro-Han merged commit e6207dd into mainAug 7, 2026
12 checks passed
@Astro-Han
Astro-Han deleted the fix/knip-css-test-helpers-dead-exports branch August 7, 2026 08:00
Sign up for freeto 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

@Astro-Han