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: implement the drawer component of the new navigation #81

Conversation

mkarajohn
Copy link
Contributor

@mkarajohn mkarajohn commented Oct 11, 2023

Resolves DSTRBTN-540

Generated summary (powered by Graphite)

TL;DR

This pull request introduces a new Drawer component in the Navigation section of the UI. The Drawer component is a sidebar navigation menu that can be expanded or collapsed. It includes a client selector for switching between different organizations and a navigation header.

What changed

Three new files were created: Drawer.styles.ts, Drawer.tsx, and index.ts in the src/ui/Navigation/components/Drawer/ directory.

In Drawer.styles.ts, various styled components were created for the Drawer component, including the main container, organization switcher wrapper, navigation header, extras container, and navigation elements container.

In Drawer.tsx, the Drawer component was defined with props for expanded state, menu items, organization switching, selected organization, navigation header, extras, and desktop view. The component includes a client selector for switching organizations and a navigation header.

In index.ts, the Drawer component was exported.

How to test

To test the changes, follow these steps:

  1. Pull the changes from this PR to your local environment.
  2. Navigate to the src/ui/Navigation/components/Drawer/ directory.
  3. Open the Drawer.tsx file and check the Drawer component.
  4. You can import the Drawer component in another file and use it with different props to see how it behaves.
  5. Check the styled components in Drawer.styles.ts and see how they are used in the Drawer component.

Why make this change

This change was made to provide a sidebar navigation menu for the application. The Drawer component improves the user experience by allowing users to easily navigate between different sections of the application and switch between different organizations. The expandable and collapsible feature of the Drawer makes it adaptable to different screen sizes, enhancing its usability.

Copy link
Contributor Author

mkarajohn commented Oct 11, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

Copy link
Contributor Author

mkarajohn commented Oct 24, 2023

Merge activity

@mkarajohn mkarajohn changed the base branch from 10-11-feat_implement_a_navigational_menu_wrapper_component to 10-10-feat_add_custom_Menu_component October 24, 2023 14:47
@mkarajohn mkarajohn merged commit 27df5d9 into 10-10-feat_add_custom_Menu_component Oct 24, 2023
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants