Skip to content

feat: add global loading and error states - #10

Merged
mitoperni merged 1 commit into
mainfrom
feat/09-loading-error-states
Feb 5, 2026
Merged

mitoperni merged 1 commit into
mainfrom
feat/09-loading-error-states

Conversation

@mitoperni

@mitoperni mitoperni commented Feb 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add global loading.tsx with NetworkListSkeleton and MapSkeleton
  • Add global error.tsx with retry button and friendly error message
  • Remove redundant Suspense from page.tsx (now handled by loading.tsx)
  • Simplify page.tsx by inlining MainContent component

Test plan

  • Verify loading skeleton appears on initial page load (throttle network to see it)
  • Verify error page appears when API fails (modify API URL temporarily)
  • Verify retry button works on error page

- Add global loading.tsx with NetworkListSkeleton and MapSkeleton
- Add global error.tsx with retry button and friendly error message
- Remove redundant Suspense from page.tsx (now handled by loading.tsx)
- Simplify page.tsx by inlining MainContent component
@mitoperni
mitoperni merged commit 57029f5 into main Feb 5, 2026
4 checks passed
@mitoperni
mitoperni deleted the feat/09-loading-error-states branch February 10, 2026 08:10
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.

1 participant