-
Notifications
You must be signed in to change notification settings - Fork 331
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: nav updates #9973
feat: nav updates #9973
Conversation
WalkthroughThe changes primarily focus on enhancing the dashboard navigation design to improve user experience. Key modifications include importing new components such as Changes
Assessment against linked issues
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (8)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I think the TierEnum
array needs changing, but other than that, I think it's ready to be merged.
I prefer this design. It looks a lot cleaner, and the settings icon really gets my attention with the lighter team names.
const isDesktop = useBreakpoint(Breakpoint.SIDEBAR_LEFT) | ||
const teams = organizations?.flatMap((org) => org.viewerTeams) | ||
|
||
const tiers = ['enterprise', 'team', 'starter'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-1 we should use TierEnum
here instead as the we might change the names, e.g. team
back to pro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this in other places, but I’m not sure the best way to import and define a TierEnum
here.
@@ -43,11 +44,11 @@ const DashNavList = (props: Props) => { | |||
organizationsRef | |||
) | |||
|
|||
const tiers = ['enterprise', 'team', 'starter'] | |||
const TierEnumValues: TierEnum[] = ['enterprise', 'team', 'starter'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickoferrall does this work to check the tiers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That works!
Closes #9970
Demo and on-demand env
Test
Summary by CodeRabbit
New Features
Style
Refactor