Repository navigation
Group src modules into folders - #4
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/was one flat list of 41 modules and their tests. This groups them by responsibility. It is a move-only change: no file renames, no code, export or regex changes; only import paths are updated.src/main.tsx,types.ts,config.ts,assistance-contract.ts)src/coach/src/grounding/src/map/src/session/src/platform/src/ui/src/i18n/The full spec, including placement for every file, is in
docs/src-folder-refactor-pass.md.README.mdgets a short "Source layout" section.What changes besides import paths
main.tsxloads./platform/platform.css.ui/ui-strings.tsloads dictionaries from"../i18n/*.json". The regex that reads the language code from each path is unchanged and still matches.ui/ui-locale.test.tsreads../platform/PlatformBootstrap.tsxand../i18n/source.jsonat their new paths.src/i18nloads as a dictionary. Before, only Chinese was checked, and a broken glob would have silently shown English everywhere.Testing
npm test: 37 files and 394 tests (393 before, plus the guard test).npx tsc --noEmit,npm run eval:typecheck,npm run build:pagesandnpm run verify:pagespass.npx playwright test): 4/4.types.ts↔assistance-contract.ts, kept together at the root.Suggest squash-merging.
🤖 Generated with Claude Code