Sign in

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

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

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

Self-hosted forge that lives in your Git repo.

Remove repository tab polling and rename Code to Source

cc7faea36a31373079df8fce68c1bc20a44873a0 · Keenan Nemetz · 3d ago · parent 0a12642f

Remove repository tab polling and rename Code to Source

The tab row no longer polls its open counts, so the /{name}/counts endpoint, its htmx trigger, and the badge animation are gone. The unfocused-window note has been removed while the other live regions still pause.

The Code tab is now Source, served at /{name}/source; links, sitemap entries, markdown tree links, and tests follow the new route.

server/routes.go +3−5

@@ -133,18 +133,16 @@ func (s *Server) adminRoutes(mux *http.ServeMux) {
133 133 func (s *Server) repoRoutes(mux *http.ServeMux) {
134 134 w := s.Web
135 135
136 // Repository summary and feed, and the header's open counts. The tabs poll
137 // the counts while the window is focused, and the overview's recent runs
138 // poll their own rows.
136 // Repository summary and feed. The overview's recent runs poll their own
137 // rows.
139 138 mux.HandleFunc("GET /{name}", w.Overview)
140 139 mux.HandleFunc("GET /{name}/overview/runs", w.OverviewRuns)
141 mux.HandleFunc("GET /{name}/counts", w.RepoCounts)
142 140 mux.HandleFunc("GET /{name}/activity", w.Activity)
143 141 mux.HandleFunc("GET /{name}/sitemap.xml", w.RepoSitemap)
144 142
145 143 // Code browsing: one route per view of a ref, with the path as a wildcard
146 144 // because a branch name may contain "/" and so may a file path.
147 mux.HandleFunc("GET /{name}/code", w.Code)
145 mux.HandleFunc("GET /{name}/source", w.Source)
148 146 mux.HandleFunc("GET /{name}/search", w.CodeSearch)
149 147 mux.HandleFunc("GET /{name}/compare", w.Compare)
150 148 mux.HandleFunc("GET /{name}/compare/{range...}", w.Compare)