Fetch coaching sessions for selecting the coaching session to join #22
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.
Description
Adds a new CoachingSession type to reflect the backend Rust type and fetches 2 months (1 back, 1 forward) worth of sessions and display in the dashboard's select component. Allows the user to select a session to join.
Note: This PR requires the following backend changes to function correctly.
GitHub Issue: N/A
Changes
Screenshots / Videos Showing UI Changes (if applicable)
Dashboard with coaching sessions displayed:
![Screenshot 2024-06-30 at 20 59 26](https://private-user-images.githubusercontent.com/3219120/344513107-cbb8557c-9572-4912-9246-f8b4a9d6bc89.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4NDMwODAsIm5iZiI6MTcyNTg0Mjc4MCwicGF0aCI6Ii8zMjE5MTIwLzM0NDUxMzEwNy1jYmI4NTU3Yy05NTcyLTQ5MTItOTI0Ni1mOGI0YTlkNmJjODkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDlUMDA0NjIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDQxMzE0Njc1YWQ2ZmQ4OGMzNWEzM2E4MjU2ZmVmYTQ0ODRjZDk4ODIzZGViMmQzODc4YjNjYmY2Y2VkZGUwNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.-kIKXnBUWgFWU-Gnrs-aCktZn32ZMnRqleeNAh69xcg)
Coaching sessions page with endpoint shown in browser address bar:
![Screenshot 2024-06-30 at 21 00 47](https://private-user-images.githubusercontent.com/3219120/344513126-582567c3-e581-4ba7-81b9-d3efa9d26933.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4NDMwODAsIm5iZiI6MTcyNTg0Mjc4MCwicGF0aCI6Ii8zMjE5MTIwLzM0NDUxMzEyNi01ODI1NjdjMy1lNTgxLTRiYTctODFiOS1kM2VmYTlkMjY5MzMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDlUMDA0NjIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzlkZWRjNWU3OTA5ZGQ5ZTk4OTg5NGMxZDBiOTBmY2I2M2YxOTFjNjlhYjBiY2Q2NDUzYmI5ODljOTQ5ZGEwZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Ni5L7QBlF0Dan3JIcIUImPtUD_GEeFi10EbCqAJPZXw)
Testing Strategy
Join
button enablesJoin
button and notice that you're navigated to the/coaching-sessions/<uuid>
and the coaching session page rendersConcerns