Feature/refactoring event lists - #79
Merged
benoitmignault merged 10 commits intoMay 20, 2026
Merged
Conversation
…nd add CORS headers
benoitmignault
merged commit May 20, 2026
d9d8d5f
into
feature/league-monteregie
1 of 2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors how event details and results are fetched and displayed in the golf league application. It separates the retrieval of event lists from event results, introduces a new API endpoint for event details, and updates the frontend to fetch and display results on demand. Additionally, it standardizes CORS and JSON headers across API endpoints and improves user interaction logging.
API changes:
event-details.phpto fetch detailed results for a specific event, returning player results for that event only.eventslist.phpto return only the list of events (without results), simplifying the data structure and query.eventslist.php,standings.php,player-details.php) for consistent cross-origin support and response format. [1] [2] [3]Frontend changes:
EventsList.jsxto fetch the event list without results, and to fetch event results from the new API only when an event is clicked. Results are displayed in a table below the event. [1] [2] [3] [4]These changes improve the frontend performance, data accuracy, and maintainability by separating concerns and reducing unnecessary data transfer.