Repository navigation
Conversation
…nc and update 48 locales (BasedHardware#24715)
There was a problem hiding this comment.
2 issues found across 103 files
Confidence score: 5/5
- The release note in
fix-offline-sync-disconnected-device-warning.jsonmay not clearly describe the user-visible outcome. Rewrite it around the misleading warning users will no longer see. offline_sync_device_gate_test.dartimplies English coverage, but only tests German. Add an English run or rename the test to avoid overstating coverage.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="app/test/widgets/offline_sync_device_gate_test.dart">
<violation number="1" location="app/test/widgets/offline_sync_device_gate_test.dart:275">
P3: This test name claims German and English coverage, but it only renders the German locale. Add an English run or rename the test so English gate regressions are not falsely implied to be covered.</violation>
</file>
<file name="app/changelog/unreleased/fix-offline-sync-disconnected-device-warning.json">
<violation number="1" location="app/changelog/unreleased/fix-offline-sync-disconnected-device-warning.json:2">
P3: Rewrite this release note around the user-visible outcome instead of hardware terminology and translation coverage. For example: `Offline Sync no longer shows a misleading unsupported-device warning while your paired Omi is disconnected or still checking, and its unavailable message is now translated consistently.`</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
…all 48 non-English locales
|
The production change here is correct and nicely scoped — Offline Sync no longer tells users their hardware is unsupported when the real state is "disconnected" or "capability read still pending", and the dialog gate is now shared instead of duplicated. No blocking issues; details below. Correctness
Notes (non-blocking)
UX: users with a disconnected or still-probing device get accurate connect/reconnect/retry prompts instead of a false "your device doesn't support this" alert with stale V1/V2 wording, in every supported locale. USER IMPACT: with a disconnected Omi device, Offline Sync now asks you to reconnect instead of claiming your hardware is unsupported, and the stale V1/V2 warning text is replaced across all 48 non-English languages. Still want as a reviewer: green CI on this head (no check runs are visible to me yet) and a quick manual pass on a storage-less device confirming the unsupported alert still appears. Leaving the merge decision to a human maintainer: first substantial contribution on this surface, no CI results visible yet, and the CV1 capability heuristic encodes hardware assumptions worth a product-owner glance. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Hey @cocvn157 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
## What changed and why Offline Sync now gives reconnect guidance for a disconnected wearable, lets users retry an inconclusive storage check, and shows an unsupported message only when the device's storage capability is established. Device Settings and phone activity share the device entry rule. Phone-local recordings remain accessible. The connection owns one storage check at a time and retires it on link loss. The localized unsupported message drops V1/V2 wording in all 48 affected locales. The translations come from cocvn157's [earlier PR #24818](#24818). Fixes #24715. ## Product invariants affected - INV-CAP-1. The new check reads existing device status and controls page entry. Recording, storage and deletion protocol behavior remains the same. Line-Count-Exception: app/lib/providers/device_provider.dart | 1746 -> 1765 | Own one storage capability result at the existing account and connection reset points. Protocol proof and dialog behavior remain in their current layers. ## How it was verified - 67 focused Flutter tests passed. Tests tap the real Device Settings Offline Sync row and On the Way details, verify English and German guidance, exercise Cancel, retry and phone-local entry, and simulate the native discovery and same-device reconnect state. - Focused Dart analysis passed. Localization validation passed across 49 locales. English wording for unsupported hardware stays the same. - All 31 seeded mobile journeys passed, including the capture reconnect journey. - The UI evidence uses the real Flutter widgets with synthetic recordings and device state in an iOS-layout renderer. ## Tests - `app/test/widgets/offline_sync_entry_test.dart` and `app/test/widgets/device_settings_double_tap_test.dart` - `app/test/unit/offline_storage_capability_test.dart` and `app/test/providers/device_provider_test.dart` ## UI evidence    ## Failure class Failure-Class: none
Fixes #24715
UI-Evidence: none -- fixes disconnected and pending storage capability dialog gating in Offline Sync and updates 48 non-English locale strings without visual layout changes
Product invariants affected
Root Cause
DeviceProvider.setisDeviceStorageSupport()stored storage capability as a single boolean (isDeviceStorageSupport), collapsing three distinct states intofalse:connectedDevice == null),getStorageList()error or empty read on a CV1 / storage-capable device), andDeviceSettings._openOfflineSyncandopenOfflineSyncDetailschecked!isDeviceStorageSupportand immediately showedv2Undetected/v2UndetectedMessage, telling users with a disconnected CV1 that their hardware did not support Offline Sync.app_en.arbhad updatedv2Undetectedandv2UndetectedMessagecopy from#14510, all 48 non-Englishapp_*.arbfiles and generatedapp_localizations_*.dartfiles still contained the legacyV1/V2hardware generation wording.Changes
app/lib/services/devices/connectors/device_connection.dart&omi_connection.dart:lastStorageListReadFailedwhen reading the storage characteristic throws or fails and exposeadvertisesStorageCharacteristic.app/lib/providers/device_provider.dart:DeviceStorageCapability { disconnected, checking, supported, unsupported }alongsideisDeviceStorageSupport.disconnected), pending or failed capability reads on storage-capable/CV1 devices (checking), confirmed storage support (supported), and connected devices without storage support (unsupported).app/lib/pages/conversations/sync_pending_work.dart&app/lib/pages/settings/device_settings.dart:openOfflineSyncForDevicehelper used by bothDeviceSettingsandopenOfflineSyncDetails:disconnected, show connect/reconnect guidance (deviceNotConnected+deviceDisconnectedNotificationBodywithreconnectaction when a paired device is remembered, orconnectDeviceMessageotherwise).checking, re-probesetisDeviceStorageSupport()once automatically; if still unresolved, show a retry dialog (activityAttentionStorageUnknownTitle+anErrorOccurredTryAgain+tryAgain) instead of claiming hardware lack of support.unsupported, showv2Undetected/v2UndetectedMessage.supported, route toAutoSyncPage/SyncPage.app/lib/l10n/app_*.arb&app/lib/l10n/app_localizations_*.dart(48 locales):v2Undetectedandv2UndetectedMessageacross all 48 non-English locales to match the capability-based English copy withoutV1/V2hardware claims.app/test/widgets/offline_sync_device_gate_test.dart&app/changelog/unreleased/fix-offline-sync-disconnected-device-warning.json:openOfflineSyncDetailsgating, and all 49 locales'v2Undetected/v2UndetectedMessagestrings.Verification
python app/scripts/l10n.py check(ok: 49 locales, 4476 keys).github/scripts/check-mobile-changelog.py.github/scripts/check_product_file_line_count_ratchet.py.github/scripts/check_diff_hygiene.py.github/scripts/check_product_invariants.py.github/scripts/check_ui_evidence.py