Skip to content

Conversation

@mirmirmirr
Copy link
Member

Swap Results and Availability Painting.

@mirmirmirr mirmirmirr requested a review from jzgom067 October 20, 2025 21:57
@mirmirmirr mirmirmirr marked this pull request as ready for review October 20, 2025 21:57
Copilot AI review requested due to automatic review settings October 20, 2025 21:57
Copy link
Contributor

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 swaps the functionality of the results and availability painting pages by reversing their routes. The main event page (/[event-code]) now displays results instead of the availability editor, while the new /[event-code]/painting route hosts the availability editor.

Key changes:

  • Route swap: /{eventCode} now shows results, /{eventCode}/painting now shows availability editing
  • Updated navigation links and redirects throughout the application to reflect the new routing structure
  • Modified CopyToast component to accept an event code parameter for consistent link generation

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
app/ui/layout/results-page.tsx Updated link to point to /painting route and passed event code to CopyToast
app/ui/layout/availability-page.tsx Changed redirect to main event page, added Cancel Edits button, and passed event code to CopyToast
app/ui/components/toasts/copy-toast.tsx Modified to accept event code parameter and generate URL from origin instead of current location
app/[event-code]/painting/page.tsx Swapped to render AvailabilityClientPage instead of ResultsPage, updated data fetching calls
app/[event-code]/painting/loading.tsx Adjusted loading skeleton layout to match availability page structure
app/[event-code]/page.tsx Swapped to render ResultsPage instead of AvailabilityClientPage, updated data fetching calls
app/[event-code]/loading.tsx Adjusted loading skeleton layout to match results page structure

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

@jzgom067 jzgom067 merged commit ee523de into main-preview Oct 21, 2025
1 check passed
@jzgom067 jzgom067 deleted the swap-results-painting branch October 27, 2025 20:36
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.

3 participants