Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software:2222/vole.git

A free and open-source forge that lives in your Git repo.

Add repository search, list pagination, and theme/a11y polish

5cab7b18548e5263c01549cb61415fd7777d1758 · Keenan Nemetz · 15d ago · parent 0b26547e

Add repository search, list pagination, and theme/a11y polish

The chrome and the index page search repository names and descriptions after the same read filter, so a private repository cannot appear. Issues and changes paginate at 25 rows with filters and HTMX navigation preserved.

Polish from the UI plan: a light token block follows prefers-color-scheme, a skip link and focus-visible outlines help keyboard users, panels scroll horizontally on narrow screens, and the empty index/search states explain what is visible. Also fixes a flaky key assertion in the admin users test.

server/web/templates/requests.html +7

@@ -52,6 +52,13 @@
52 52 </tbody>
53 53 </table>
54 54 </div>
55 {{if gt .Pager.Pages 1}}
56 <nav class="pager" aria-label="Change pages">
57 {{if .Pager.PrevURL}}<a class="button secondary" href="{{.Pager.PrevURL}}" hx-get="{{.Pager.PrevURL}}" hx-target="#change-list" hx-swap="outerHTML" hx-push-url="true">Previous</a>{{else}}<span></span>{{end}}
58 <span class="muted">Showing {{.Pager.From}}–{{.Pager.To}} of {{.Pager.Total}} · page {{.Pager.Page}} of {{.Pager.Pages}}</span>
59 {{if .Pager.NextURL}}<a class="button secondary" href="{{.Pager.NextURL}}" hx-get="{{.Pager.NextURL}}" hx-target="#change-list" hx-swap="outerHTML" hx-push-url="true">Next</a>{{else}}<span></span>{{end}}
60 </nav>
61 {{end}}
55 62 {{else if and (eq .State "open") .Closed}}
56 63 <div class="empty-state">
57 64 <p>No open changes. {{.Closed}} closed.</p>