Skip to content

feat: redesign Storage section #2608

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 11 commits into
base: main
Choose a base branch
from
Open

feat: redesign Storage section #2608

wants to merge 11 commits into from

Conversation

astandrik
Copy link
Collaborator

@astandrik astandrik commented Jul 23, 2025

Closes #2446

Stand

CI Results

Test Status: ❌ FAILED

πŸ“Š Full Report

Total Passed Failed Flaky Skipped
354 139 212 1 2
Test Changes Summary ⏭️2

⏭️ Skipped Tests (2)

  1. Scroll to row, get shareable link, navigate to URL and verify row is scrolled into view (tenant/diagnostics/tabs/queries.test.ts)
  2. Copy result button copies to clipboard (tenant/queryEditor/queryEditor.test.ts)

Bundle Size: πŸ”Ί

Current: 85.29 MB | Main: 85.26 MB
Diff: +0.03 MB (0.03%)

⚠️ Bundle size increased. Please review.

ℹ️ 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.

@astandrik
Copy link
Collaborator Author

bugbot run

Copilot

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@astandrik astandrik requested a review from Copilot July 23, 2025 15:02
@astandrik
Copy link
Collaborator Author

bugbot run

Copilot

This comment was marked as outdated.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

βœ… Bugbot reviewed your changes and found no bugs!


Was this report helpful? Give feedback by reacting with πŸ‘ or πŸ‘Ž

Base automatically changed from astandrik.2445-3 to main July 24, 2025 18:22
@astandrik astandrik requested a review from Copilot July 24, 2025 19:58
@astandrik
Copy link
Collaborator Author

bugbot run

Copilot

This comment was marked as outdated.

@astandrik astandrik requested a review from Copilot July 24, 2025 21:45
@astandrik
Copy link
Collaborator Author

bugbot run

Copilot

This comment was marked as outdated.

@astandrik
Copy link
Collaborator Author

bugbot run

@astandrik astandrik requested a review from Copilot July 24, 2025 21:52
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR redesigns the Storage section of the tenant overview page by restructuring the UI to use tabs for different storage views and modernizing the progress visualization components.

  • Reorganizes storage content into tabbed interface with separate views for Tables and Groups
  • Replaces existing ProgressViewer component with a new ProgressWrapper implementation
  • Adds query parameter management for storage tab state persistence

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/utils/progress.ts Adds shared progress formatting utilities extracted from ProgressViewer
src/store/reducers/tenant/types.ts Adds TenantStorageTab type for storage tab management
src/store/reducers/tenant/tenant.ts Improves type safety for metrics tab validation
src/store/reducers/tenant/constants.ts Defines constants for storage tab IDs
src/containers/Tenant/TenantPages.tsx Removes unused cpuTab from TenantTabsGroups
src/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json Adds i18n keys for new storage section titles
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/useTenantStorageQueryParams.ts Implements query parameter management for storage tabs
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/i18n/ Creates i18n files for ProgressWrapper component
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/constants.ts Defines constants for progress component configuration
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.tsx Removes hardcoded title from TopTables component
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.tsx Restructures storage UI with tabs and new ProgressWrapper
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.scss Adds styling for tabbed storage interface
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/ProgressWrapper.tsx Implements new progress visualization component
src/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.scss Updates spacing to use design tokens
src/components/ProgressViewer/ Refactors to use shared progress utilities
src/components/MemoryViewer/MemoryViewer.tsx Updates import path for FormatProgressViewerValues type
src/components/InfoViewer/ Adds small variant styling option

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

βœ… Bugbot reviewed your changes and found no bugs!


Comment on lines +1 to +4
{
"alert_no-data": "No data",
"context_capacity-usage": "{{value}} of {{capacity}}"
}
Copy link
Member

Choose a reason for hiding this comment

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

It is and src/components/ProgressViewer/i18n/en.json are duplicates

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What do you suggest?

Copy link
Collaborator Author

@astandrik astandrik Jul 25, 2025

Choose a reason for hiding this comment

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

image

cluster also has this key

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

key in ProgressView is unused - removed it

Comment on lines 11 to 20
// Parse and validate storageTab with fallback to tables
const storageTab: TenantStorageTab = (() => {
if (!queryParams.storageTab) {
return TENANT_STORAGE_TABS_IDS.tables;
}
const validTabs = Object.values(TENANT_STORAGE_TABS_IDS) as string[];
return validTabs.includes(queryParams.storageTab)
? (queryParams.storageTab as TenantStorageTab)
: TENANT_STORAGE_TABS_IDS.tables;
})();
Copy link
Member

Choose a reason for hiding this comment

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

export const tenantStorageTabSchema = z
    .nativeEnum(TENANT_STORAGE_TABS_IDS)
    .catch(TENANT_STORAGE_TABS_IDS.tables);

const tab = tenantStorageTabSchema.parse(queryParams.storageTab);

const clampedFillWidth = Math.min(fillWidth, MAX_PERCENTAGE);

const [valueText, capacityText] = React.useMemo(() => {
if (formatValues) {
Copy link
Member

Choose a reason for hiding this comment

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

formatValues is always defined

@astandrik astandrik requested a review from artemmufazalov July 25, 2025 13:25
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.

redesign Storage section
2 participants