Repository navigation
fix(mobile): no two importable paths differ only in case, and CI checks for it - #1210
Conversation
…ks for it PersonaSheet.tsx and personaSheet.ts could resolve to each other on a case-insensitive filesystem; the logic module is now personaSheetActions.ts. J5 CI now fails when two tracked importable paths under apps/ or packages/ differ only in case. Closes #1203 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
apps/mobile/src/j5/agents/PersonaSheet.tsx(the component) andpersonaSheet.ts(its logic) differ only in case, and both are imported without an extension. On a case-insensitive filesystem (macOS, Windows),./PersonaSheetcan resolve to the wrong one. That's how the 0.0.53 nightly broke forInboxThreadPanel(#1202). Closes #1203.What changed
personaSheet.tsand its test becomepersonaSheetActions.tsandpersonaSheetActions.test.ts, named after the function they hold. The two imports follow.scripts/j5/check-case-paths.ts, runs as one step in J5's ownj5-ci.yml"Format, lint, and typecheck" job.apps/orpackages/can be imported by extensionless stems that differ only in case..ts,.tsx,.js,.jsx,.mjs,.cjs,.mts,.cts). SoPdfViewer.tsxwithpdfViewer.css, andHorizonScene.astrowithhorizonScene.ts, are not collisions, as the issue asks.j5/mainbefore this rename, it reports exactly this one pair. On this branch it reports none.j5-ci.ymlis J5-owned, so FORK.md needs no entry.Tests:
scripts/j5/check-case-paths.test.tshas one table covering the collision, the CSS and Astro pairs, a test file beside its module, and an.ios.tsxplatform file.Live testing
Not applicable. Nothing visible changes. The script was run against both
j5/mainand this branch, as described above.Checklist
Built by Claude Opus 5.5 in Claude Code (J5 Code crew seat).
🤖 Generated with Claude Code