Skip to content

fix(check): report text_below_floor once per size instead of once per file - #7720

Open
sx4im wants to merge 1 commit into
heygen-com:mainfrom
sx4im:fix-7710-text-below-floor-dedupe
Open

sx4im wants to merge 1 commit into
heygen-com:mainfrom
sx4im:fix-7710-text-below-floor-dedupe

Conversation

@sx4im

@sx4im sx4im commented Nov 14, 2026

Copy link
Copy Markdown

On a film built from many sub-composition scene files, text_below_floor reported the same style problem once per file: 74 warnings for one 27 px label class. One CSS change fixes them all, and the repeats buried real findings underneath.

The fix groups small-text entries by rounded rendered size, so one finding covers a style across files and lists every element with its file. Different sizes stay separate findings. The craft layer has no class or font-family data, so rounded size is the style key. Also updates the cli.mdx craft table and the lint-validate-inspect skill reference, which documented the old one-finding-per-file behavior.

Verified: craftAudit.test.ts 29/29, including 2 new tests (same size across files groups into one finding; different sizes stay separate) and the updated per-size test. The 3 new tests fail on the old code. oxlint and oxfmt clean. Typecheck shows only pre-existing missing-module errors from the unbuilt workspace, none in the changed files.

Fixes #7710

… file

On a film built from many sub-composition scene files, text_below_floor
reported the same style problem once for every file: 74 warnings for one
27 px label class, each anchored on its smallest text in its own file.
The findings buried any real line_unread or dead_stretch findings under
the repeats, and one CSS change fixes them all.

Group SmallText entries by rounded rendered size before building
findings, so one finding covers a style across files and lists every
affected element with its sourceFile. Elements at different sizes stay
separate findings. The craft layer carries no class list or font family,
so the rounded size is the style key. Update the cli.mdx craft table
and the lint-validate-inspect skill reference, which documented the old
one-finding-per-file behavior.

Fixes heygen-com#7710
@mintlify

mintlify Bot commented Nov 14, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 928e1e3.

Approve preview

This branch has not been deployed

No deployments
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.

check: text_below_floor repeats one style's finding once per scene file (74 warnings for one 27 px label class)

1 participant