backup: fix Onboarding route screenshot lint error
- Commit
7bffc2ac2868ba3574e1392dca1e3565759506a4- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-02 05:16 UTC (4 days ago)
- Parents
c12b7d7
Fresh :backup:lintVitalRelease (--rerun-tasks) reported 1 error: Route.Onboarding had no screenshot capture. The existing onboarding preview was named 2-recovery-code, which matches no route key, so rename it to 2-onboarding-recovery-code: it counts for Onboarding (the -recovery-code suffix is a variant) while keeping its store-listing description. No baseline or config change. Verified fresh in this worktree: :backup:lint, :backup:lintVitalRelease (--rerun-tasks, standalone rerun, report: No issues found), :backup:testDevUnitTest (53 tests, 0 failures), :backup:compileDevScreenshotTestKotlin. Note: in one combined invocation the backup lint-vital report file kept its stale timestamp and showed the old error despite the build succeeding; the standalone fresh rerun above regenerated it clean. That stale-report behaviour is why only fresh reports were trusted.
Diff
backup/src/screenshotTest/kotlin/com/vayunmathur/backup/ui/MetadataPreviews.kt
diff --git a/backup/src/screenshotTest/kotlin/com/vayunmathur/backup/ui/MetadataPreviews.kt b/backup/src/screenshotTest/kotlin/com/vayunmathur/backup/ui/MetadataPreviews.ktindex 084c49c90d..10e96f26a0 100644--- a/backup/src/screenshotTest/kotlin/com/vayunmathur/backup/ui/MetadataPreviews.kt+++ b/backup/src/screenshotTest/kotlin/com/vayunmathur/backup/ui/MetadataPreviews.kt@@ -51,7 +51,7 @@ class MetadataPreviews { } @PreviewTest- @Preview(name = "2-recovery-code", device = PHONE, group = "phone", showSystemUi = true)+ @Preview(name = "2-onboarding-recovery-code", device = PHONE, group = "phone", showSystemUi = true) @Composable fun Preview2Onboarding() { DynamicTheme(darkTheme = true) {