oficina / home Public

Operator confirm page on oficina.works looks plainer than on id.oficina.works

I added the operator confirm page on oficina.works to the list of pages drawn in estilo's door card on the sky, which is the list the id.oficina.works page is already on, and updated the comment above that list. I also gave its Open window button the same pill styling the id page uses. The page's words and behaviour are unchanged. I added two test checks that the page is drawn in the card, one with a plan waiting and one with no plan.

Partway through, the shell started refusing every command with a provider policy error, so nothing has been run. The tests, the repo's checks and gofmt are all unrun, and I couldn't start the app to take the before and after screenshots you asked for. I didn't make a preview folder, because it would have shown pictures I couldn't take. Please don't merge until the checks pass and someone has captured those screenshots.

Equipo task tkwkpraqeeer, Engineering step attempt 2.
Equipo Engineering pushed by equipo-docs-t1 agent, operated by paul@keymail.dev 262b51f7a4bc027053c6c875df6966e4cf21ed3d parent 150d94e
3 files changed, +21 −3
  • internal/home/calma.go +5 −2
  • internal/home/operator_ceremony_test.go +15 −0
  • internal/home/templates/operator_confirm.html +1 −1

CI passed — run details

CI log
amadan: .amadan/timeout: this job's budget is 20m0s (this runner allows up to 30m0s)
=== vet ===
CGO_ENABLED=0 go vet ./...
CGO_ENABLED=0 go vet -tags browser ./internal/home/
cd handoff && CGO_ENABLED=0 go vet ./...
cd roster && CGO_ENABLED=0 go vet ./...
cd dashboard && CGO_ENABLED=0 go vet ./...
cd connect && CGO_ENABLED=0 go vet ./...
cd teammode && CGO_ENABLED=0 go vet ./...
=== fmt ===
=== build ===
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build ./cmd/home ./cmd/oficina ./internal/operatorlaunch
cd handoff && CGO_ENABLED=0 go build ./...
cd roster && CGO_ENABLED=0 go build ./...
cd dashboard && CGO_ENABLED=0 go build ./...
cd connect && CGO_ENABLED=0 go build ./...
cd teammode && CGO_ENABLED=0 go build ./...
=== go-test ===
CGO_ENABLED=0 go test -count=1 ./...
?   	amadan.net/oficina/home/cmd/home	[no test files]
ok  	amadan.net/oficina/home/cmd/home-placeholder	0.979s
?   	amadan.net/oficina/home/cmd/oficina	[no test files]
ok  	amadan.net/oficina/home/internal/guardstest	0.351s
ok  	amadan.net/oficina/home/internal/home	56.118s
ok  	amadan.net/oficina/home/internal/home/directorydata	1.388s
ok  	amadan.net/oficina/home/internal/home/logtest	0.006s
ok  	amadan.net/oficina/home/internal/home/seal	0.005s
ok  	amadan.net/oficina/home/internal/home/sealtest	0.004s
ok  	amadan.net/oficina/home/internal/home/wisp	0.045s
ok  	amadan.net/oficina/home/internal/operator	6.377s
ok  	amadan.net/oficina/home/internal/operatorlaunch	4.112s
ok  	amadan.net/oficina/home/internal/provisioner	48.648s
cd handoff && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/handoff	0.671s
ok  	amadan.net/oficina/home/handoff/seal	0.002s
cd roster && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/roster	5.123s
cd dashboard && CGO_ENABLED=0 go test ./...
ok  	amadan.net/oficina/home/dashboard	0.010s
cd connect && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/connect	1.404s
ok  	amadan.net/oficina/home/connect/linkstore	0.466s
cd teammode && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/teammode	0.099s
?   	amadan.net/oficina/home/teammode/teammodetest	[no test files]
=== race ===
go test -race -count=1 ./internal/home/ ./internal/operator/ ./internal/operatorlaunch/ ./internal/home/directorydata/
ok  	amadan.net/oficina/home/internal/home	334.568s
ok  	amadan.net/oficina/home/internal/operator	82.469s
ok  	amadan.net/oficina/home/internal/operatorlaunch	22.387s
ok  	amadan.net/oficina/home/internal/home/directorydata	23.621s
ok  	amadan.net/oficina/home/internal/provisioner	399.021s
cd handoff && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/handoff	12.967s
ok  	amadan.net/oficina/home/handoff/seal	1.016s
cd roster && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/roster	6.968s
cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/dashboard	1.065s
cd connect && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/connect	6.334s
ok  	amadan.net/oficina/home/connect/linkstore	6.442s
cd teammode && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/teammode	1.969s
?   	amadan.net/oficina/home/teammode/teammodetest	[no test files]
diff --git a/internal/home/calma.go b/internal/home/calma.go
index 1f66a96..984d675 100644
--- a/internal/home/calma.go
+++ b/internal/home/calma.go
@@ -88,8 +88,10 @@ type doorView struct {
const suiteName = "Oficina"
// doorPages are the pages at the door — signing in, and everything on the
-// way in or out, and id.*'s account pages. The layout draws them as
-// estilo's door: one card on the sky with the Oficina mark, under the bar.
+// way in or out, id.*'s account pages, and the operator's confirm page on
+// both origins (Paul, 2026-11-22: oficina.works's styled as id.*'s). The
+// layout draws them as estilo's door: one card on the sky with the Oficina
+// mark, under the bar.
// The sky goes only where Calma puts it — the door, the team home's header
// and the front page's hero — so the team chooser, Open source and the
// error pages are plain pages under the bar.
@@ -116,6 +118,7 @@ var doorPages = map[string]bool{
"handoff_failed.html": true,
"signout_confirm.html": true,
"directory_signed_out.html": true,
+ "operator_confirm.html": true,
"operator_confirm_id.html": true,
"resolve.html": true,
"directory_signout_all_failed.html": true,
diff --git a/internal/home/operator_ceremony_test.go b/internal/home/operator_ceremony_test.go
index 3022520..6432aff 100644
--- a/internal/home/operator_ceremony_test.go
+++ b/internal/home/operator_ceremony_test.go
@@ -54,6 +54,9 @@ func TestOperatorDirectoryConfirmCeremony(t *testing.T) {
if page.Code != 200 || !strings.Contains(body, operatorName) || !strings.Contains(body, operatorLabel+".docs.oficina.works") || !strings.Contains(body, operatorLabel+".sheets.oficina.works") || !strings.Contains(body, "5a5a5a5a") {
t.Fatal("directory page does not show Home's copy", page.Code)
}
+ if !strings.Contains(body, "<div estilo-door estilo-sky-host>") || !strings.Contains(body, `<button type="submit" rst-btn="primary" estilo-signin-action>Open window</button>`) {
+ t.Fatal("directory confirm page is not drawn in the door's card, as id.*'s is")
+ }
// A plan id other than the pending one is refused at confirm.
wrong := exchangeRequest(f.directory, "POST", directoryOrigin+operatorConfirm, directoryOrigin, url.Values{"plan": {fixtureToken(91)}}, session)
if wrong.Code != 403 || f.openCount(t, f.directory) != 0 {
@@ -90,6 +93,18 @@ func TestOperatorDirectoryConfirmCeremony(t *testing.T) {
}
}
+// With no plan waiting, the directory confirm page is still the door's
+// card, as id.*'s is.
+func TestOperatorDirectoryConfirmWithNoPlanIsInTheDoor(t *testing.T) {
+ f := newOperatorFixture(t)
+ session := f.paulDirectory(t, f.paulCredential(t))
+ page := exchangeRequest(f.directory, "GET", directoryOrigin+operatorConfirm, "", nil, session)
+ body := page.Body.String()
+ if page.Code != 200 || !strings.Contains(body, "No plan is waiting for confirmation.") || !strings.Contains(body, "<div estilo-door estilo-sky-host>") {
+ t.Fatal("directory confirm with no plan", page.Code)
+ }
+}
+
func (f *operatorFixture) openCount(t *testing.T, a *App) int {
t.Helper()
var n int
diff --git a/internal/home/templates/operator_confirm.html b/internal/home/templates/operator_confirm.html
index 0e12dbe..e449d72 100644
--- a/internal/home/templates/operator_confirm.html
+++ b/internal/home/templates/operator_confirm.html
@@ -20,7 +20,7 @@
<form method="post" action="/operator/confirm" rst-form>
<input type="hidden" name="plan" value="{{.ID}}">
<div rst-form-foot>
- <button type="submit" rst-btn="primary">Open window</button>
+ <button type="submit" rst-btn="primary" estilo-signin-action>Open window</button>
</div>
</form>
{{end}}{{else}}