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/compress_test.go +2−2

@@ -51,7 +51,7 @@ func TestPagesAreCompressedWhenTheClientAsks(t *testing.T) {
51 51 f := newFixture(t)
52 52 f.publish(f.repo)
53 53
54 resp := f.gzipGet(t, "/"+f.repo+"/code", nil)
54 resp := f.gzipGet(t, "/"+f.repo+"/source", nil)
55 55 if resp.StatusCode != http.StatusOK {
56 56 t.Fatalf("code page = %d", resp.StatusCode)
57 57 }
@@ -82,7 +82,7 @@ func TestCompressionIsOptional(t *testing.T) {
82 82 f := newFixture(t)
83 83 f.publish(f.repo)
84 84
85 resp := f.gzipGet(t, "/"+f.repo+"/code", map[string]string{"Accept-Encoding": "identity"})
85 resp := f.gzipGet(t, "/"+f.repo+"/source", map[string]string{"Accept-Encoding": "identity"})
86 86 if resp.StatusCode != http.StatusOK {
87 87 t.Fatalf("code page = %d", resp.StatusCode)
88 88 }