mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-29 11:13:05 +00:00
- 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> |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||