Drop the 'reporting API' link from the repo header meta line #527
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub#527
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What's requested
Remove the "reporting API" link from the repo header meta line (
web/src/pages/Repo.jsx), restoring the meta line to branches · tags only. Reporting-API discoverability for check-less repos is already served by Settings → CI tokens, per the #505/#504 intent — the header link is redundant surface.Evidence
web/src/pages/Repo.jsxrepo-metadiv: a<Show when={!showChecksTab(s())}>block renders· <A href="/api#checks-ci">reporting API</A>in the meta line whenever the Checks tab is hidden. This was added as the #505 mitigation ("meta line keeps the pointer while the tab is hidden").wct_tokens.web/src/pages/Settings.jsxtab 5 "CI tokens" (admin-only) explains thewct_flow, andweb/src/pages/Apidocs.jsxcarries the full "Checks — reporting from external CI" section at/api#checks-ci.Architecture notes
/api#checks-ci.<Show>block and its #505 comment inRepo.jsx. No wire change, no cache concern (meta line renders from the already-ETag'd summary; removing a static conditional link does not touch the payload).web/src/pages/Checks.jsx, shown once the tab exists) stays — it points at the same anchor for CI authors on repos where checks are already reporting.showChecksTab(s())remains in use for the tab gate; only the meta-line pointer retires.Acceptance criteria
repo-metaline on the repo header renders only the ref picker andN branches · M tags— no "reporting API" span, including on check-less repos.web/src/pages/Checks.jsx) is unchanged.wct_report flow (the surviving discoverability path for check-less repos).Fix open as PR #538: #538 — drops the meta-line reporting-API Show block (+ #505 comment) from web/src/pages/Repo.jsx; Checks toolbar link and tab behavior unchanged. node --test 1223/1222 green (1 pre-existing live-server smoke fail, verified on pristine main); vite + esbuild green.
Review of PR #538 (fix/issue-527), verified in scratch worktree /tmp/pr538 (removed afterward) against rebased commit
4c50fee; node_modules symlinked from main; main worktree untouched and still clean.Checks against the acceptance criteria (all pass):
Conflict fix applied and pushed: the branch had forked before main merged #540/#541/#542, so docs/go/12_web_ui.md conflicted (append-append of Decisions entries). Rebases onto current origin/main in the scratch worktree, kept all three entries (#529, #531, #527 order), re-tested, force-pushed to origin/fix/issue-527 (
e2369c8->4c50fee).Test results (rebased commit): full node --test web/test/unit/*.test.js = 1241 total / 1240 pass / 1 fail — the single failure is the pre-existing live-server smoke subtest (smoke.test.js fetches the standing instance at 127.0.0.1:8080, /setup answers 403 there; branch-independent by construction, unrelated to this client-only change). Targeted checks-tab-505 + checks-tab-513: 9/9 pass. vite build green (chunk-size warning only, pre-existing).
No browser drive per task instructions (node tests + reasoning; noted explicitly).
MERGE RECOMMENDATION: ready to merge.
Fixed by PR #538 (review clean — block deleted, toolbar/CI-tokens intact, pins legitimate; review delayed by interruption, now complete), merged. Closing.