8356
Wx
www-xonecas-io / files
www-xonecas-io / tickets / 1016-browsing-files-should-have-a-sidebar-for-easier.md
2.3 KB
1--- 2id: 1016 3title: Browsing files should have a sidebar for easier navigation 4type: feature 5status: done 6priority: p2 7created: 2026-11-08T03:49:32Z 8updated: 2026-11-08T20:16:27Z 9source: devnote 10area: site 11moves: 2026-11-08T04:02:20Z inbox doing drag; 2026-11-08T04:20:55Z doing review agent; 2026-11-08T20:16:27Z review done drag 12--- 13 14## Context 15 16Filed from `http://192.168.122.10:8080/projects/mini-coder/blob/src/cli.ts/`, on `span.text-soft.font-semibold`. 17 18> mini-coder / files 19 20## Notes 21 22- 2026-11-08 03:49Z (agent): Triage: type feature (it was bug: the browser works, this adds navigation), priority p2, area site. No typos to fix. Builds on 1008, the read-only file browser (internal/site/templates/browse.html), which today shows one file or folder per page, with a breadcrumb. 23 24 Questions, since they change how it looks: (1) What does the sidebar show: the whole repo tree with folders you can expand, or only the current folder and its parents? (2) On a phone, is it hidden behind a toggle, or stacked above the file? 25 26- 2026-11-08 04:20Z (agent): Done, with my choices as you asked: on wide screens (lg, 1024px and up), file and folder pages get a sticky sidebar on the left. It shows the repo root with every folder on the way to the current page opened (▾), other folders closed (▸), and the current file or folder in bold accent. Every line links. On phones it is hidden, and the breadcrumb stays. 27 28 - internal/site/sidebar.go (new): children() lists every folder's entries once per project (also reused for the folder pages, which used to call entries() per folder); sidebar() walks down the path to the page. 29 - browse.go: BrowsePage.Side. browse.html: a two-column grid, the sidebar scrolls on its own when long. 30 - sidebar_test.go: which folders open, depth, and the marked page. 31 32 CHECKED: go vet, go test pass. Rebuilt. agent-browser on mini-coder/blob/src/cli.ts: sidebar shows bin/, src/ opened with tools/, tui/ and its files, cli.ts marked. Clicking tools/ in the sidebar opened /tree/src/tools/ with tools/ marked. Size: about 2.2 KB of a 15 KB page (Zoea-Nova README). 33 34 NOT CHECKED: phone width (hidden by class only), dark theme. The project's landing page has no sidebar; it has the file list already. A real tree with expand/collapse on click was left out: each page lists only its own path, so pages stay small.