perf: fix manifest, add preconnect hints, dynamic devtools, and loading indicator

Merged
MA
6mo ago
+118-75

Summary

Small follow-up improvements on top of the recent site restructuring:

  • manifest.json: Filled empty name, short_name, and added description for PWA install experience
  • preconnect hints: Added preconnect/dns-prefetch for unpkg.com CDN
  • Dynamic DevTools: TanStack DevTools panels now import dynamically, fully tree-shaken in production builds
  • Route loading indicator: Top loading bar animation during client-side route transitions using useRouterState({ select: s => s.isLoading })
  • Dependency cleanup: Removed unused jsdom and @testing-library/dom

Test plan

  • pnpm build succeeds with 6 prerendered pages
  • 77 tests pass (40 core + 8 react + 2 wc + 27 site)
  • pnpm check passes with no errors

šŸ¤– Generated with Claude Code


Summary by cubic

Improve load and navigation UX by completing the PWA manifest, adding CDN preconnect, lazy-loading DevTools, and showing a top loading bar. This reduces the production bundle and speeds up perceived navigation.

  • New Features

    • Top loading bar during client-side route transitions (via useRouterState isLoading).
    • PWA manifest now has name, short_name, and description; updated theme color.
  • Refactors

    • DevTools (@tanstack/react-devtools, @tanstack/react-router-devtools) are dynamically imported and tree-shaken from production builds.
    • Added preconnect and dns-prefetch hints for https://unpkg.com.
    • Removed unused jsdom and @testing-library/dom.