Repository navigation
Conversation
|
@Git-on-my-level @cubic-dev-ai ready for review: Home's Flat design. Before and after screenshots, light and dark, are at the top of the description. |
@Itaxh1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 143 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
@cubic-dev-ai review — all 17 threads are addressed in b2f87e4, and main is merged in. |
@Itaxh1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 143 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
@cubic-dev-ai review — the 8 second-round threads are addressed in 8554aba (two kept on purpose, with reasons in the threads). |
@Itaxh1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 143 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
kodjima33
left a comment
There was a problem hiding this comment.
Feature (Flat Home redesign: white canvas, glass controls, device-tile rows) — files under app/ (Flutter mobile, l10n/assets), no desktop paths. Mobile area, not a bug fix -> approve-only.
|
Reviewed this end to end (statically) — the work is cohesive and careful, and the details hold up:
For the record: two commits ( No blockers from my side. Since the approval predates those last two commits, leaving the final merge confirmation to a maintainer. AI-generated maintainer feedback on behalf of the Omi maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Reviewed the full diff (the 49-locale l10n churn is mechanical and stays in sync between the
Two notes for the maintainer path:
Thanks @Itaxh1 — this is a carefully built, well-tested change (the new This review was produced by an AI reviewing on the maintainers' behalf. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
… Settings components
…pped-pendant sheet
There was a problem hiding this comment.
9 issues found across 139 files
Confidence score: 3/5
pendant_dropped_sheet.dartcan overflow at large text scales or in short viewports, hiding the lower actions. Make the content scrollable.omi_button.dartcan still overflow whenwrapLabelis used with a fixed width because the fixed height prevents multiline labels from growing. Keep the requested width while allowing the button to grow vertically.- Dark-mode colors change in
omi_locked_preview.dartandfirmware_update.dartdespite the stated color preservation, altering the veil tint and page background. Preserve the existing dark-mode colors in both places. omi_settings.dartleaves outlined destination and choice rows with bare icons, since no app call site usesOmiSettingsIconTile. Wrap those leading icons on the affected pages.
You’re at about 97% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].
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/lib/ui/components/omi_locked_preview.dart">
<violation number="1" location="app/lib/ui/components/omi_locked_preview.dart:53">
P2: This changes the locked-preview veil to black on dark canvas screens instead of preserving the existing `surface1` tint, despite dark mode retaining its existing colors in this refresh. Apply the canvas override only in light mode.</violation>
</file>
<file name="app/lib/pages/home/firmware_update.dart">
<violation number="1" location="app/lib/pages/home/firmware_update.dart:463">
P3: This changes the dark page background from `surface0` (#000) to `groupedPage` (#0A0A0A), despite the stated dark-mode color preservation; retain `surface0` in dark mode.</violation>
</file>
<file name="app/changelog/unreleased/20261005-design-foundation.json">
<violation number="1" location="app/changelog/unreleased/20261005-design-foundation.json:2">
P2: `kind: none` suppresses release notes for this user-facing Home UX update; replace it with a `change` sentence describing the refresh.</violation>
</file>
<file name="app/lib/l10n/app_es.arb">
<violation number="1" location="app/lib/l10n/app_es.arb:3197">
P2: `solo cuando` reads as “only when,” so this does not clearly promise the automatic reconnection described by the source; use `automáticamente cuando`.</violation>
</file>
<file name="app/lib/l10n/app_pt.arb">
<violation number="1" location="app/lib/l10n/app_pt.arb:3231">
P2: These new strings call the device “pendente,” which can read as “pending” in Brazilian Portuguese; use the established device term “pingente” here as well.</violation>
</file>
<file name="app/lib/pages/conversations/widgets/pendant_dropped_sheet.dart">
<violation number="1" location="app/lib/pages/conversations/widgets/pendant_dropped_sheet.dart:57">
P2: This non-scrollable column can overflow at large text scales or in short viewports, hiding the lower actions. Wrap the content in a `SingleChildScrollView`.</violation>
</file>
<file name="app/lib/ui/components/omi_settings.dart">
<violation number="1" location="app/lib/ui/components/omi_settings.dart:249">
P2: Outlined destination and choice rows still render bare icons: `_outlinedGroup` passes children through unchanged, and no app call site uses `OmiSettingsIconTile`. Wrap the leading icons on those pages while keeping value and toggle rows plain.
(Based on your team's feedback about Settings row styles by page type.)</violation>
</file>
<file name=".github/scripts/dead_code/flutter.allowlist.json">
<violation number="1" location=".github/scripts/dead_code/flutter.allowlist.json:56">
P2: `device_tile.dart` is already reachable through this PR's `live_capture_card.dart`, so this entry is stale. Remove it; if the tile later loses its importer, the allowlist will suppress the dead-code check instead of catching it.</violation>
</file>
<file name="app/lib/ui/components/omi_button.dart">
<violation number="1" location="app/lib/ui/components/omi_button.dart:171">
P2: `wrapLabel` still overflows when callers set the supported `width`: `fixedSize` pins the height to `visualHeight`, preventing multiline labels from growing. Keep the requested width while allowing wrapped buttons to grow vertically.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| key: const Key('locked_preview_tint'), | ||
| color: OmiColors.surface1.withValues(alpha: 0.65), | ||
| // On the canvas the row is flat, so the veil is the page colour and no card shows. | ||
| color: (OmiCanvas.isOn(context) ? OmiColors.canvas : OmiColors.surface1).withValues(alpha: 0.65), |
There was a problem hiding this comment.
P2: This changes the locked-preview veil to black on dark canvas screens instead of preserving the existing surface1 tint, despite dark mode retaining its existing colors in this refresh. Apply the canvas override only in light mode.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. 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. At app/lib/ui/components/omi_locked_preview.dart, line 53:
<comment>This changes the locked-preview veil to black on dark canvas screens instead of preserving the existing `surface1` tint, despite dark mode retaining its existing colors in this refresh. Apply the canvas override only in light mode.</comment>
<file context>
@@ -48,7 +49,8 @@ class OmiLockedPreview extends StatelessWidget {
key: const Key('locked_preview_tint'),
- color: OmiColors.surface1.withValues(alpha: 0.65),
+ // On the canvas the row is flat, so the veil is the page colour and no card shows.
+ color: (OmiCanvas.isOn(context) ? OmiColors.canvas : OmiColors.surface1).withValues(alpha: 0.65),
),
),
</file context>
| color: (OmiCanvas.isOn(context) ? OmiColors.canvas : OmiColors.surface1).withValues(alpha: 0.65), | |
| color: (OmiCanvas.isOn(context) && Theme.of(context).brightness == Brightness.light | |
| ? OmiColors.canvas | |
| : OmiColors.surface1) | |
| .withValues(alpha: 0.65), |
| @@ -0,0 +1,3 @@ | |||
| { | |||
| "kind": "none" | |||
There was a problem hiding this comment.
P2: kind: none suppresses release notes for this user-facing Home UX update; replace it with a change sentence describing the refresh.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. 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. At app/changelog/unreleased/20261005-design-foundation.json, line 2:
<comment>`kind: none` suppresses release notes for this user-facing Home UX update; replace it with a `change` sentence describing the refresh.</comment>
<file context>
@@ -0,0 +1,3 @@
+{
+ "kind": "none"
+}
</file context>
| "prerecordedTranscript": "Pregrabado", | ||
| "pendantRecordingSyncBlocked": "Tu Pendant sigue grabando, por lo que su audio almacenado no se puede transferir. Pulsa el botón del Pendant para detener la grabación y vuelve a sincronizar.", | ||
| "pendantLostConnection": "Tu colgante perdió la conexión con este teléfono.", | ||
| "pendantReconnectsOnItsOwn": "Omi se volverá a conectar solo cuando el colgante esté encendido y cerca.", |
There was a problem hiding this comment.
P2: solo cuando reads as “only when,” so this does not clearly promise the automatic reconnection described by the source; use automáticamente cuando.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. 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. At app/lib/l10n/app_es.arb, line 3197:
<comment>`solo cuando` reads as “only when,” so this does not clearly promise the automatic reconnection described by the source; use `automáticamente cuando`.</comment>
<file context>
@@ -3193,6 +3193,9 @@
"prerecordedTranscript": "Pregrabado",
"pendantRecordingSyncBlocked": "Tu Pendant sigue grabando, por lo que su audio almacenado no se puede transferir. Pulsa el botón del Pendant para detener la grabación y vuelve a sincronizar.",
+ "pendantLostConnection": "Tu colgante perdió la conexión con este teléfono.",
+ "pendantReconnectsOnItsOwn": "Omi se volverá a conectar solo cuando el colgante esté encendido y cerca.",
+ "pendantRecordingSafe": "Todo lo grabado antes está a salvo.",
"pendantFullSyncBlocked": "El almacenamiento de tu Pendant está lleno y sigue en modo de grabación, por lo que su audio almacenado no se puede transferir. Pulsa el botón del Pendant para detener la grabación y vuelve a sincronizar.",
</file context>
| "pendantReconnectsOnItsOwn": "Omi se volverá a conectar solo cuando el colgante esté encendido y cerca.", | |
| "pendantReconnectsOnItsOwn": "Omi se volverá a conectar automáticamente cuando el colgante esté encendido y cerca.", |
| "pendantLostConnection": "Seu pendente perdeu a conexão com este telefone.", | ||
| "pendantReconnectsOnItsOwn": "O Omi se reconecta sozinho quando o pendente estiver ligado e por perto.", |
There was a problem hiding this comment.
P2: These new strings call the device “pendente,” which can read as “pending” in Brazilian Portuguese; use the established device term “pingente” here as well.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. 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. At app/lib/l10n/app_pt.arb, line 3231:
<comment>These new strings call the device “pendente,” which can read as “pending” in Brazilian Portuguese; use the established device term “pingente” here as well.</comment>
<file context>
@@ -3228,6 +3228,9 @@
"appDisabledLastError": "Último erro: {error}.",
"prerecordedTranscript": "Pré-gravado",
"pendantRecordingSyncBlocked": "O Pendant ainda está gravando, então o áudio armazenado não pode ser transferido. Pressione o botão do Pendant para parar a gravação e sincronize novamente.",
+ "pendantLostConnection": "Seu pendente perdeu a conexão com este telefone.",
+ "pendantReconnectsOnItsOwn": "O Omi se reconecta sozinho quando o pendente estiver ligado e por perto.",
+ "pendantRecordingSafe": "Tudo o que foi gravado antes está seguro.",
</file context>
| "pendantLostConnection": "Seu pendente perdeu a conexão com este telefone.", | |
| "pendantReconnectsOnItsOwn": "O Omi se reconecta sozinho quando o pendente estiver ligado e por perto.", | |
| "pendantLostConnection": "Seu pingente perdeu a conexão com este telefone.", | |
| "pendantReconnectsOnItsOwn": "O Omi se reconecta sozinho quando o pingente estiver ligado e por perto.", |
| final secondary = OmiType.footnote.copyWith(color: OmiColors.textSecondary); | ||
| return Padding( | ||
| padding: const EdgeInsets.only(bottom: OmiSpacing.md), | ||
| child: Column( |
There was a problem hiding this comment.
P2: This non-scrollable column can overflow at large text scales or in short viewports, hiding the lower actions. Wrap the content in a SingleChildScrollView.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. 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. At app/lib/pages/conversations/widgets/pendant_dropped_sheet.dart, line 57:
<comment>This non-scrollable column can overflow at large text scales or in short viewports, hiding the lower actions. Wrap the content in a `SingleChildScrollView`.</comment>
<file context>
@@ -0,0 +1,121 @@
+ final secondary = OmiType.footnote.copyWith(color: OmiColors.textSecondary);
+ return Padding(
+ padding: const EdgeInsets.only(bottom: OmiSpacing.md),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.stretch,
</file context>
| Widget build(BuildContext context) { | ||
| final resolved = | ||
| style ?? (OmiGroupedScope.of(context) ? OmiSettingsGroupStyle.outlined : OmiSettingsGroupStyle.inset); | ||
| if (resolved == OmiSettingsGroupStyle.outlined) return _outlinedGroup(this); |
There was a problem hiding this comment.
P2: Outlined destination and choice rows still render bare icons: _outlinedGroup passes children through unchanged, and no app call site uses OmiSettingsIconTile. Wrap the leading icons on those pages while keeping value and toggle rows plain.
(Based on your team's feedback about Settings row styles by page type.)
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. 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. At app/lib/ui/components/omi_settings.dart, line 249:
<comment>Outlined destination and choice rows still render bare icons: `_outlinedGroup` passes children through unchanged, and no app call site uses `OmiSettingsIconTile`. Wrap the leading icons on those pages while keeping value and toggle rows plain.
(Based on your team's feedback about Settings row styles by page type.) </comment>
<file context>
@@ -97,6 +244,9 @@ class OmiSettingsGroup extends StatelessWidget {
Widget build(BuildContext context) {
+ final resolved =
+ style ?? (OmiGroupedScope.of(context) ? OmiSettingsGroupStyle.outlined : OmiSettingsGroupStyle.inset);
+ if (resolved == OmiSettingsGroupStyle.outlined) return _outlinedGroup(this);
final rows = <Widget>[];
for (var i = 0; i < children.length; i++) {
</file context>
| "reason": "AppsPage left the shell (the catalog is Settings > Integrations), but protected spine oracles (app/test/spine/b1_surface_contract.dart) import it; remove with the B1 contract revision" | ||
| }, | ||
| { | ||
| "path": "app/lib/widgets/device_tile.dart", |
There was a problem hiding this comment.
P2: device_tile.dart is already reachable through this PR's live_capture_card.dart, so this entry is stale. Remove it; if the tile later loses its importer, the allowlist will suppress the dead-code check instead of catching it.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. 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. At .github/scripts/dead_code/flutter.allowlist.json, line 56:
<comment>`device_tile.dart` is already reachable through this PR's `live_capture_card.dart`, so this entry is stale. Remove it; if the tile later loses its importer, the allowlist will suppress the dead-code check instead of catching it.</comment>
<file context>
@@ -51,6 +51,10 @@
"reason": "AppsPage left the shell (the catalog is Settings > Integrations), but protected spine oracles (app/test/spine/b1_surface_contract.dart) import it; remove with the B1 contract revision"
+ },
+ {
+ "path": "app/lib/widgets/device_tile.dart",
+ "reason": "v2 cleaner UX foundation (#20342): the device tile that #20328, #20717 and #20718 put on Home, conversation and recap rows; reachable once the first of them lands, then remove this entry"
}
</file context>
|
|
||
| /// Wrap a label that does not fit instead of ellipsizing it; the button grows taller. For an | ||
| /// action whose localized label must read in full at large text scales. | ||
| final bool wrapLabel; |
There was a problem hiding this comment.
P2: wrapLabel still overflows when callers set the supported width: fixedSize pins the height to visualHeight, preventing multiline labels from growing. Keep the requested width while allowing wrapped buttons to grow vertically.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. 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. At app/lib/ui/components/omi_button.dart, line 171:
<comment>`wrapLabel` still overflows when callers set the supported `width`: `fixedSize` pins the height to `visualHeight`, preventing multiline labels from growing. Keep the requested width while allowing wrapped buttons to grow vertically.</comment>
<file context>
@@ -160,6 +166,10 @@ class OmiButton extends StatefulWidget {
+ /// Wrap a label that does not fit instead of ellipsizing it; the button grows taller. For an
+ /// action whose localized label must read in full at large text scales.
+ final bool wrapLabel;
+
/// Legacy colour override; see [OmiButtonColors]. Wins over [variant].
</file context>
| leading: busy ? null : const OmiBackButton(), | ||
| title: Text(widget.isRollback ? context.l10n.stableFirmware : context.l10n.firmwareUpdate), | ||
| ), | ||
| child: OmiGroupedPage( |
There was a problem hiding this comment.
P3: This changes the dark page background from surface0 (#000) to groupedPage (#0A0A0A), despite the stated dark-mode color preservation; retain surface0 in dark mode.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. 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. At app/lib/pages/home/firmware_update.dart, line 463:
<comment>This changes the dark page background from `surface0` (#000) to `groupedPage` (#0A0A0A), despite the stated dark-mode color preservation; retain `surface0` in dark mode.</comment>
<file context>
@@ -460,14 +460,10 @@ class _FirmwareUpdateState extends State<FirmwareUpdate> with FirmwareMixin {
- leading: busy ? null : const OmiBackButton(),
- title: Text(widget.isRollback ? context.l10n.stableFirmware : context.l10n.firmwareUpdate),
- ),
+ child: OmiGroupedPage(
+ // No way back while the device is being written; the PopScope blocks system back too.
+ leading: busy ? const SizedBox.shrink() : null,
</file context>
|
Reviewed the current head. This is a well-put-together slice — some specific notes:
Two process notes:
The tests here are real coverage, not smoke: the canvas/glass token contracts, the reconnecting→Connected transition asserted as a live region, and the blend-stop math all check out. Thanks for the careful a11y work throughout. This feedback is AI-generated on behalf of the Omi maintainers and complies with the repo's review guidelines. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Feature (mobile app v2 UX redesign, part 6/9) — approve-only ceiling per policy, new commits since last approval. CI green, no abuse signal, not a draft.
kodjima33
left a comment
There was a problem hiding this comment.
Itaxh1 v2 cleaner UX 6/9 -- feature series, stays normal per memory (separate from its confirmed self-bounty PRs), approve-only
kodjima33
left a comment
There was a problem hiding this comment.
Itaxh1 v2 cleaner-UX series — feature (mobile/flutter), explicitly carved out as normal per standing memory (self-bounty flag applies elsewhere on this account, not this series) — approve only, not a
|
Superseded by #20835. Closing; please follow that PR. |
|
Hey @Itaxh1 👋 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! |
TL;DR: Home goes flat. In light mode the Home shell (Home and Tasks) gets a white page, glass header circles and device pill, line icons for search, sync and settings, and a warm white fade toward the bottom of the screen; dark mode keeps today's colours. What is recording now is a flat row with its device tile. Tapping a dropped pendant recording opens a sheet that explains what happened and follows the pendant as it reconnects. Part 6 of 9 of the v2 cleaner UX; it needs #20342 first.
What changed and why
Canvas, scoped:
OmiCanvasandOmiTypefacewrap the Home shell, so Home and Tasks get the white page in light mode and Instrument Sans. Widgets readOmiCanvas.pageOf/cardOf, so nothing outside the shell changes.Header:
OmiLineIcon(search, settings, cloud);Bottom of the screen: in light mode the page blends into a warm white from 62% of the height (
HomeWarmBlend, fixed to the screen); nothing in dark. Above the floating row, the list fades into the page colour (HomeChatBarBackdrop), so what scrolls under the row shows through its glass.Recording now (
live_capture_card.dart,processing_capture.dart):A dropped pendant (
pendant_dropped_sheet.dart, new): tapping the Disconnected recording opens its own sheet instead of the generic one. It says:DeviceProviderwhile open: Reconnecting… with a spinner, then Connected;It has Got It and Device Settings. Glasses and other wearables keep the generic explanation, with their own name.
Smaller pieces:
OmiGroupedPage, still with no way back while the device is being written.Strings:
pendantLostConnection,pendantReconnectsOnItsOwnandpendantRecordingSafewere added in all 49 locales;capturePendantDisconnectedDetailwas removed.Screenshots
Before is
main(4bdcc56d0d), after is this branch (with #20342 under it). Rendered byapp/scripts/visual_audit.sh(real widgets, flutter-tester, 390×844 at 2×, fixture data, light theme). The audit's Home frame mirrorsHomePage. The rows in it are still main's here; they change in #20717.main)Product invariants affected
none
How it was verified
flutter analyze: no errors or warnings (the 89 infos are all onmain).dart format --line-length 120: clean.flutter test) on this branch: 4,673 passed, 14 skipped, 0 failed.python3 scripts/l10n.py check: OK.scripts/pr-preflightwith this body: passed.Tests
test/widgets/home_flat_canvas_test.dart(new):#FAF8F4end in light, none in dark;test/widgets/capture_home_ui_test.dart: the Disconnected sheet shows the lead line, the pendant reconnecting with a spinner, then Connected as a live region when it comes back, both points and Device Settings; Got It closes it.test/widgets/header_sync_button_test.dart: the sync circle draws the cloud line icon.Failure class (fixes)
Failure-Class: none