Fix preview route discovery states (#3158)
## Summary
- stop the preview route dropdown from showing "Loading routes..." after
route discovery has already finished
- expand React Router discovery to scan common route files like
`src/routes/*`, `*routes.tsx`, and `router.tsx` instead of only
`src/App.tsx`
- add parser tests covering modular route files and merged route
discovery
## Test plan
- `npm run fmt && npm run lint:fix && npm run ts`
- `npm test`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/3158"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
---------
Co-authored-by:
Will Chen <7344640+wwwillchen@users.noreply.github.com>
正在显示
请
注册
或者
登录
后发表评论