Skip to content

fix(motion-kit): drop the grab-bar span and refuse classes no SCSS module defines - #125

Merged
jm-rivera merged 1 commit into
fix/snapshot-date-pollfrom
fix/motion-kit-style-checks
Nov 5, 2026
Merged

jm-rivera merged 1 commit into
fix/snapshot-date-pollfrom
fix/motion-kit-style-checks

Conversation

@jm-rivera

@jm-rivera jm-rivera commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Slot in motion-kit/render.tsx rendered <span className={boardStyles.handle}> after .handle left Whiteboard.module.scss, so every card in a film carried an empty span. The span is gone. missingClasses in motion-kit/stateClasses.ts walks the TypeScript AST for every xStyles.name read on an SCSS module import and checks it against the compiled class maps that loadRenderer already returns, and generate refuses a film that fails it. An Activity turn line without the step class now throws in stepLines, so a class that moves off the line can no longer yield zero hooks without an error.

The Kenya film builds from this branch with the current Activity tab, card source lines, card chips and More Info. Played headless in Chromium, scrubbed from 0 to 24.8 s and then played in real time, all 26 cues in its cue sheet fire with no console error and no DFO: nothing at error. The committed Kenya JSON and cue files are unchanged; feat/motion-kit rewrites them. Once that branch is rebased onto dev, the new check fails on its boardStyles.handle and activityStyles.tool reads, which is the check working.

Closes #95

Testing: node --test motion-kit/test/*.test.ts (20 pass, including the Kenya film built in Chrome), pnpm typecheck, pnpm lint. With the span restored, both the class test and the Kenya film test fail on motion-kit/render.tsx: boardStyles.handle.

…dule defines

render.tsx read boardStyles.handle after the class left Whiteboard.module.scss, so every card carried an empty span. missingClasses in stateClasses.ts now checks every Styles read against the compiled class maps, and generate refuses a film that fails it. An activity turn line without the step class now throws instead of yielding no hooks.

Closes #95
@jm-rivera
jm-rivera added this pull request to stack #127 November 5, 2026 11:00
@jm-rivera
jm-rivera marked this pull request as ready for review November 5, 2026 11:16
@jm-rivera
jm-rivera merged commit 29eb225 into dev Nov 5, 2026
5 checks passed
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.

Remove the boardStyles.handle span from motion-kit/render.tsx and rebuild the Studio films

1 participant