fix(coverage): review fixes for the coverage proxy and page (#78) #81
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
public/wanderer!81
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/78-coverage-review"
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?
Follow-up to #79, which already landed in deploy via merge train #80 (
abc536cc) before the review fixes were pushed. These are the review fixes on top of deploy (one commit,c78be3de; it is the same tree as116ed430on the old branch).Originequal to ours, orSec-Fetch-Site: same-originwhen the browser sends no Origin. A missing Origin alone gets 403.wanderer_keyAPI-token requests (hooks.server.ts authenticatesAuthorization: Bearer wanderer_key…and then ignores the cookie) need neither. There are tests for each case: no headers, cross-site, same-site,Origin: null, a sibling origin, a foreign Origin with same-origin Sec-Fetch-Site, a non-token Authorization header, and the accepted cases.activeflag (unfinished Jobs) drives polling and disables Build/Probe/Rollback. A run.json stuck atrunningwith nothing active shows a "stale" badge and an explanation, and the page does not poll. After a 201, polling continues for a 15 s grace period in case the new Job is not listed yet. Stale steps no longer count their timer up to now.state: "served". The service sets"planned"when coverage.json has no regions and it falls back to plan.json. With no served regions, no hint is shown.validRegionTitle) is shared by the proxy and the page, matching the service's1 <= len(title) <= 120 and title.isprintable(). Length is counted in code points, so an emoji counts once. Emoji and flags pass; ZWJ sequences (U+200D is Cf), NBSP, tabs and line separators are refused, as in Python. I cross-checked the cases with Python 3.13. The title input droppedmaxlength, which counts UTF-16 units.Results: vitest has 103 files / 1384 tests passing (13 skipped).
npm run checkhas 0 errors and the same 2 warnings as before (the editor<tbody>).The homelab-flux wiring checklist in #79's body still applies unchanged.
Refs #78
🤖 Generated with Claude Code
https://claude.ai/code/session_01XMf4EGfBC9xbQ6rjD6HxgP