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

feat: add facility context switch and ui #457

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

calisio
Copy link
Contributor

@calisio calisio commented Oct 25, 2024

Description of the change

This adds facility context switching on the admin side. It also updates both the admin and student portal to display the current facility in the PageNav component, and moves the dropdown that contains logout and theme toggle to the Navbar component. Also updates the routes to not pass in the facility name in the path as it's not needed anymore. Adds loader to the admin Authentication Layout route to render facilities.

Screenshot(s)

Screen.Recording.2024-10-25.at.12.36.35.PM.mov

Additional Notes

I want to make sure the UI aligns with what @chrissantillan was looking for.

@calisio calisio self-assigned this Oct 25, 2024
@calisio calisio force-pushed the facilities-dropdown branch from 51e3532 to ef18378 Compare October 25, 2024 18:08
Copy link
Contributor

@jtucholski jtucholski left a comment

Choose a reason for hiding this comment

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

Looks good. I added two comments in there and am interested in what your thoughts are:

  1. Cleaning up the className attributes in the NavBar. (request to have that cleaned up)
  2. The placement of the router loaders for the facility data. (open to further discussion)

frontend/src/Components/Navbar.tsx Outdated Show resolved Hide resolved
frontend/src/facilities.ts Outdated Show resolved Hide resolved
@calisio calisio force-pushed the facilities-dropdown branch from ef18378 to 5bc6fbb Compare October 28, 2024 17:58
@calisio calisio requested a review from jtucholski October 28, 2024 18:00
@jtucholski jtucholski merged commit 2cb149f into UnlockedLabs:main Oct 28, 2024
4 checks passed
@jtucholski jtucholski deleted the facilities-dropdown branch October 28, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Facility Switching UI
3 participants