Commit c9f886a5d1

c9f886a5d1882746e1abe49887b427855880a561

parent: b4bd5b3b3c

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-17 16:46 UTC

web: the dashboard aside stops repeating the rail's pinned list

Ref #218
e2e/dashboard_test.go +1 −1
@@ -93,7 +93,7 @@ func TestDashboard(t *testing.T) {
9393 t.Fatalf("dashboard: %d", status)
9494 }
9595 for _, want := range []string{
96 ">Pinned</h2>", ">app<", // pinned group in the aside
96 `aria-labelledby="rail-pinned"`, `</span>app</a>`, // rail lists the pinned repo
9797 "Waiting on your review", "Assigned to you", "Recent activity",
9898 "from bob", "alice/app!1", "todo one", "alice/app#1",
9999 `href="/alice/app/mrs/1"`, `href="/alice/app/issues/1"`,
internal/web/templates/dashboard.html −5
@@ -31,11 +31,6 @@
3131</div>
3232
3333<aside class="aside">
34 <div class="grp">
35 <h2>Pinned</h2>
36 {{range .Pinned}}<p class="row"><a href="/{{.OwnerName}}/{{.Name}}"><span class="owner">{{.OwnerName}}/</span>{{.Name}}</a>{{if eq .Visibility "private"}} <span class="chip">Private</span>{{end}}</p>
37 {{else}}<p class="none">Pin a repository to keep it here</p>{{end}}
38 </div>
3934 <div class="grp">
4035 <h2>Recent activity</h2>
4136 {{range .Feed}}<p class="row feedline"><a href="/{{.Actor}}">{{.Actor}}</a> {{.Verb}} <a href="{{.URL}}">{{.Ref}}</a><br><span class="none">{{.Repo}} · {{when .When}}</span></p>