Repository navigation
Description
Goal
The file browser's toolbar, path bar and file table follow the Angular design: square icon buttons, a breadcrumb path bar that stays editable, uppercase table header on a sunken strip, 32 px mono rows with 1 px rules, accent folder icons and an inline link target. Small additions shown in the design come with it: a toolbar button for the columns menu and the design's default column order and widths.
Context
- Design reference:
docs/design/angular/screens/DeskFiles.png(desktop) anddocs/design/angular/screens/MobFiles.png(mobile toolbar). The right-hand "Selected" detail panel in DeskFiles is not part of this issue (needs a product decision, see Related Work). - Toolbar
apps/smart-ssh-community/frontend/src/components/fileBrowser/FileToolbar.tsx(both layouts; wide:194-271: Home then Parent:194-210, path input:211-226; narrow:77-169, overflow "File actions":121), elevation button and menufileBrowser/ElevationControls.tsx:55-95,fileBrowser/OtherUserForm.tsx. - Table
fileBrowser/FileTable.tsx: header with sort marker:58, header right-click opens the columns menu (only route):105-111,text-xsrows:65,138, only Permissions in mono:172, owneruser:group:177, locale date:179, "⋮" action column:220(36 px,shared.ts:37), single click on a folder navigates:155. Column ordershared.ts:8(size, permissions, owner, modified), default widthsuseFileColumns.ts:27-32(90/90/150/130), saved widths override them (spec 0053, ADR 0044). - Link marker
fileBrowser/LinkMarker.tsx:9-25shows ↪ and the target only in the hover title;RemoteEntryDto.linkTargetexists (src/generated/ipc.ts:241). - Panel frame and transfer strip placement
FileBrowserPanel.tsx:252,315-317; menusfileBrowser/FileEntryMenu.tsx,fileBrowser/DirectoryMenu.tsx,fileBrowser/ColumnsMenu.tsx(takes an anchor point:14,21; labelfileBrowser.columnsMenuexists).
Requirements
- Toolbar (wide): square 32 px icon buttons Parent, Home, Refresh; "+ Folder", "Upload", "Upload folder" as secondary buttons with icons; 1 px vertical rule; "Elevated rights" as a warning-tone outline button with the
lockicon and its ▾ menu (chev-d); paste/cancel-cut buttons while something is cut keep their place. - Path bar: breadcrumb of the current path (mono; every ancestor segment is a button that calls the existing
load(); last segment highlighted). Clicking the empty part of the bar or pressing a key/shortcut turns it into today's editable input (same label, same behaviour: Enter loads, Escape restores). The logical link path shown after following a symlink (spec 0020 §7) is unchanged. - New toolbar icon button "Show or hide columns" opens the existing
ColumnsMenuanchored to the button; header right-click keeps working. - Table: sunken header strip with
text-labelheaders and 1 px cell rules,chev-d/chev-rsort marker, 32 px rows with a 1 px bottom rule, name in Barlow with folder icons inaccent-fg, size right-aligned mono, permissions, owner and modified in 12 px mono (owner staysuser:group, date stays in the locale format), "more" icon button in a 44 px action column, row hover insurface-hover. - Default column order Name, Size, Permissions, Modified, Owner and default widths 110/130/170/150 px (saved user widths and hidden columns keep winning).
- Symlinks show the target inline after the name as faint mono "→ target" (truncated with the full value in
title; it is server-controlled text and stays escaped), broken links keep their marking. - Narrow toolbar (MobFiles): square Parent button, mono path box (last segment bright), ⋯ button with
aria-label"Directory actions" (new string); the Home button and the editable path stay available (Home in the ⋯ sheet if space is short). - Menus and the elevated-mode frame use the foundation primitives; no behaviour change of any menu entry.
- Keyboard: every breadcrumb segment and toolbar button is reachable by Tab with a visible focus ring; the table keeps its current keyboard behaviour.
- New strings in all 25 locales.
Acceptance Criteria
- The desktop file browser matches
docs/design/angular/screens/DeskFiles.pngfor toolbar, path bar and table (without the detail panel); the narrow toolbar matchesdocs/design/angular/screens/MobFiles.png. - Clicking a breadcrumb segment of
/var/www/shoploads/var/www; switching the bar to edit mode, typing/etcand pressing Enter loads/etc; Escape restores the breadcrumb. - The columns toolbar button opens the columns menu; hiding a column there persists as before.
- Without saved layout the columns appear as Name, Size, Permissions, Modified, Owner with the new default widths; with a saved layout the saved widths and hidden columns apply.
- A symlink row shows "→ " in the name cell, truncated with the full value in
title. - The elevated-rights button and menu, paste/cancel-cut, local-edit actions and all entry-menu actions work as before.
- Keyboard navigation through toolbar, path bar and table works, with a visible focus ring; axe scans in
e2e/tests/file-browser.spec.tsande2e/tests/accessibility.spec.tspass. - The colour guard (
src/theme/colourGuard.test.ts) passes. - New strings exist in all 25 locales.
- Spec 0053 (column order, columns-menu route, sort marker), spec 0020 §5/§7 (path bar, inline link target) and spec 0113 §5b (narrow toolbar, "Directory actions") describe the new state.
- Unit tests
FileBrowserPanel.test.tsx,FileBrowserPanel.links.test.tsx,FileBrowserPanel.sort.test.tsx,FileBrowserPanel.startDirectory.test.tsx,FileBrowserPanel.elevationAllowed.test.tsx,fileBrowser/useFileColumns.test.tsxand e2ee2e/tests/file-browser.spec.tsare updated for the new structure and labels. - Relevant automated tests pass
Technical Notes
- Visual only for the table: no selection state, no new click behaviour (single click on a folder still navigates).
FileBrowserPanel.test.tsxchecks classes (sticky header:240-243, hover classes:533-535); switch those assertions to roles, labels or test ids.- Attach before/after screenshots (
SCREENSHOT_LABEL,e2e/support/screenshots.ts) in both themes.
Files: apps/smart-ssh-community/frontend/src/components/FileBrowserPanel.tsx, apps/smart-ssh-community/frontend/src/components/fileBrowser/FileToolbar.tsx, FileTable.tsx, ColumnsMenu.tsx, ColumnResizeHandle.tsx, LinkMarker.tsx, shared.ts, useFileColumns.ts, ElevationControls.tsx, OtherUserForm.tsx, FileEntryMenu.tsx, DirectoryMenu.tsx (all under src/components/fileBrowser/), tests listed above, apps/smart-ssh-community/frontend/src/locales/*/common.json, apps/smart-ssh-community/frontend/e2e/tests/file-browser.spec.ts, docs/specs/0053-filemanager-layout.md, docs/specs/0020-sftp-file-transfer.md, docs/specs/0113-schmales-layout.md
Spec impact: update 0053, update 0020, update 0113
Open questions
- Path bar edit mode: recommendation: a click on the bar's free area or on the last segment switches to the input (as in common file managers), plus Ctrl/Cmd+L when the file browser has focus.
Related Work
- Part of the Angular redesign (docs/design/angular/). Blocked by: Redesign: shared SVG icon set replaces emoji and glyph icons #1363 (icon-set). Blocks: Redesign: narrow file list, transfer list and file status strips in the Angular style #1374 (files-narrow-transfers).
- The detail panel on the right of DeskFiles is listed separately for a product decision.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
feat(frontend): file browser toolbar, breadcrumb path bar and table i…
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1407. Implemented the redesigned file browser toolbar, breadcrumb path bar (editable via empty-area click, last segment or Ctrl/Cmd+L), columns toolbar button, restyled table with default order/widths and inline link targets, narrow toolbar with Directory actions; specs 0053/0020/0113, 25 locales and tests updated. Vitest, lint, Playwright file-browser and a11y specs pass and CI is green (PR 1407). No before/after screenshots attached; visual match to the design PNGs needs a manual check.
smart-ssh-reviewer commentedon Nov 20, 2026
Review: 1. Attach the before/after screenshots the issue asks for (SCREENSHOT_LABEL, e2e/support/screenshots.ts), wide and narrow, light and dark themes. AC 1 (match DeskFiles/MobFiles) is only 'partly met' without them. 2. FileToolbar.tsx:233-235: the new plus icon plus the existing '+ Folder' label renders a double plus; the design shows '+ FOLDER' without an icon. Drop one of them. 3. docs/specs/0020-sftp-file-transfer.md §7 says the hover text holds the full link target, but LinkMarker caps it at 200 characters. Document the cap in the spec.
fix(frontend): drop duplicate plus on new-folder button, document lin…
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1407. Review points addressed: duplicate plus removed from the new-folder button, spec 0020 documents the 200-char link hover cap, before/after screenshots (light/dark, wide/narrow) added to the PR. CI green.
smart-ssh-reviewer commentedon Nov 20, 2026
Review: 1. Narrow-toolbar screenshots are still missing (AC 1, MobFiles): the attached 390x844 'file-browser-list' captures come from the wide test and show the AI tab, not the file browser. Attach before/after captures of the narrow tests (file-browser-narrow-list / -overflow / -menu, file-browser.spec.ts:231,242,261) in light and dark. Add the SCREENSHOT_SCHEME dark hook to those tests too, and update the PR body's AC section, which still says no screenshots are attached. The double plus and the spec 0020 hover cap are fixed.
test(e2e): dark scheme and open-menu captures for narrow file browser (…
test(e2e): menu stays open after captureCurrent (#1373)
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1407. Review point fixed: narrow tests honour SCREENSHOT_SCHEME=dark, open-menu states captured without resize, before/after narrow screenshots (light+dark) added to the PR body. CI green on 3dce914.
smart-ssh-reviewer commentedon Nov 20, 2026
Review passed – moving on to merge. Approved. The narrow-toolbar finding is fixed: the narrow tests honour SCREENSHOT_SCHEME=dark, and the narrow before/after captures in light and dark are attached. Verified locally against MobFiles.png. The file-browser e2e tests passed 42/42, and the changed narrow tests passed 5x repeated in light and dark. Vitest (322 passed), tsc and lint pass, and CI is green on 3dce914. Follow-ups (non-blocking): keep the typed path when a load after Enter fails; restore 'name -> target' in the symlink name title; add tests for the inactive chev-r marker, last-segment edit mode and Cmd+L.
feat(frontend): file browser toolbar, path bar and table in the Angul…
smart-ssh-coordinator commentedon Nov 20, 2026
Merged and branch deleted: PR #1407 (squash) in develop
smart-ssh-planner commentedon Nov 20, 2026
Follow-ups filed: #1415 Keep the typed path in the path bar when the load fails and show the symlink target on name hover; #1416 Tests for the inactive sort marker, last-segment edit mode, Cmd+L and a timing fix in the columns menu test.