Files
pipelines/app/notes/files-path-breadcrumb.md
T
alan a440859108 Fit long Files breadcrumb labels to the panel
Each folder in the path gets a maximum width (the current folder the
whole row) and its label is shortened in the middle to what actually
fits, measured with the label's style, so a long name never pushes the
current folder out of a narrow panel.
2026-11-12 23:13:08 +00:00

19 lines
1.2 KiB
Markdown

# Files path breadcrumb
Implemented an end-aligned, horizontally scrollable breadcrumb for the chat
Files panel. It pins to the newest folder after navigation and layout changes,
keeps every segment tappable, allows manual scrolling to earlier segments, fades
the leading edge, and middle-ellipsizes long segment labels.
Affected states: deep paths, navigation to a new folder, tapping an earlier
segment, and resized/bounded panel layouts. The implementation is shared by
phone and desktop Material layouts and does not depend on theme brightness.
Focused regression: `files_panel_test.dart` verifies the deep leaf remains
fully visible at the trailing edge, deeper navigation pins the new leaf,
middle-ellipsizes long labels, and tapping an earlier segment requests that
folder. `tool/memwatch/full.sh 'test/features/chat/files/files_panel_test.dart test/features/chat/files/files_controller_persistence_test.dart'` passes (21 tests); `tool/analyze.sh` is clean. The capture fixture now starts at a deep
path and includes a long folder entry for rendered review. The fixture also
retains the remembered-folder missing-path switch from the concurrent Files
folder persistence change.