Repository navigation
fix(frontend): point the feature registry's glob at src/features - #456
Merged
Merged
Conversation
Moving registry.ts into app/lib/ left its glob one folder short, so it matched nothing and the app started with no pages or navigation. Tests use stand-in features, so none noticed; a new test checks every feature folder is found. 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.



What this fixes
Since #454, the dashboard loads with an empty sidebar and every page shows a 404.
#454movedregistry.tsfromsrc/app/intosrc/app/lib/, but itsimport.meta.globpath stayed'../features/*/index.ts'. From the new folder, that points atsrc/app/features/, which doesn't exist. Vite doesn't treat a glob with no matches as an error, so the app registered no features at all.Changes
frontend/src/app/lib/registry.ts: the glob is now'../../features/*/index.ts'.frontend/src/app/test/registry.test.ts(new): checks that the registry finds a manifest for every folder insrc/features/. It fails on the old path and passes on the fixed one.Why the tests missed it
App and shared tests run against stand-in features, not the real registry.
check:removableonly removes features, so it never checked that any were found. The new test covers the real registry.Verified
npm run test: 2,822 tests passvite build: passes🤖 Generated with Claude Code
Checked
dotnet build magic.slnpasses, which includes the analyzer rules, anddotnet test magic.slnpassescd frontend && npm run build && npm run testpasses, if the frontend changedbackend/files/config/appsettings.jsonis not part of the change