Space Usage Tool: improvements - #11082
Conversation
…ction info on the bottom of the screen
|
🖥️ App preview is ready! 🔗 Preview URL: https://pr-11082.trilium-app.pages.dev ✅ All checks passed This preview will be updated automatically with new commits. |
Bundle ReportChanges will increase total bundle size by 45.11kB (0.04%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: client-esmAssets Changed:
Files in
Files in
view changes for bundle: standalone-esmAssets Changed:
|
…at/space-usage-tool-improvements
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Greptile SummaryThe PR improves the Space Usage tool for touch interaction and narrow mobile layouts.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/client/src/widgets/react/ScrollableLabel.tsx | Adds overflow fades and optional automatic scrolling while preserving user handoff across overflow-driven effect reruns. |
| apps/client/src/widgets/type_widgets/space_usage/browse.tsx | Adds touch selection and breadcrumb scrolling and replaces the raw details action with the shared Button. |
| apps/client/src/widgets/type_widgets/space_usage/index.tsx | Coordinates responsive Space Usage state, loading, selection, and mobile interaction behavior. |
| apps/client/src/widgets/type_widgets/space_usage/selection.tsx | Renders the persistent selection details strip with scrollable path and name labels. |
| apps/client/src/widgets/react/charts/DonutChart.tsx | Extends donut segments with labels and controlled selection styling. |
Reviews (5): Last reviewed commit: "Merge branch 'feat/space-usage-tool-impr..." | Re-trigger Greptile
…om/TriliumNext/Trilium into feat/space-usage-tool-improvements
The Space Usage tool is now usable on a phone. The treemap is drawn several screens tall and scrolled through rather than squeezed into one, since a narrow screen gives it no width to spread across, and tapping any cell or ring segment names it in a strip along the foot of the screen: where the note sits, what it is called and how much it takes. That strip is what replaces hovering, which a touch screen cannot do, and it is also where the note's actions are reached. Long names and paths are no longer cut off but scrolled, with the ends fading away to say that they carry on, and a path reads itself out on its own so you can see where a note lives without touching anything.
Selecting and acting on a phone
@media (hover: hover), so a tapped mark does not stay hovered.noTooltipOnTouchtoActionButtonand use it for Browse's back arrow, moving its label toaria-label.Mobile layout
Scrollable labels
ScrollableLabel, a single line swiped rather than cut off, fading at whichever end it carries on past.autoScroll, walking a line to its end at 30 pixels a second and stopping there.prefers-reduced-motion.Chart primitives
selectedItemIdtoTreemapandselectedSegmentIdtoDonutChart.label, for naming it away from the chart.