Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep track of organizationId, relationshipId and coachingSessionId across routes #23

Merged
merged 5 commits into from
Jul 6, 2024

Conversation

jhodapp
Copy link
Member

@jhodapp jhodapp commented Jul 5, 2024

Description

Implements a Zustand store to keep track of organizationId, relationshipId and coachingSessionId across multiple app routes.

GitHub Issue: N/A

Changes

  • Create a new Zustand store that's available to all App routes called app-state-store
  • Use this store in the select-coaching-session component
  • Clean up some unused console statements and downgrade some to trace level

Screenshots / Videos Showing UI Changes (if applicable)

N/A

Testing Strategy

  1. Everything should continue to work as it did before in terms of selecting an organization, relationship and coaching session
  2. The only difference is you should see the select-coaching-session component select boxes retain their selected values if you join a session and return to the dashboard page without logging out
  3. You should also be able to observe that these values get reset once you log out of the user session

Concerns

None

…hipId and coachingSessionId across multiple app routes
@jhodapp jhodapp added the enhancement Improves existing functionality or feature label Jul 5, 2024
@jhodapp jhodapp self-assigned this Jul 5, 2024
@jhodapp jhodapp marked this pull request as ready for review July 5, 2024 13:47
@jhodapp jhodapp requested a review from qafui July 5, 2024 13:48
Copy link
Collaborator

@qafui qafui left a comment

Choose a reason for hiding this comment

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

I like the simplified ID names.

@jhodapp
Copy link
Member Author

jhodapp commented Jul 6, 2024

I like the simplified ID names.

Thanks, I do too. Makes things name and type consistent and simpler.

@jhodapp jhodapp merged commit 039fc81 into main Jul 6, 2024
1 check passed
@jhodapp jhodapp deleted the store_org_rel_session_uuids branch July 6, 2024 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves existing functionality or feature
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants