feat: add notifications_enabled toggle for users (web + Android)

This commit is contained in:
2026-06-13 17:28:59 -04:00
parent 81f61ff96e
commit ec38afe3e9
11 changed files with 352 additions and 8 deletions

View File

@@ -54,6 +54,18 @@
</div>
</div>
<div class="form-section">
<h3>Notification Preferences</h3>
<label class="checkbox-label">
<input type="checkbox" name="notifications_enabled" value="1"
<?= ($user['notifications_enabled'] ?? 1) ? 'checked' : '' ?>>
Enable push notifications
</label>
<p style="color:var(--text-muted);font-size:0.85em;margin:4px 0 0 24px">
Receive alerts for threshold breaches and app updates.
</p>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">
<i class="fas fa-save"></i> Update Profile