Skip to content

Conversation

@joshuasilva414
Copy link
Contributor

Why

It is important to use proper suspense boundaries for the best user experience possible.

What

  • Create loading.tsx for admin side
  • Remove unnecessary suspense around ScheduleTimeline

Satisfies

@joshuasilva414 joshuasilva414 requested a review from Copilot August 14, 2025 17:55
@joshuasilva414 joshuasilva414 linked an issue Aug 14, 2025 that may be closed by this pull request
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the user experience by implementing proper suspense boundaries for loading states. It adds a dedicated loading component for the admin section and removes unnecessary suspense wrapping from the ScheduleTimeline component that was previously handled elsewhere.

Key changes:

  • Created a dedicated loading component for the admin route
  • Removed manual Suspense wrapping around ScheduleTimeline in two schedule pages
  • Converted ScheduleTimeline from client to server component

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
apps/web/src/app/admin/loading.tsx Adds centralized loading component for admin routes
apps/web/src/app/schedule/page.tsx Removes manual Suspense wrapper around ScheduleTimeline
apps/web/src/app/dash/schedule/page.tsx Removes manual Suspense wrapper around ScheduleTimeline
apps/web/src/app/dash/schedule/schedule-timeline.tsx Converts from client to server component
apps/web/src/components/events/admin/EventDetails.tsx Contains unrelated character addition

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@joshuasilva414 joshuasilva414 merged commit f03e7fe into dev Aug 14, 2025
1 check 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.

Add Proper Suspense Boundaries

2 participants