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/web_test.go +3−3

@@ -375,11 +375,11 @@ func TestReadmeIsTheProjectOverview(t *testing.T) {
375 375 if !strings.Contains(body, "<h1>Demo project</h1>") || !strings.Contains(body, "How to run it.") {
376 376 t.Fatalf("README was not rendered on the overview page:\n%s", body)
377 377 }
378 // The feed has its own tab, and the code tab still renders the README too.
378 // The feed has its own tab, and the source tab still renders the README too.
379 379 if code, feed := f.get("/" + f.repo + "/activity"); code != 200 || !strings.Contains(feed, "Activity") {
380 380 t.Fatalf("repo activity page = %d", code)
381 381 }
382 if code, codePage := f.get("/" + f.repo + "/code"); code != 200 || !strings.Contains(codePage, "Demo project") {
382 if code, codePage := f.get("/" + f.repo + "/source"); code != 200 || !strings.Contains(codePage, "Demo project") {
383 383 t.Fatalf("code page = %d", code)
384 384 }
385 385 // Markdown opens as source like any other file; rendering is an explicit
@@ -450,7 +450,7 @@ func TestReadmeRelativeLinksOpenTheFileTheyName(t *testing.T) {
450 450 `href="#demo"`,
451 451 `src="/demo/raw/main/img/shot.png"`,
452 452 }
453 for _, page := range []string{"/" + f.repo, "/" + f.repo + "/code"} {
453 for _, page := range []string{"/" + f.repo, "/" + f.repo + "/source"} {
454 454 code, body := f.get(page)
455 455 if code != 200 {
456 456 t.Fatalf("%s = %d", page, code)