Skip to content

fix(desktop): make app category menu scrollable with SearchableDropdown - #10093

Merged
Git-on-my-level merged 6 commits into
mainfrom
fix-scroll
Jul 25, 2026
Merged

Git-on-my-level merged 6 commits into
mainfrom
fix-scroll

Conversation

@undivisible

@undivisible undivisible commented Jul 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Makes the app category filter in AppsPage scrollable by replacing the native Menu with the existing SearchableDropdown component. This addresses overflow when the category list is long in the Apps/Connect popup.

  • desktop/macos/Desktop/Sources/MainWindow/Pages/AppsPage.swift: categoryMenu now uses SearchableDropdown with title, label, options, selectedId, and minWidth.

Product invariants affected

  • INV-CHAT-1
  • INV-VOICE-1

Failure-Class: none

Test plan

  • xcrun swiftc -parse desktop/macos/Desktop/Sources/MainWindow/Pages/AppsPage.swift passes.
  • CI desktop Swift build (Xcode 16.4) passes.
  • UI smoke test: open the app "More" menu and confirm the category dropdown scrolls and selecting a category updates the list.

Review in cubic

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for tightening this up — reusing the existing SearchableDropdown is a good fit for the long category-list overflow case, and the selection/search path looks consistent with the component’s existing usage.

I did a static review of the Swift diff and the line-count/changelog updates. I don’t see a code-level blocker in the current patch. I’m not formally approving yet because the desktop Swift build/checks are still not fully green in the current PR context, and this UI change still needs the promised manual smoke test: open the Apps/Connect category filter with a long category list, confirm the popover scrolls/searches correctly, and confirm selecting “All Categories” and a specific category refreshes the list as expected.

Once Desktop Swift Build & Tests is green and that UI smoke pass is confirmed, this looks like a good candidate to merge from my side.


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 the needs-tests PR introduces logic that should be covered by tests label Jul 20, 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.

Reviewed by automated PR reviewer — approving; merging once rerun CI is green.

@Git-on-my-level

Copy link
Copy Markdown
Member

Regression coverage required before merge

The SearchableDropdown reuse is sensible, but this is a user-visible behavior change and the PR currently changes no behavioral test. Please add focused coverage for:

  • the long-category-list scrollable/searchable picker path,
  • filtering/searching categories,
  • selecting a specific category, and
  • resetting to All Categories.

Then rebase, rerun current Desktop Swift CI, and record named-bundle UI smoke evidence. This is a Definition-of-Done requirement, not a request to redesign the implementation.

@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.

Desktop bug fix (make app category menu scrollable via SearchableDropdown) — approve only; DIRTY, needs rebase

@undivisible
undivisible force-pushed the fix-scroll branch 2 times, most recently from e243130 to e814e78 Compare July 21, 2026 23:00
@undivisible
undivisible force-pushed the fix-scroll branch 2 times, most recently from 47c88d2 to 65e7aa0 Compare July 22, 2026 01:23

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the update. The SearchableDropdown direction still looks appropriate for fixing the long category-list overflow, and I did not find a new code-level blocker in the current diff.

I’m keeping this as changes-requested because the blocking item from the earlier automation feedback is still unresolved on this head: this user-visible desktop UI path still has no focused regression coverage or recorded UI smoke evidence. Please add/record validation for the long category-list searchable/scrollable picker, category search/filtering, selecting a specific category, and resetting to All Categories, then rerun the Desktop Swift test suite once it finishes/turns green.

I also could not locally compile the Swift here because this runner does not have swiftc/xcrun; I only validated the touched JSON artifacts statically.


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

@skanderkaroui skanderkaroui left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The dropdown swap keeps all the existing selection behavior and matches how the component is used elsewhere — clean fix. Safe to merge after a quick manual check with a long category list; no automated test needed.

@skanderkaroui

Copy link
Copy Markdown
Contributor

@undivisible this looks good to merge on review but has merge conflicts with main — could you rebase/resolve the conflicts and merge? Thanks!

@undivisible

Copy link
Copy Markdown
Collaborator Author

Rebased cleanly onto latest main (3 focused commits). Push used PRE_PUSH_SKIP_DESKTOP_SWIFT=1 because main's FluidAudio SPM pin (19600a485…) no longer exists upstream — local compile can't resolve it; CI Desktop Swift remains the authority.

