-
Notifications
You must be signed in to change notification settings - Fork 11
feat(Cluster): redesign cluster dashboard #2176
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
base: main
Are you sure you want to change the base?
Conversation
{ | ||
"403.title": "Доступ запрещен", | ||
"403.description": "У вас недостаточно прав для просмотра данной страницы.", | ||
"responseError.defaultMessage": "Ошибка запроса", | ||
"error.title": "Ошибка" | ||
} |
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.
These keys don't correspond to en
keys, please, delete
[EFlag.Yellow]: 'warning', | ||
}; | ||
|
||
const EFlagToStatusName: Record<EFlag, string> = { |
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.
It could be moved to utils so it will be together with EFlagToDescription
<Disclosure | ||
arrowPosition="end" | ||
expanded={expandDashboard} | ||
onUpdate={() => setExpandDashboard(!expandDashboard)} |
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.
setExpandDashboard(prev => !prev)
collapsed, | ||
...rest | ||
}: ClusterMetricsNetworkProps) { | ||
const [showNetworkUtilization] = useSetting<boolean>(SHOW_NETWORK_UTILIZATION); |
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.
Why do you need this setting? It is shown only if cluster endpoint supports it (v5)
<ClusterMetricsCardContent | ||
status={status} | ||
fillWidth={fill} | ||
title={i18n('title_storage')} |
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.
inverseColorize = false, | ||
fillWidth, | ||
}: ClusterMetricsBaseProps & {fillWidth: number}) { | ||
const normalizedFillWidth = fillWidth < 1 ? 0.5 : fillWidth; |
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.
Please, explain this code, it looks strange
closes #2128
Stand
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
😟 No changes in tests. 😕
Bundle Size: 🔽
Current: 83.35 MB | Main: 83.36 MB
Diff: 0.01 MB (-0.01%)
✅ Bundle size decreased.
ℹ️ CI Information