Update TopBar with new navigation items and styles#36368
Conversation
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
ryanclark
left a comment
There was a problem hiding this comment.
NavigationSwitcher.tsx can be deleted too
| <TeleportLogo /> | ||
| {feature?.hideNavigation && ( | ||
| <ButtonIconContainer onClick={handleBack}> | ||
| <ArrowLeft size="medium" /> | ||
| </ButtonIconContainer> | ||
| )} |
There was a problem hiding this comment.
This would look strange with the arrow being after the logo - can you move it back?
There was a problem hiding this comment.
Spoke with kenny and for now (we will speak more about it tomorrow) we decided to hide the logo/access management button and replace with the arrow. Although, this still leaves the other nav items in the top bar. should they be there when viewing TAG? i can hide everything if necessary
There was a problem hiding this comment.
Should we change "Access Management" to say "Back to Teleport" when viewing TAG? cc @roraback
Also yes can we hide the other nav items for TAG please?
| const Assist = lazy(() => import('teleport/Assist')); | ||
|
|
||
| export function TopBar() { | ||
| export function TopBar({ navigationItems }: NavigationProps) { |
There was a problem hiding this comment.
Can navigationItems come from useFeatures() instead of being passed through to here?
There was a problem hiding this comment.
I sorta hijacked topmenuitem since it fit and my filter for topmenu items is if it's defined and a Resource category. worked well, and also was able to use the already filtered items based on access
| /> | ||
| <NavigationButton | ||
| selected={feature?.category === NavigationCategory.Management} | ||
| to="/web/users" |
There was a problem hiding this comment.
This URL shouldn't be hard coded
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
kimlisa
left a comment
There was a problem hiding this comment.
i accidentally approved 😅
all the topbar icon has a tooltip except for notifications
i always seemed to have a horizontal scroll bar 🤔 (15 inch mac on chrome)
triple scroll bars (but i wasn't sure if we were aiming for mobile friendly)
some triple scrolling on some access management views (full screen width)
| } | ||
| align-items: center; | ||
| `} | ||
| to="/web" |
There was a problem hiding this comment.
define in config as a route?
There was a problem hiding this comment.
Thanks. I guess it was already defined under cfg.routes.root so i'll use that!
| return cfg.routes.accessRequest; | ||
| }, | ||
| }; | ||
| topMenuItem = this.navigationItem; |
There was a problem hiding this comment.
Instead of this being a copy of navigationItem, can it be an optional boolean?
There was a problem hiding this comment.
the type of topMenuItem is used elsewhere as a component that shares a lot of the same props as navigationItem. I could make the type be TopMenuItem | boolean but that might muck it up instead of just copying over like this
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
this was related to my PR. adding the height on every HoverTooltip broke a lot of then, so I just passed in the 100% height explicitly on the specific elements up top also fixed the notification bell. I lowered the z-index to keep the topbar below the drawer component for RequestCheckout which I believe is the original intention |




This is part 2 of the PRs to update our TopBar with the new designs. See figma here https://www.figma.com/file/Gpjs9vjhzUKF1GDbeG9JGE/Application-Design-System?type=design&node-id=0-1&mode=design&t=QWzXjivwgbiKAVCp-0
I recommend commit by commit but most are pretty small.
Goes hand in hand with #36310 but they do not rely on each other (both need to be in to complete the task however)
changelog: Moved the resources side bar navigation into the top bar and updated the look and feel