admin-insights-pages: dashboard customers+revenue (orders.amount), users->tags relation, pause customer (gates alerts), About/What-is-this/Contact pages

This commit is contained in:
2026-08-10 09:19:14 +10:00
parent d80c08306c
commit e1044f8c32
12 changed files with 119 additions and 14 deletions

View File

@@ -1,17 +1,17 @@
## 1. Schema & Go
- [ ] 1.1 `db/schema.sql`: idempotent `users.paused` + `orders.amount`; `make db-up`; `make generate`
- [ ] 1.2 `scan.go`: `shouldAlert` + FinderContact — load owner, return false when paused
- [ ] 1.3 Static pages: `about.go` handlers (About/WhatIsThis/Contact) + templates + routes + template sets
- [x] 1.1 `db/schema.sql`: idempotent `users.paused` + `orders.amount`; `make db-up`; `make generate`
- [x] 1.2 `scan.go`: `shouldAlert` + FinderContact — load owner, return false when paused
- [x] 1.3 Static pages: `about.go` handlers (About/WhatIsThis/Contact) + templates + routes + template sets
## 2. Admin
- [ ] 2.1 StatsOverview: Customers + Revenue stats
- [ ] 2.2 OrderResource: `amount` input + column; UserResource: `paused` toggle + column
- [ ] 2.3 `UserResource/RelationManagers/TagsRelationManager.php` (code, status, item type)
- [x] 2.1 StatsOverview: Customers + Revenue stats
- [x] 2.2 OrderResource: `amount` input + column; UserResource: `paused` toggle + column
- [x] 2.3 `UserResource/RelationManagers/TagsRelationManager.php` (code, status, item type)
## 3. Verification
- [ ] 3.1 New suite: paused owner → no alert (scan recorded); unpaused → alert; /about /what-is-this /contact render 200
- [ ] 3.2 Regressions (72) green; deploy (frontend binary+templates; admin rebuild/restart)
- [ ] 3.3 `openspec validate admin-insights-pages`; commit
- [x] 3.1 New suite: paused owner → no alert (scan recorded); unpaused → alert; /about /what-is-this /contact render 200
- [x] 3.2 Regressions (72) green; deploy (frontend binary+templates; admin rebuild/restart)
- [x] 3.3 `openspec validate admin-insights-pages`; commit