fix: revert disks indicators 0859c37 #3225
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… (#3142)"
This reverts commit 0859c37.
Greptile Overview
Greptile Summary
This PR cleanly reverts commit 0859c37, which introduced visual design updates to disk indicators across the console.
What's being reverted:
var(--g-border-radius-*),var(--g-spacing-*)) back to original valuesuseEffect-based callback timing that prevented stale closuresisTopLevelStorageContexthelper and conditional highlighting logichover-dim-column-classmixin and hover color variants fromentity-state-colorsRevert quality:
The revert is clean and complete, affecting 31 files with 199 insertions and 469 deletions. All changes properly restore the codebase to its state before the original feature was merged. The diff is exactly the inverse of the original commit.
Why this might be reverted:
Based on the CI results showing flaky tests and increased bundle size, this revert likely addresses issues discovered after the original feature was merged.
Confidence Score: 5/5
Important Files Changed
File Analysis
highlighted,darkened, andnoDataPlaceholderprops, reverting to simpler component interfaceuseEffectcallback timing logic, reverting to simpler debounce implementationhover-dim-column-classmixin, simplifiedentity-state-colorsmixinhighlightedVDiskandsetHighlightedVDiskprops, simplifying component interfaceisTopLevelStorageContextusage, highlight state props, and adjusted column widths back to original valuesisTopLevelStorageContexthelper function that was used for context-aware highlightingSequence Diagram
sequenceDiagram participant User participant Component as Disks/VDisks Component participant VDisk as VDisk Item participant HoverPopup participant ProgressBar as DiskStateProgressBar Note over User,ProgressBar: BEFORE REVERT (removed functionality) User->>VDisk: Hover over disk VDisk->>HoverPopup: onMouseEnter HoverPopup->>HoverPopup: debouncedHandleShowPopup (delay) HoverPopup->>HoverPopup: setIsPopupVisible(true) HoverPopup->>HoverPopup: useEffect triggers callback HoverPopup->>Component: onShowPopup → setHighlightedVDisk(id) Component->>VDisk: Pass highlighted={true}, darkened={false/true} VDisk->>ProgressBar: Render with highlight/darken states Note over ProgressBar: CSS hover-dim-column-class applies dimming Note over User,ProgressBar: AFTER REVERT (current state) User->>VDisk: Hover over disk VDisk->>HoverPopup: onMouseEnter HoverPopup->>HoverPopup: debouncedHandleShowPopup (delay) HoverPopup->>HoverPopup: setIsPopupVisible(true) HoverPopup->>Component: onShowPopup (inline handler) Component->>Component: setHighlightedVDisk(id) - local state Component->>VDisk: Pass showPopup={true} VDisk->>ProgressBar: Render without highlight states Note over ProgressBar: No coordinated highlighting across columnsCI Results
Test Status:⚠️ FLAKY
📊 Full Report
Test Changes Summary ⏭️2
⏭️ Skipped Tests (2)
Bundle Size: 🔽
Current: 62.50 MB | Main: 62.51 MB
Diff: 0.02 MB (-0.02%)
✅ Bundle size decreased.
ℹ️ CI Information