Viewer redesign: Repositories page
Part of the viewer UI redesign (see #1319). Depends on #1320, #1321.
Summary
Restyle the Repositories landing page (GET /) to match the mockup.
Design reference

Page title "Repositories", a right-aligned "Search repositories"
input, and a table with columns Repository | Sessions | Last Modified | Action (green
Check link), with pagination at the bottom right.
Current state
- Template:
internal/viewer/templates/repos.html - Script:
internal/viewer/static/repos.js(client-side search; already externalized for CSP, see PR #758) - Handler:
handleReposininternal/viewer/handler.go
Scope
- [ ] Match header + search input styling and placement to the mockup.
- [ ] Restyle the table (column headers, row height, dividers, hover) to the new tokens.
- [ ] Style the
Checkaction as the accent link/affordance. - [ ] Align pagination control styling with the mockup.
- [ ] Preserve existing client-side search behavior and CSP compliance.
Out of scope
- Backend/data changes (repo list already provided by the handler).
Acceptance criteria
- Matches the mockup in light and dark.
- Search and pagination still work; no CSP console errors.
make checkandmake testpass; add/adjust template tests as needed.
Parallelization & conflicts
Depends on #1320/#1321. Owns repos.html + repos.js, so it runs in parallel with the other
screens (#1323, #1328). The only shared file is static/style.css — keep changes to the repos
section and rebase often.
AI disclosure: The scope, decisions and issue breakdown are my own. An AI assistant (Claude Code) was used only to polish the English wording.
I'd like to work on this.
Shared icon set is ready — no need to source icons yourself.
#1367 (part of #1321) adds the viewer's shared SVG icon set under internal/viewer/static/icons/ plus a CSP-safe icon template helper. Once it merges, render any icon inline (theme-adaptive via currentColor, no script) with {{icon "NAME"}}.
Available names: logo, search, settings, file, chevron-left, chevron-right, chevron-down. They are Ant Design Icons (MIT); logo is the project brand mark. Do not add the antd runtime or a remote iconfont.
For this page you'll likely use: search (magnifier in the search box — already wired in #1367) and chevron-left/chevron-right for the pagination controls.