Fix #505: hide Checks tab when empty #510
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!510
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-505"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hides the repo Checks tab when no checks exist; reappears on first report without reload.
Server (law 4/6/8/12): summary gains always-present
has_checksbehind the newEnv.ChecksSummaryhook (CollabCounts shape — one exact-key GET on the CAS'd hot-windowchecks/index.json, nil/absent → false, +0 round trips for non-consumers; composition fails open).ETaggains the~k<index-version>suffix so the first report (no ref move) revalidates to 200, never 304. No new routes (exposed_testuntouched).Client: pure
showChecksTabhelper inweb/src/lib/tabs.js(fail-open on loading/deleted/pre-#505 servers) filters the tab render (TABS model +<For each={TABS}>intact);checkframes now invalidaterepo:{full}; a hidden-state-only shell stream reappears the tab live; deep-link/checksstill renders the empty state; header keeps the/api#checks-cireporting link while hidden (Checks toolbar link untouched). No new deps.Tests: table-driven summary wire/flip/revalidate (
summary505_test.go), HasChecks matrix + 1-GET/0-LIST budget (checks/summary_test.go), helper + source pins (checks-tab-505.test.js), frame-table + liveness pin updates.gofmt/vetclean;internal/api95.3%,internal/checks96.3%;go test -racegreen; node 1130/1131 (1 pre-existing live-server smoke fail);vite build+ esbuild green;internal/e2egreen. Docs: 07_api §9.1 + suffix lists + Decisions, 06 route table, 12_web_ui Decisions.