Skip to content

[#219] Frontend: Add route-level code splitting and lazy loading - #285

Merged
Junirezz merged 3 commits into
Junirezz:mainfrom
amehsamuel200225-sketch:fix/219-frontend-add-route-level-code-splitting-and-lazy-loading
Apr 24, 2026
Merged

[#219] Frontend: Add route-level code splitting and lazy loading#285
Junirezz merged 3 commits into
Junirezz:mainfrom
amehsamuel200225-sketch:fix/219-frontend-add-route-level-code-splitting-and-lazy-loading

Conversation

@amehsamuel200225-sketch

Copy link
Copy Markdown

Closes #219

What changed

  • Added a shared RouteLoadingFallback skeleton component for lazy-loaded route content.
  • Kept major routes (/, /portfolio, /analytics, /settings) loaded via dynamic imports.
  • Updated route-loading tests to assert the shared fallback during chunk fetch.

Validation

  • npm test -- src/tests/routing.test.tsx --run
  • npm test -- src/components/ErrorFallback.test.tsx --run

Refactor lazy route loading to use a reusable skeleton fallback component, update routing tests for the new loading state, and fix related type/test regressions to keep frontend routing behavior stable.

Made-with: Cursor
@drips-wave

drips-wave Bot commented Apr 24, 2026

Copy link
Copy Markdown

@amehsamuel200225-sketch Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Senior Engineer and others added 2 commits April 24, 2026 12:57
Move error-navigation helpers out of the component module for fast-refresh lint compatibility, tighten test typing, and remove unused imports so CI can progress on route-lazy-loading changes.

Made-with: Cursor
@Junirezz
Junirezz merged commit e28c4f8 into Junirezz:main Apr 24, 2026
2 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend: Add route-level code splitting and lazy loading

2 participants