Still open from review: named-bundle UI smoke for long category list / search / All Categories. Happy to run that next.

@cursor

cursor Bot commented Jul 24, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@undivisible

Copy link
Copy Markdown
Collaborator Author

Review feedback addressed (cc9221ea87)

Rebased onto latest main and added focused regression coverage for the category picker change.

Code + tests

  • Extracted AppsPageCategoryFilter (option building, selection mapping, All Categories sentinel) and SearchableDropdownFiltering (search/filter + popover threshold) so the production APIs are testable without source-string greps.
  • Added AppsPageCategoryFilterTests (7 cases):
    • Long list → searchable popover path: 10 categories + All Categories ⇒ 11 options > threshold 8
    • Short list → compact menu path: 5 categories + All Categories stays under threshold
    • Search/filter: title match (clone) and id match (productivity)
    • Select category: sets AppProvider.selectedCategory
    • Reset to All Categories: clearCategoryFilter() clears category + filtered pagination state

Local verification

  • python3 desktop/macos/scripts/check_desktop_test_quality.py — OK
  • PRE_PUSH_SKIP_DESKTOP_SWIFT=1 pre-push manifest gate — passed (FluidAudio / local Xcode Beta compile remains non-authoritative here)
  • Local swift test --filter AppsPageCategoryFilterTests did not complete: unrelated ChatDraftStore.swift strict-concurrency compile failure on Xcode Beta at main head (8158d8044b). CI Desktop Swift remains the compile/test authority.

UI smoke

  • Named-bundle UI smoke was not recorded on this push: no local signed dev bundle was available (Omi Dev.app absent) and the local compile path above is blocked before ./run.sh can produce omi-* evidence.
  • Pending: Desktop Swift CI on this head (see checks on run 30069451853).

@Git-on-my-level — regression coverage is in; please re-review once Desktop Swift Test Suites is green. Happy to follow up with named-bundle smoke if you still want live picker evidence beyond the hermetic tests.

@undivisible undivisible added the no-changelog-needed Skip desktop changelog enforcement for internal-only changes label Jul 24, 2026
undivisible and others added 6 commits July 24, 2026 17:55
The category filter was a plain Menu, so long category lists (including
Integrations and Realtime Notifications) could overflow the screen and
hide items. Reuse the existing SearchableDropdown component, which caps
height and scrolls, so every category remains reachable.

Failure-Class: none

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Failure-Class: none

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Cursor <[email protected]>
Extract testable category selection and SearchableDropdown filtering helpers,
then cover long-list popover path, search/filter, select, and All Categories reset.

Co-authored-by: Cursor <[email protected]>
Category picker on AppsPage exercises SearchableDropdown; wire the
component into existing apps-marketplace and apps flow manifests.
@undivisible

Copy link
Copy Markdown
Collaborator Author

Rebased onto current main (conflicts cleared).

This head now includes AppsPageCategoryFilterTests plus e2e flow covers for the searchable/scrollable category picker (apps.yaml / apps-marketplace.yaml), which was the earlier changes-requested item about missing regression coverage.

Leaving unmerged until the changes-requested review is re-checked / cleared.

@Git-on-my-level
Git-on-my-level merged commit 01a9c9e into main Jul 25, 2026
29 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix-scroll branch July 25, 2026 01:22
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…wn (BasedHardware#10093)

## Summary
Makes the app category filter in `AppsPage` scrollable by replacing the
native `Menu` with the existing `SearchableDropdown` component. This
addresses overflow when the category list is long in the Apps/Connect
popup.

- `desktop/macos/Desktop/Sources/MainWindow/Pages/AppsPage.swift`:
`categoryMenu` now uses `SearchableDropdown` with `title`, `label`,
`options`, `selectedId`, and `minWidth`.

## Product invariants affected

- INV-CHAT-1
- INV-VOICE-1

Failure-Class: none

#### Test plan
- [x] `xcrun swiftc -parse
desktop/macos/Desktop/Sources/MainWindow/Pages/AppsPage.swift` passes.
- [x] CI desktop Swift build (Xcode 16.4) passes.
- [ ] UI smoke test: open the app "More" menu and confirm the category
dropdown scrolls and selecting a category updates the list.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10093?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-tests PR introduces logic that should be covered by tests no-changelog-needed Skip desktop changelog enforcement for internal-only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants