package home import ( "net/http" "git.lohmar.co.uk/cclohmar/NextMyDay/internal/core/server" "git.lohmar.co.uk/cclohmar/NextMyDay/internal/core/web" ) // dashboard renders the user's landing page inside the core shell (SPEC-009 // §4/§7). The door has already resolved identity and gated the session/role, so // rc carries the authenticated user — the handler never parses a raw path (the // rule of the door). // // It is the reference for the module view contract: a module supplies its // CONTENT; the shell owns the header, the nav (from Registry.Nav, D-038) and // the flash area. func dashboard(w http.ResponseWriter, r *http.Request, rc *server.RequestContext) error { w.Header().Set("Cache-Control", "no-store") return web.Render(w, http.StatusOK, web.Page{ Title: "MyDay", GUID: rc.Workflow, Active: "home", Content: web.Markup(`

MyDay

Your day, at a glance.

`), }) }