scan-flow: geolocation scan, location-aware SMS throttle (log sender), finder contact, sms_enabled toggle, branding — 19/19 phase-2 scenarios pass

This commit is contained in:
2026-08-05 18:23:34 +10:00
parent 4666751e92
commit c2fa04afd0
26 changed files with 698 additions and 43 deletions

View File

@@ -9,6 +9,7 @@ import (
"wherewoof/frontend/internal/auth"
"wherewoof/frontend/internal/db"
"wherewoof/frontend/internal/sms"
)
// Templates maps a page key to its parsed template set (base + page + partials).
@@ -20,11 +21,12 @@ type Templates map[string]*template.Template
type App struct {
Queries *db.Queries
Tpl Templates
Sender sms.Sender
}
// New returns an App with the given query layer and template sets.
func New(queries *db.Queries, tpl Templates) *App {
return &App{Queries: queries, Tpl: tpl}
// New returns an App with the given query layer, template sets, and SMS sender.
func New(queries *db.Queries, tpl Templates, sender sms.Sender) *App {
return &App{Queries: queries, Tpl: tpl, Sender: sender}
}
// PageData is the root data passed to the base layout.