Commit graph

4 commits

Author SHA1 Message Date
jedarden
d02a8e901c feat: implement feature discovery notifications
Implement single non-blocking notifications when features become available.

Events:
- DiurnalBaselineActivated (7 days)
- FirstSleepSessionComplete
- WeightUpdateApproved
- AutomationFirstFired
- PredictionModelReady (7 days per person)

Each notification is keyed by unique event ID in SQLite (feature_notifications table).
Never fires twice. Dismissed by tapping. Respects quiet hours.

Files:
- mothership/internal/help/notifier.go: Notifier manages one-time feature notifications
- mothership/internal/help/notifier_test.go: Tests for notifier
- mothership/internal/help/monitor.go: FeatureMonitor checks for feature availability
- mothership/internal/help/monitor_test.go: Tests for monitor
- mothership/cmd/mothership/main.go: Integration with mothership
- mothership/internal/db/migrations.go: Add migration_015 for feature_notifications table

Acceptance:
- Each notification fires exactly once per feature
- Plain language messages
- Respects quiet hours
- SQLite persistence prevents duplicates

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 01:05:27 -04:00
jedarden
d18709f130 feat: implement contextual help system with searchable overlay
- Added '?' button in expert mode header that opens help overlay
- Created dashboard/help_articles.json with 74 help articles covering:
  * Basics (sensing links, Fresnel zones, CSI technology, passive radar, etc.)
  * Setup (GDOP coverage, node placement, floor plan calibration, etc.)
  * Features (automations, fall detection, BLE identity, predictions, etc.)
  * Interface (command palette, simple mode, timeline, notifications, etc.)
  * Troubleshooting (detection quality, false positives, node offline, etc.)
  * Advanced (diurnal baseline, time-travel, explainability, etc.)
  * Integration (MQTT, Home Assistant, etc.)
  * Maintenance (re-baseline, OTA update, backup/restore, etc.)
- Help overlay includes fuzzy search (same as command palette)
- Category filter buttons for easy navigation
- Each article has title, 1-3 sentence explanation, and optional action link
- No server round-trip - all data loaded from static JSON
- Keyboard shortcut: Ctrl+? or Cmd+?
- Styled consistently with existing dashboard UI

Acceptance criteria met:
- Help overlay opens with '?' button
- Search finds relevant articles (test 'fresnel' -> Fresnel article appears)
- 74 articles covering major features (exceeds 30-50 requirement)
2026-04-11 00:44:54 -04:00
jedarden
a574a84653 feat: implement contextual help system with searchable overlay
- Add '?' button in expert mode status bar that opens help overlay
- Search input with fuzzy search (same algorithm as command palette)
- 43 help articles covering major features (sensing links, Fresnel zones,
  detection quality, presence prediction, fall detection, etc.)
- Articles stored as static JSON (dashboard/help_articles.json)
- No server round-trip - loads articles client-side
- Category filter buttons for easy navigation
- Keyboard shortcut: Ctrl+? to open help overlay

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 00:35:46 -04:00
jedarden
c817e96802 feat: implement repeated-setting change detection with guided calibration
Detects when user changes same config setting 3+ times within 24 hours.
Shows non-intrusive prompt offering help with guided calibration flow.

Guided calibration features:
- Test for false positives (walk around room)
- Test for missed motion (sit still)
- Suggest optimal value based on diurnal baseline SNR and link health
- Apply suggested value button

Files:
- dashboard/js/proactive.js: Complete implementation with localStorage tracking

Acceptance:
- Help prompt fires after 3+ changes in 24h
- Calibration flow tests both directions
- Suggests value based on system data
- Apply button works
2026-04-11 00:18:19 -04:00