Sign-in is the Oficina door
Paul, 2026-09-29: every app's sign-in should be a version of the Oficina sign-in screen. estilo's chrome now draws estilo-signin and friends as Home's door — one card on the suite's sky, this app's mark and name at its head, in its colour. This app passes App and Sky (sky.For(r.Host): each instance's door has its own sky), serves sky.css and the sky's images (sky.Handler, public, closed set).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 files changed,
+19
−2
go.mod+1 −1go.sum+2 −0internal/docs/app.go+3 −0internal/docs/auth.go+5 −0internal/docs/home_render.go+3 −0internal/docs/render.go+4 −1internal/docs/views/layout.html+1 −0
CI passed — run details
Intent
diff --git a/go.mod b/go.mod| index 0c72b5a..28e1fd0 100644 |
| --- a/go.mod |
| +++ b/go.mod |
| @@ -3,7 +3,7 @@ module github.com/carlosframework/docs |
| go 1.26.5 |
| require ( |
| - amadan.net/oficina/estilo.git v0.0.0-20260929165053-846b39772f3c |
| + amadan.net/oficina/estilo.git v0.0.0-20260929183653-cc2c1e56fb4b |
| amadan.net/oficina/home/handoff v0.0.0-20260908102137-481d2d57f489 |
| amadan.net/oficina/home/roster v0.0.0-20260908123429-74dda570e0cf |
| amadan.net/rastrillo/native/server v0.0.0-20260923173546-2a5d07b2c8d3 |
diff --git a/go.sum b/go.sum| index 14bcf6a..130617c 100644 |
| --- a/go.sum |
| +++ b/go.sum |
| @@ -8,6 +8,8 @@ amadan.net/oficina/estilo.git v0.0.0-20260929095838-0994675f496e h1:LTSmIWUS8RjP |
| amadan.net/oficina/estilo.git v0.0.0-20260929095838-0994675f496e/go.mod h1:4u0jNBtIdMLOsJyrScfqoEuYDJF7BBM3qM9YWbzt6aw= |
| amadan.net/oficina/estilo.git v0.0.0-20260929165053-846b39772f3c h1:YYocIz3r3b4oIA0K/58JkSsmyTOCzMT/2GaW/MFbbPo= |
| amadan.net/oficina/estilo.git v0.0.0-20260929165053-846b39772f3c/go.mod h1:4u0jNBtIdMLOsJyrScfqoEuYDJF7BBM3qM9YWbzt6aw= |
| +amadan.net/oficina/estilo.git v0.0.0-20260929183653-cc2c1e56fb4b h1:UOxYBKsOSRHcHHYNKt0i6cB1Z4yT2soywOTWURYvBWo= |
| +amadan.net/oficina/estilo.git v0.0.0-20260929183653-cc2c1e56fb4b/go.mod h1:4u0jNBtIdMLOsJyrScfqoEuYDJF7BBM3qM9YWbzt6aw= |
| amadan.net/oficina/home/handoff v0.0.0-20260908102137-481d2d57f489 h1:RPKtyry/71i06o8L+gjAaUyexbmG56kO1YPs601URAM= |
| amadan.net/oficina/home/handoff v0.0.0-20260908102137-481d2d57f489/go.mod h1:YISpzFJ+iMgrM0rUL032OSzsAQbP4/nozvXLCCOcn1k= |
| amadan.net/oficina/home/roster v0.0.0-20260908123429-74dda570e0cf h1:SRKjCUgtk42WwR7VSn+V0eLNk20mfiY8dQmzdw13Sbo= |
diff --git a/internal/docs/app.go b/internal/docs/app.go| index 7a31d01..9e325c8 100644 |
| --- a/internal/docs/app.go |
| +++ b/internal/docs/app.go |
| @@ -11,6 +11,7 @@ |
| package docs |
| import ( |
| + "amadan.net/oficina/estilo.git/sky" |
| "context" |
| "errors" |
| "fmt" |
| @@ -614,6 +615,8 @@ func New(cfg Config) (*App, error) { |
| r.Handle(brand.Prefix+"*", brand.Handler()) |
| // Onest, Calma's typeface, served by estilo under its versioned prefix. |
| r.Handle(theme.FontPrefix+"*", theme.FontHandler()) |
| + // The sky behind the sign-in door: a closed set of SVGs, public. |
| + r.Handle(sky.Prefix+"*", sky.Handler()) |
| // Everything else needs a real, signed-in person — rastrillo |
| // SKILL.md §5/§1's "signed-in routes... in a Group with |
diff --git a/internal/docs/auth.go b/internal/docs/auth.go| index 7a0c508..41c06d7 100644 |
| --- a/internal/docs/auth.go |
| +++ b/internal/docs/auth.go |
| @@ -15,6 +15,7 @@ import ( |
| "amadan.net/oficina/estilo.git/brand" |
| "amadan.net/oficina/estilo.git/chrome" |
| + "amadan.net/oficina/estilo.git/sky" |
| rauth "github.com/carlosframework/rastrillo/auth" |
| "github.com/carlosframework/rastrillo/mail" |
| "github.com/carlosframework/rastrillo/sessions" |
| @@ -488,6 +489,8 @@ func (h *handlers) signin(w http.ResponseWriter, r *http.Request) { |
| title = rastrillo.T(r, "docs.signin.sent.title") |
| data.Sent = &chrome.SignInNotice{ |
| Icon: icon, |
| + App: "Docs", |
| + Sky: sky.For(r.Host), |
| Heading: title, |
| Body: rastrillo.T(r, "docs.signin.sent.body"), |
| Link: &chrome.Link{Href: h.signinAgainHref(r), Label: rastrillo.T(r, "docs.signin.sent.again")}, |
| @@ -495,6 +498,8 @@ func (h *handlers) signin(w http.ResponseWriter, r *http.Request) { |
| } else { |
| form := &chrome.SignIn{ |
| Icon: icon, |
| + App: "Docs", |
| + Sky: sky.For(r.Host), |
| Heading: title, |
| Action: "/signin", |
| AddressLabel: rastrillo.T(r, "docs.signin.address.label"), |
diff --git a/internal/docs/home_render.go b/internal/docs/home_render.go| index 7baf3bd..f2a22be 100644 |
| --- a/internal/docs/home_render.go |
| +++ b/internal/docs/home_render.go |
| @@ -5,6 +5,7 @@ import ( |
| "amadan.net/oficina/estilo.git/brand" |
| "amadan.net/oficina/estilo.git/chrome" |
| + "amadan.net/oficina/estilo.git/sky" |
| "github.com/carlosframework/rastrillo" |
| ) |
| @@ -35,6 +36,8 @@ func (rd *renderer) homeLink(w http.ResponseWriter, r *http.Request, state, addr |
| // in going back through Home. |
| page.SignedOut = &chrome.SignInNotice{ |
| Icon: brand.Path("docs"), |
| + App: "Docs", |
| + Sky: sky.For(r.Host), |
| Heading: rastrillo.T(r, "docs.signedout.heading"), |
| Body: rastrillo.T(r, "docs.signedout.body"), |
| Link: &chrome.Link{Href: "/signin", Label: rastrillo.T(r, "docs.chrome.signin")}, |
diff --git a/internal/docs/render.go b/internal/docs/render.go| index 70f89c9..7755cb1 100644 |
| --- a/internal/docs/render.go |
| +++ b/internal/docs/render.go |
| @@ -1,6 +1,7 @@ |
| package docs |
| import ( |
| + "amadan.net/oficina/estilo.git/sky" |
| "bytes" |
| "embed" |
| "fmt" |
| @@ -658,7 +659,9 @@ func vendoredStaticFS() (fs.FS, error) { |
| "static/estilo/base.css": {Data: base.CSS()}, |
| "static/estilo/menu.css": {Data: estilomenu.CSS()}, |
| "static/estilo/chrome.css": {Data: chrome.CSS()}, |
| - "static/estilo/chrome.js": {Data: chrome.JS()}, |
| + // The sky behind the sign-in door; images from sky.Handler. |
| + "static/estilo/sky.css": {Data: sky.CSS()}, |
| + "static/estilo/chrome.js": {Data: chrome.JS()}, |
| } |
| for _, name := range []string{"icon-32.png", "apple-touch-icon.png", "brand.css", "LICENSE.lucide"} { |
| body, err := brandFS.ReadFile("brand/" + name) |
diff --git a/internal/docs/views/layout.html b/internal/docs/views/layout.html| index afcdb10..bfffd90 100644 |
| --- a/internal/docs/views/layout.html |
| +++ b/internal/docs/views/layout.html |
| @@ -25,6 +25,7 @@ |
| <link rel="stylesheet" href="{{asset "static/estilo/base.css"}}"> |
| <link rel="stylesheet" href="{{asset "static/estilo/menu.css"}}"> |
| <link rel="stylesheet" href="{{asset "static/estilo/chrome.css"}}"> |
| +<link rel="stylesheet" href="{{asset "static/estilo/sky.css"}}"> |
| <script defer src="{{asset "static/rastrillo.js"}}"></script> |
| <script defer src="{{asset "static/estilo/busy.js"}}"></script> |
| {{iconAssets}} |