-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: main
Are you sure you want to change the base?
Conversation
e842216
to
02fc2b1
Compare
bugbot run |
bugbot run |
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.
β Bugbot reviewed your changes and found no bugs!
Was this report helpful? Give feedback by reacting with π or π
d406716
to
21600f4
Compare
21600f4
to
7477f0e
Compare
bugbot run |
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/ProgressWrapper.tsx
Show resolved
Hide resolved
bugbot run |
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/ProgressWrapper.tsx
Outdated
Show resolved
Hide resolved
bugbot run |
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.
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 |
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/ProgressWrapper.tsx
Outdated
Show resolved
Hide resolved
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/ProgressWrapper.tsx
Outdated
Show resolved
Hide resolved
src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.tsx
Outdated
Show resolved
Hide resolved
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.
β Bugbot reviewed your changes and found no bugs!
{ | ||
"alert_no-data": "No data", | ||
"context_capacity-usage": "{{value}} of {{capacity}}" | ||
} |
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 is and src/components/ProgressViewer/i18n/en.json are duplicates
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.
What do you suggest?
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.
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.
key in ProgressView is unused - removed it
// 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; | ||
})(); |
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.
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) { |
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.
formatValues
is always defined
Closes #2446
Stand
CI Results
Test Status: β FAILED
π Full Report
Test Changes Summary βοΈ2
βοΈ Skipped Tests (2)
Bundle Size: πΊ
Current: 85.29 MB | Main: 85.26 MB
Diff: +0.03 MB (0.03%)
βΉοΈ CI Information