Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Raubzeug
Copy link
Contributor

@Raubzeug Raubzeug commented Apr 18, 2025

closes #2128
Stand

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
318 317 0 1 0

😟 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
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

@Raubzeug Raubzeug linked an issue Apr 18, 2025 that may be closed by this pull request
@Raubzeug Raubzeug changed the title feat(Cluster): redesign query dashboard feat(Cluster): redesign cluster dashboard Apr 18, 2025
Comment on lines +1 to +6
{
"403.title": "Доступ запрещен",
"403.description": "У вас недостаточно прав для просмотра данной страницы.",
"responseError.defaultMessage": "Ошибка запроса",
"error.title": "Ошибка"
}
Copy link
Member

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> = {
Copy link
Member

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)}
Copy link
Member

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);
Copy link
Member

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')}
Copy link
Member

Choose a reason for hiding this comment

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

In collapsed state it is labeled with Storage (title={i18n('title_storage')})

Screenshot 2025-04-22 at 13 59 15

inverseColorize = false,
fillWidth,
}: ClusterMetricsBaseProps & {fillWidth: number}) {
const normalizedFillWidth = fillWidth < 1 ? 0.5 : fillWidth;
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants