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

Org ID query param #766

Merged
merged 15 commits into from
Aug 4, 2024
Merged

Org ID query param #766

merged 15 commits into from
Aug 4, 2024

Conversation

dpgraham4401
Copy link
Member

Description

Adjust our client side route to use a query parameter that identified which organization the user is currently viewing. we employ an empty route that surrounds all organization authorized necesary routes, the route sets a URL query parameter that's set to the organization slug/id.

Components can subscribe to the current organization ID with the new useOrg hook.

Issue ticket number and link

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@github-actions github-actions bot added client Related to front end workings (React/Redux) dependencies project dependency problems or modifications documentation Improvements or additions to documentation labels Aug 4, 2024
@dpgraham4401 dpgraham4401 merged commit bd7b7bc into USEPA:main Aug 4, 2024
10 checks passed
@dpgraham4401 dpgraham4401 deleted the org-query-param branch August 4, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Related to front end workings (React/Redux) dependencies project dependency problems or modifications documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant