rouse-context/work
Jason Monk 7ddd98c3e6
Fix #381: Privacy page + debug-only Renew Cert button in Settings (#382)
- Add a Privacy row in the Settings About section that opens
  `https://rousecontext.com/privacy` via `ACTION_VIEW`. The docs page
  itself already lives at `docs/user/privacy.md`; this PR wires the
  in-app link and adds the label string.
- Add a debug-only Developer section with a "Renew cert now" button
  that enqueues a one-shot cert renewal through a new
  `CertRenewalScheduler.enqueueOneShot` entrypoint (distinct unique-work
  slot, REPLACE policy so spammed taps collapse to a single pending
  request). Gated on `BuildConfig.DEBUG` so the section is not rendered
  for release users.
- Extract a `renewalConstraints()` helper in `CertRenewalScheduler` so
  the periodic, delayed, expiring-immediate, and one-shot paths all
  share the same `NetworkType.CONNECTED + requiresBatteryNotLow`
  constraints instead of duplicating the builder three times.
- Force `showDeveloperSection = false` in the Settings Roborazzi
  screenshot tests so the recorded goldens match what release users
  see, regardless of `BuildConfig.DEBUG` in the test variant. The
  Privacy row is visible in release builds so it does appear in the
  goldens (though the Settings layout happens to render it below the
  800dp test viewport, so the existing PNGs remain pixel-identical).

Tests:
- `CertRenewalSchedulerTest` covers the new one-shot path: enqueue,
  REPLACE-on-re-enqueue, and slot distinctness from the periodic and
  immediate slots.
- `SettingsPrivacyRowTest` (new) asserts the Privacy row renders and
  fires its callback, that the Developer section is hidden when
  `showDeveloperSection = false`, and that tapping "Renew cert now"
  fires the callback and surfaces the "Renewal enqueued" confirmation.

Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>
2026-04-23 14:56:36 -04:00
..
src Fix #381: Privacy page + debug-only Renew Cert button in Settings (#382) 2026-04-23 14:56:36 -04:00
build.gradle.kts Fix #233: Wire up Firebase Crashlytics for release builds (#261) 2026-04-18 21:46:22 -04:00