-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix(ClusterInfo): update links view #1746
Conversation
@@ -80,7 +61,7 @@ export const getInfo = ( | |||
if (dataCenters?.length) { | |||
info.push({ | |||
label: i18n('label_dc'), | |||
value: <Tags tags={dataCenters} gap={2} />, | |||
value: <Tags tags={dataCenters} gap={2} className={b('dc')} />, |
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.
Set element height, so info and links sections rows have the same height
@@ -29,18 +26,6 @@ const COLORS_PRIORITY: Record<EFlag, number> = { | |||
Grey: 0, | |||
}; | |||
|
|||
export const compareTablets = (tablet1: TTabletStateInfo, tablet2: TTabletStateInfo) => { |
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.
Unneeded function
} | ||
|
||
&__metrics { |
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 didn't find usages of these classes, so I deleted them
return ( | ||
<div> | ||
<div className={b('section-title')}>{i18n('title_info')}</div> | ||
<DefinitionList nameMaxWidth={200}> |
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.
200 max width is names width of InfoViewer
, it will look the same as Tablet
page
); | ||
}; | ||
|
||
const renderLinks = () => { |
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.
const linksList = links.concat(clusterLinks)
?
And farther logic should become leaner.
Closes #1741
Updated cluster links view, it now looks like Tablet page
Stand (these links are invalid, it's only to display): https://nda.ya.ru/t/O2N0YNcr7AJF5c
CI Results
Test Status: ✅ PASSED
📊 Full Report
😟 No changes in tests. 😕
Bundle Size: 🔺
Current: 65.87 MB | Main: 65.86 MB
Diff: +0.01 MB (0.02%)
ℹ️ CI Information