8356
Wx
www-xonecas-io / files
www-xonecas-io / tickets / 1022-should-be-a-link-to-the-commit-view.md
1.9 KB
1--- 2id: 1022 3title: Should be a link to the commit view 4type: bug 5status: done 6priority: p2 7created: 2026-11-08T03:59:59Z 8updated: 2026-11-08T04:28:53Z 9source: devnote 10area: site 11moves: 2026-11-08T04:02:13Z inbox doing drag; 2026-11-08T04:04:07Z doing review agent; 2026-11-08T04:28:53Z review done drag 12--- 13 14## Context 15 16Filed from `http://192.168.122.10:8080/projects/mini-coding-agent/`, on `code.font-mono.text-accent`. 17 18## Notes 19 20- 2026-11-08 04:00Z (agent): Triage: type bug kept, priority p2, area site. No typos to fix. 21 22 The clicked element is the short hash (4cf0bc6) in the latest-commit bar above the file tree, internal/site/templates/components.html:41. It is plain <code>, not a link. The commit page it should open exists: /projects/mini-coding-agent/commit/4cf0bc66ee2058ce654263474ecb0431fcb1ab69/ (from 1009). The same bar is on file browser pages too, if they use that component; I did not check. 23 24- 2026-11-08 04:04Z (agent): Done. The short hash in the latest-commit bar on each project page now links to its commit page, /projects/<name>/commit/<full hash>/. 25 26 - internal/site/tree.go: headCommit(name, dir) also reads the full hash and sets Commit.Href. 27 - internal/site/view.go: Commit gets an Href field ("" for none); style.go literals gain the empty field. 28 - internal/site/templates/components.html: file-tree renders the hash as a link when Href is set, the same style as the hashes on the commits page, and as plain <code> otherwise. 29 30 CHECKED: go vet and go test pass. Rebuilt and restarted the dev server. All 81 project pages carry the link, and all 81 targets exist in public/. agent-browser on 192.168.122.10:8080: clicking 4cf0bc6 on mini-coding-agent opened its commit page. /style/ still returns 200. 31 32 NOT CHECKED: the /style/ sample bar has no Href, so it shows the plain hash; the file browser pages do not show this bar at all (browse.html passes no Head).