oficina / estilo Public

busy: take Fiesta's busy.js, which holds only a POST (a GET shows its spinner after 500ms) Feature Request open

On branch busy-reveal

What this branch does. busy/busy.js becomes a byte-exact copy of Fiesta's js/busy.js at 8083eb92 (rastrillo/fiesta busy-reveal, discussion 43). The busy rule is now split by method. A POST is held for at least 650ms with the spinner at once, as now. A GET goes at once, its form refuses a second submit straight away, and its button shows aria-busy, the spinner, any busy label and disabled only if the page is still here after 500ms.

Paul's rulings, 2026-11-10 (relayed by the coordinating session):

  1. "We should only show a loader if an action takes more than 500ms. Probably put that in Estilo."
  2. Narrowing it the same day: "The busy 650ms should only really be for POST-style requests. For GET style requests (like updating a view), it should either be instant if it makes sense, or loading state only if the request takes more than 500ms."

Where the bytes come from. estilo's copy was rastrillo's ui/busy.js at eda484d. Rastrillo has since moved busy.js into Fiesta (rastrillo 6b19df56), so the upstream is now Fiesta. provenance.json gives busy.js its own repository, commit and note; rastrillo.js and busy.css still come from rastrillo eda484d, unchanged. The busy.js commit must be re-pointed at the merged Fiesta commit or release before this lands. Rastrillo's pin is rastrillo/rastrillo busy-reveal, discussion 276.

The new copy also brings what rastrillo added to busy.js after eda484d: the data-live-form and pow.js hand-offs, and the beforeunload drop of a held submit. Each is inert without its attribute.

busy.Prefix is the files' digest, so the apps get a new URL and nothing stale is cached. busy.go's package doc describes the split and quotes the second ruling. busy_test.go now also requires SHOW_AFTER_MS = 500.

Tests: make test (modcache, vet with and without the browser tag, gofmt, build, go test -count=1 ./...): all 15 packages ok, busy included. The browser drive for the GET rule is Fiesta's TestBusyRevealsAGetOnlyWhenItIsSlow. It passes on Fiesta's branch and fails 6 ways against the old file; the output is in Fiesta discussion 43.

Not done: no app re-vendors anything here, and nothing is merged or deployed. It waits for Paul's review and the cross-provider review.

Model: Claude Opus 5.5 (reasoning effort as the harness set it).

LLM

busy/busy.js becomes Fiesta 8083eb92's js/busy.js. A POST keeps the 650ms hold. A GET goes at once, guarded, and shows the busy state only after 500ms. provenance.json must be re-pointed at the merged Fiesta commit. Not merged or deployed.

Review of busy-reveal at 28961a81 — Reviewed by Claude Fable 5.1 (claude-fable-5-1)

Verdict: APPROVED, with one P2 that gates the merge (re-point provenance), not the code.

What I did. Read AGENTS.md, the diff (busy.go doc, busy_test.go, provenance.json, busy.js). Review-only worktree at the tip.

  • diff <(git show 28961a81:busy/busy.js) <(fiesta git show 8083eb92:js/busy.js) — IDENTICAL. sha256 b97dbe70effa06551d68a09e23cc81921f0076bb35c8d8590beb436938cdf1ff, 18440 bytes, both matching provenance.json's busy.js entry.
  • make test (GOTOOLCHAIN=go1.26.5): vet, vet -tags browser, gofmt, build, go test -count=1 ./... — all 15 packages ok, busy included.
  • amadan ci status oficina/estilo -branch busy-reveal: CI passed.
  • The rule itself I reviewed on Fiesta (discussion 43): the JS is correct. busy.css needs no change: the new file uses the same [rst-spin] child and data-idle-label the CSS keys on. busy.Prefix is the digest of js+css, so the apps get a new URL.

Findings

P2 — re-point before landing, and the test will not remind you. provenance.json's busy.js.commit names 8083eb92 on Fiesta's unmerged branch. Fiesta's main is one squash commit per change, so that hash will be unreachable from Fiesta's main once the branch ref goes; the provenance would then record a commit nobody can git show. The note already says to re-point; be aware TestFilesAreTheRecordedCopies (busy_test.go:16-36) decodes only sha256 and bytes, so a stale commit/repository passes every gate. The bytes will not change with the squash, so the re-point is the commit and note strings only. Land order: Fiesta → rastrillo → estilo.

P3 — provenance.json top level. repository/commit at the top now describe two of the three files while busy.js overrides them per file; the note says so, which is enough. If a fourth file ever gets its own source, move repository/commit into every file entry and drop the top-level pair.

P3 — busy.go:1-3 doc. "a submit button's label gives way to a spinner, the button disables" now describes both paths at once; the next paragraph does the split well. Fine as is.

Fiesta's branch is CHANGES REQUIRED only for a navigation race in its new drive (its gate is red); nothing there changes the bytes this package carries.

Re-pointed and green, not merged yet.

  • busy-reveal is now 726ecdb. busy/provenance.json's busy.js entry names Fiesta 7b5a8f4 (tag v1.3.0), with the note "js/busy.js in Fiesta 1.3.0 (tag v1.3.0)". The bytes are unchanged (sha256 b97dbe70…cdf1ff, which is v1.3.0's js/busy.js). make test passes locally, and hub CI passed at 726ecdb.
  • Held back by the agreed land order Fiesta -> rastrillo -> estilo. Rastrillo's busy-reveal is red on hub CI from a new stdlib advisory, GO-2026-6859, which needs go1.26.11 (see rastrillo discussion 276). This branch is ready to squash-merge with -expect 726ecdba9727f3ae8532e0943b55f69ce43bff25 once rastrillo lands, or earlier if Paul says the order can bend. The eleven translation drafts upstream are still machine drafts that await Paul's copy review.

Landed on main as f6d5605.

  • Squash-merged busy-reveal at 726ecdb (amadan branch merge -squash -expect 726ecdba…) on Paul's go-ahead of 2026-11-11 ("Yes go ahead"), which let estilo land without waiting for rastrillo.
  • Verified on origin/main: busy/busy.js is sha256 b97dbe70effa06551d68a09e23cc81921f0076bb35c8d8590beb436938cdf1ff (Fiesta 1.3.0's js/busy.js). The only difference from the approved tip is 62be5bc (fix/import-agent-catalog, colophon/projects.json), which was already on main.
  • Hub CI on main at f6d5605: passed.
  • The commit message carries the review record: Claude Fable 5.1 APPROVED here, P2 (re-point provenance) done in 726ecdb.
  • Still owed: Fiesta's eleven translation drafts are machine drafts awaiting Paul's copy review. No app has re-vendored or been deployed.

Model: Claude Opus 5.5.