Repository navigation
feat(app): Plan, Referral and Feedback back on the Settings sheet; one visual-audit tool - #18723
Merged
Merged
Conversation
…rmissions under Device David's follow-up to #18618: Plan & Usage (Pro value) and Referral Program (New tag) leave Account for their own group on the sheet, Feedback leaves Help & About for its own row beside it (still Intercom-gated), and Permissions moves from Data & Privacy to Device. Developer Settings stays last. Search index, structure test and e2e map updated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Consolidates this week's 16 throwaway screenshot harnesses and the original integration_test/visual_audit capture into one harness plus a registry of 63 scenarios (id, title, pumped page, seeded state). app/scripts/visual_audit.sh captures --base/--head in temporary worktrees and writes before/after PNGs, INDEX.md (SHAs, capture times) and gallery.html outside Git. A smoke test in the ordinary app suite renders every scenario without writing images. Docs in app/e2e/SKILL.md, "Visual audit". Also: the start-up failure screen no longer prints a literal "null" when there is no stack trace (debug/profile builds). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 25, 2026
summersmile1984
added a commit
to summersmile1984/omi
that referenced
this pull request
Sep 27, 2026
… re-record eleven owners Review of bf7f4f6..8d1f8e2 per owner, then re-record. Where upstream's change was semantic for the staged artifact the fork replacement moved with it — re-recording alone would have shipped upstream identity behavior: - AndroidManifest.xml (BasedHardware#14296, BasedHardware#5221): FOREGROUND_SERVICE_DATA_SYNC, foregroundServiceType shortService and the sync keep-alive service. No package, permission-identity or intent change; the new service name is already absolute, so native_android()'s namespace pass is untouched. - main.dart (BasedHardware#15956, BasedHardware#15883, BasedHardware#19157): startup moved behind PhysicalQualification.startupStage. _init is replaced wholesale by the stage anyway; the two crash fallbacks became "if (!PhysicalQualification.enabled && Firebase.apps.isNotEmpty) { unawaited(FirebaseCrashlytics...catchError(...)) }" so their reviewed replacement regex moved to that shape and still yields a Firebase-free Logger.debug fallback. - auth_service.dart (SCA-486/SCA-488): the token gateway gained a debug-only harness seam, so _tokenGateway is non-final — the stage strips the seam and keeps the field final; isSignedIn now routes through the gateway (the stage replaces its body, and NativeIdentity has no anonymous principal, so the reviewed semantics hold); a transient refresh failure now schedules _scheduleLocalDevRecovery, an Auth-emulator re-mint that cannot exist in a Firebase-free stage, so the kept refreshIdToken loses that call and keeps its reviewed retry-on-the-next-request behavior. - change_name_widget.dart / name_widget.dart (BasedHardware#18436): both collapsed into _save()/_submit(). The replacements were re-anchored so the staged app still awaits updateGivenName before success or advancing, still ships the identity_name_edit / identity_name_error keys gateway_test taps, and still never writes given/family name itself — only the auth-provider projection does. The dialog error moved into the content column the rewrite left behind. - settings: BasedHardware#18618/BasedHardware#18723 extracted the confirmed sign-out out of settings_drawer.dart into lib/pages/settings/sign_out.dart (now clearing through clearPreferencesForSignOut so device preferences survive). The completeNativeSignOut transaction owner moved with it — one owner instead of two — and sign_out.dart enters the registry as a reviewed input. - wrapper.dart: onboarding was restructured and gained a "Use a Different Account" path; both firebase_auth anchors (the import and the three FirebaseAuth.instance.currentUser! calls) still hold, and the staged AuthService.signOut still revokes remotely before the secure credential is cleared. - logger.dart / platform_manager.dart / platform_service.dart / crashlytics_manager.dart: PhysicalQualification gates. The stage still replaces the three reviewed members with the fork's false/no-op bodies and still overlays crashlytics_manager wholesale. - New upstream file lib/env/physical_qualification.dart reads Env.firebaseAuthEmulatorHost/firebaseAuthEmulatorPort, which the fork's env overlay did not expose: both are added there as compile-time inputs (the lane is iOS dev/local_dev only and never enabled in this artifact). Re-record: sha256 of the eleven stale paths plus the new sign_out.dart owner written into app/fork/source-owners.json, base moved to the reviewed tree. Verification: bash app/fork/test.sh exit 0 with the pinned Flutter 3.44.5 — test_stage.py 5/5, both targets staged, 20/20 staged Dart tests per target including gateway_test's failed-name-save contract, and flutter build bundle for both targets. python3 scripts/fork/check-overlay-owners.py exit 0. Failure-Class: none
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan, Referral and Feedback back on the Settings sheet; Permissions under Device; one visual-audit tool
1. Settings follow-up (David, 2026-09-24)
own rows on the first page of the Settings sheet again. They are no longer on Account.
It is no longer on Help & About.
search still finds it and opens Device.
The top level now reads: Account · Plan & Usage · Referral Program · Device · Recording & Transcription ·
Notifications & Display · Integrations · Data & Privacy · Help & About · Feedback · Developer Settings.
The sheet shows five visual groups: [Account] [Plan & Usage, Referral] [Device … Data & Privacy]
[Help & About, Feedback] [Developer Settings].
Mapping (changes since #18618)
Depth is the number of taps from the open Settings sheet until the row is visible (0 = on the sheet).
test/widgets/settings/settings_structure_test.dartpumps the real sheet, walks every page and pins every rowbelow plus the unchanged rows from #18618.
Pages now hold:
Search, routes and analytics:
settings_search_index.dartpoints Plan, Referral and Feedback at the sheet and Permissions at Device. The indextest checks that each entry's row file draws its title.
settings_row_<destination>keys;app/e2e/SKILL.md's settings map is updated.2. One maintained visual-audit tool
This week's before/after screenshots came from 16 throwaway copies of a capture harness. They are now one tool:
Harness and registry.
app/integration_test/visual_audit/harness.dartis the harness:buildOmiTheme();OMI_AUDIT_OUTPUT.registry.dartandscenarios/<area>.darthold 63 scenarios. Each has an id, a title, the page itpumps and the seeded state. They are this week's variants plus the original harness, minus the per-round hacks.
Command.
app/scripts/visual_audit.shchecks out each revision in a temporary detached worktree (under$OMI_WORKTREES, or the temp dir by default) and prepares it the way CI does. It copies one snapshot of theharness over both sides, captures, and then removes the worktrees. It writes:
before/andafter/PNGs;INDEX.mdwith both SHAs and the capture times;gallery.html.The output directory must be empty and outside the repo; screenshots are never committed. A scenario that throws
on one side is marked failed there, and the other scenarios still capture.
CI smoke test.
app/test/visual_audit/visual_audit_smoke_test.dartruns in the ordinaryapp/test.shsuite.It renders every registered scenario without writing images (about 70 s locally, alongside the rest of the suite) and checks that ids are unique
and well formed.
Docs.
app/e2e/SKILL.mdhas a new section, "Visual audit (before/after screenshots without a device)". Itcovers when to use the tool rather than agent-flutter or flow-walker, how to run it and how to add a scenario.
The old
capture.shandREADME.mdare removed; the section above replaces them.Screenshots (dogfood: produced by the command above)
app/scripts/visual_audit.sh --base 4ec7cb461b --head 8cab0e011c --only settings-sheet,settings-account,settings-device,settings-privacy,settings-help,settings-search4ec7cb461b, captured 16:59:44–17:00:08 UTC (Sep 24).8cab0e011c, captured 17:00:36–17:01:00 UTC.The gallery has a new top section with the Settings sheet, Account, Device, Data & Privacy, Help & About and search:
https://claude.ai/artifact/GTzdUJ5hfwXLcFZse6Eq7v. The INDEX.md for that run records both SHAs and the capture times.
Verification (hermetic, on this Mac, Flutter 3.44.5, TZ=UTC)
bash app/test.sh: 3017 tests passed, including the smoke test's 63 scenarios; about 4 min wall time.dart analyzeon the new files is clean.l10n.py check(49 locales);Also fixed
nullwhen there was no stack trace.It now shows only the error. Test:
test/unit/startup_failure_app_test.dart. Release builds never showed thestack.
Product invariants affected
Failure class (fixes)
Failure-Class: none
🤖 Generated with Claude Code