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: update breadcrumbs #432

Merged
merged 1 commit into from
Jun 23, 2023
Merged

feat: update breadcrumbs #432

merged 1 commit into from
Jun 23, 2023

Conversation

artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Jun 21, 2023

Cluster page

Breadcrumbs: ClusterName
Screen Shot 2023-06-21 at 15 58 48

Tenant page

Breadcrumbs: ClusterName / TenantName
Screen Shot 2023-06-21 at 15 58 14

Node page

Breadcrumbs (storage node): ClusterName / NodeID
Screen Shot 2023-06-21 at 15 59 01

Breadcrumbs (compute node): ClusterName / TenantName / NodeID
Screen Shot 2023-06-21 at 15 59 15

Tablets page

Breadcrumbs (cluster system tablets): ClusterName / Tablets
Screen Shot 2023-06-21 at 16 01 10

Breadcrumbs (tenants tablets): ClusterName / TenantName / Tablets
Screen Shot 2023-06-21 at 16 00 55

Tablet page

Breadcrumbs (cluster system tablets): ClusterName / Tablets / TabletID
Screen Shot 2023-06-21 at 16 03 10

Breadcrumbs (tenants tablets): ClusterName / TenantName / Tablets / TabletID
Screen Shot 2023-06-21 at 16 03 24

Comment on lines +29 to +34
{
nodeId: NodeId,
type: Type,
state: State,
tenantName,
},
Copy link
Member Author

@artemmufazalov artemmufazalov Jun 21, 2023

Choose a reason for hiding this comment

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

Pass these params as query for immediate breadcrumbs render on Tablet page

@@ -28,6 +28,8 @@ import {clusterTabsIds} from '../Cluster/utils';
const b = cn('app');

export function Content(props) {
const location = useLocation();
Copy link
Member Author

Choose a reason for hiding this comment

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

Location was used but was not declared

const {singleClusterMode, header}: {singleClusterMode: boolean; header: HeaderItemType[]} =
useTypedSelector((state) => state);
interface HeaderProps {
mainPage?: RawBreadcrumbItem;
Copy link
Member Author

Choose a reason for hiding this comment

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

mainPage - additional breadcrumbs item for the extended versions (all clusters page)

@artemmufazalov artemmufazalov marked this pull request as ready for review June 21, 2023 13:20
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