spaxel/mothership/internal
jedarden 37571ece97 api/notifications: register preview endpoint in main.go
The GET /api/notifications/preview endpoint was already implemented
in internal/api/notifications.go but was never registered in main.go.
This commit wires up the NotificationsHandler to enable the test
thumbnail endpoint for UI development and QA.

The endpoint accepts query parameters:
- type: notification type (fall, anomaly, zone_enter, sleep)
- person: person name (optional, defaults to "Alice")

It calls the appropriate Generate*Thumbnail function from the
render package and returns PNG bytes with Content-Type: image/png.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-05 13:09:54 -04:00
..
analytics test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
apdetector test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
api api/notifications: register preview endpoint in main.go 2026-05-05 13:09:54 -04:00
auth test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 07:38:16 -04:00
automation test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
autoupdate ota: minor fixes to auto-update integration 2026-05-05 12:27:18 -04:00
ble test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
briefing test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
config feat(onboarding): migration window, Unpaired badge, re-provision flow 2026-04-24 18:46:47 -04:00
dashboard test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
db test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
diagnostics ci: fix golangci-lint issues to enable static analysis gate 2026-05-05 02:38:32 -04:00
doctor api: add GET /api/doctor endpoint for pre-flight configuration diagnostics 2026-05-05 11:48:07 -04:00
eventbus feat: implement repeated-setting change detection with guided calibration flow 2026-05-04 00:21:38 -04:00
events test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
explainability test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
falldetect fix: remove unused imports and variables in falldetect/detector.go 2026-04-06 18:47:11 -04:00
fleet ota: minor fixes to auto-update integration 2026-05-05 12:27:18 -04:00
floorplan test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
fusion test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
guidedtroubleshoot fix: resolve all test and vet failures across mothership packages 2026-04-15 18:38:35 -04:00
health test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
help test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
ingestion test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
learning test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
loadshed feat: extract evaluate() from EndIteration for testable load shedding state machine 2026-04-09 05:59:54 -04:00
localization test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
localizer/fusion test: add CI benchmark gate for fusion loop timing budget 2026-05-04 06:34:50 -04:00
mqtt mqtt: wire security_mode and rebaseline command subscriptions 2026-05-05 12:51:37 -04:00
notifications test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
notify test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
ota ota: implement auto-update with canary strategy and quiet window 2026-05-05 11:48:07 -04:00
oui test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
prediction test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
provisioning feat(provisioning): carry ms_ip in payload for mDNS-less networks 2026-04-24 01:06:05 -04:00
recorder test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
recording test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
render test: enhance floor-plan renderer tests with precise coordinate and color verification 2026-04-11 04:29:13 -04:00
replay test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
shutdown test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
signal test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
simulator test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
sleep test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
startup feat: startup phase sequencing with 30s timeout enforcement 2026-04-07 12:40:25 -04:00
timeline test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
tracker feat: complete anomaly detection & security mode dashboard UI 2026-04-09 05:59:54 -04:00
tracking feat: complete anomaly detection & security mode dashboard UI 2026-04-07 15:50:25 -04:00
volume test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
webhook test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00
zones test: implement acceptance scenario integration tests (AS-1 through AS-6) 2026-05-05 05:45:15 -04:00