Skip to content

feat(app): clean up the Home bottom bar with an Ask Anything button - #19855

Closed
Itaxh1 wants to merge 2 commits into
BasedHardware:mainfrom
Itaxh1:feat/ask-omi-button
Closed

Itaxh1 wants to merge 2 commits into
BasedHardware:mainfrom
Itaxh1:feat/ask-omi-button

Conversation

@Itaxh1

@Itaxh1 Itaxh1 commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

What changed and why

Closes #19854.

Home’s bottom chat entry now reads as a centered, text-only Ask Anything button instead of an input-like Ask Omi bar with a microphone shortcut. Voice input remains in the chat composer, and tapping the button opens the existing chat sheet.

The button keeps the current pill size, theme colors, border, and position beside the recording control. Home and the visual-audit scenario share HomeAskOmiButton; a button-specific localization key supplies the label without changing the chat input placeholder.

Screenshots

User-provided screenshots from the installed iPhone build, in Light and Dark.

Light Dark
Home in Light with the centered Ask Anything button Home in Dark with the centered Ask Anything button

Product invariants affected

none

How it was verified

  • Latest upstream main fetched and integrated; the rebase completed without conflicts.
  • TZ=UTC bash app/test.sh --concurrency 2 --reporter expanded: 3,567 tests passed, plus 138 opt-in spine tests.
  • TZ=UTC make mobile-verify ARGS="fast --all": 6 journeys passed, 23 assertions passed (conversation detail, chat sending, memory editing, expired-session recovery, capture reconnection, and persisted speaker names).
  • Focused Home/capture/navigation tests: 49 passed. Home visual-audit smoke: 14 passed; Light and Dark renders inspected.
  • (cd app && bash scripts/analyze_ratchet.sh): passed. (cd app && python3 scripts/l10n.py check): passed (49 locales, generated localization current).
  • python3 .github/scripts/pr_preflight.py --lane local --base upstream/main: preflight passed with 22 selected checks; the history-based failure-class guard was skipped because the local checkout is shallow. Draft PR metadata validated before push.
  • Signed profile build installed on an iPhone 15 Pro Max. All 760 Dart source hashes still match that build after the rebase; the screenshots above were supplied from the phone.

The initial default-concurrency Flutter run had one failure in the existing voice-recording cleanup test, which waits 10 ms for asynchronous cleanup. The same 28 voice tests passed separately on both this branch and a clean checkout of upstream main; the full rerun above passed. The voice provider and its tests are identical to main.

Hosted full mobile CI requires a maintainer to add ci:full, then Re-run all jobs on the latest commit; the initial fork run defers heavy checks.

Tests

No new test file: this is a presentation change to an existing chat entry. Existing Home, capture, navigation, chat, and voice regressions run in the Flutter suite; the visual-audit scenario renders the production button in both themes.

Failure class (fixes)

Failure-Class: none

Review in cubic

The Home row's Ask Omi control looked like a text field (a grey "Ask Omi"
placeholder) with a mic that opened chat listening. It is now a button:
the Ask Omi glyph and label in primary text, on the same pill, height and
border as the record button beside it. Voice stays in the chat composer.

HomeAskOmiButton is shared by Home and the visual-audit frame, which kept
its own copy of the old bar.
Center the localized Ask Anything label and remove the chat glyph from the Home button. Keep the existing chat opening behavior and use the same control in Home and its visual audit.
@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @Itaxh1 — this is a clean, well-scoped change with unusually thorough verification notes. Reviewed the diff file by file:

  • app/lib/pages/home/page.dart — _buildChatBar and the {bool voice} variant of _openChat are removed; Home's floating row now uses the shared button. One consequence deserves a maintainer eye: the one-tap voice entry is gone from Home (the ChatPage(autoStartVoice: true) path and the bottomNavigationTabClicked('Chat Voice') analytics event no longer fire), so voice is reachable only from the chat composer. That's a product-direction call, not a code defect.
  • app/lib/widgets/home_bottom_bar.dart — the new HomeAskOmiButton keeps the pill height (kHomeChatBarHeight), theme tokens, the Semantics button label, and the existing 'home_ask_omi_bar' ValueKey so current tests keep working; maxLines: 1 with ellipsis handles longer localized labels sensibly.
  • app/integration_test/visual_audit/scenarios/capture.dart — good deduplication: the private _AskOmiBar copy is replaced with the real shared widget, so the visual audit now renders exactly what Home draws.
  • app/lib/l10n/app_en.arb, the 48 non-template .arb files, and the generated app_localizations*.dart — a single askAnythingButton key with @ metadata on the template only, matching repo l10n conventions; the app/changelog/unreleased/ entry accurately describes the behavior.

No blocking technical issues found. Because this removes a primary voice entry point from Home, the merge decision needs a product sign-off — leaving for human maintainer review.

This feedback is AI-generated 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 need human response.

@Git-on-my-level Git-on-my-level added feature-fit-review Needs review of product/feature direction with Omi mission/vision flutter flutter work labels Sep 30, 2026

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mobile feature (Ask Anything button). Approve-only (feature, not bug fix). mergeStateStatus DIRTY, holding at approve. Note: appears fully subsumed by #19857 which combines this change with two siblings.

@Git-on-my-level

Copy link
Copy Markdown
Member

Reviewed this head in detail — the implementation is clean and the change is more cohesive than the file count suggests.

What I verified, file by file:

  • app/lib/widgets/home_bottom_bar.dart: the new HomeAskOmiButton keeps the pill height (kHomeChatBarHeight), border, and theme tokens consistent with the record button, exposes proper Semantics (label + ExcludeSemantics on the inner text), and guards long-locale labels with maxLines: 1 + ellipsis. The ValueKey('home_ask_omi_bar') is deliberately preserved so existing widget tests keep targeting the entry point — small nit that the key name now says "bar" where it's a button, but keeping it stable is the right call.
  • app/lib/pages/home/page.dart: _buildChatBar is fully removed and replaced by the shared widget; _openChat drops the mic shortcut and the Chat Voice analytics branch, matching the Mobile: clean up the Home bottom bar with an Ask Anything button #19854 direction of leaving voice input to the chat composer.
  • app/integration_test/visual_audit/scenarios/capture.dart: deleting the private _AskOmiBar copy in favor of the real shared widget is a strict improvement — the audit frame can no longer drift from production Home.
  • l10n: the askAnythingButton key lands in all 49 locales with a proper @ description in app_en.arb; I ran python3 scripts/l10n.py check against this head — ok (49 locales, 3475 keys). Retaining the old askOmi key is correct since conversation detail and text selection controls still use it.
  • app/changelog/unreleased/20260929-home-ask-anything-button.json: accurate description of the user-visible change.

The large diff is almost entirely the generated localization propagation; the authored code is small and focused. Accessibility, test-key stability, and the changelog are all handled. Thanks @Itaxh1 — and noting kodjima33 has already approved this exact head, so I'm dropping the feature-fit-review label since the product-direction question it tracked is answered.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level removed the feature-fit-review Needs review of product/feature direction with Omi mission/vision label Oct 1, 2026
@Itaxh1 Itaxh1 closed this Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

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:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flutter flutter work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile: clean up the Home bottom bar with an Ask Anything button

3 participants