Skip to content

fix(mobile): the T3 Connect server menu opens on real taps on Android - #39816

Open
ruck-syu wants to merge 3 commits into
pingdotgg:mainfrom
ruck-syu:fix/android-t3-connect-server-menu-small
Open

ruck-syu wants to merge 3 commits into
pingdotgg:mainfrom
ruck-syu:fix/android-t3-connect-server-menu-small

Conversation

@ruck-syu

@ruck-syu ruck-syu commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

On Android, tapping ⋮ on a server under Settings → T3 Account → T3 Connect → Registered servers did nothing, so there was no way to deregister a server from the phone. When an instant tap did get through, the menu opened about one row too high, over the wrong server.

The T3 Connect page is a Clerk custom page. On Android, Clerk hosts it inside its own Compose view under a native header, so React Native's coordinates on this page are off by the header height. A real finger always sends move events, and on each one React Native's press handling checks the touch against that wrong position, decides the finger has left the button, and cancels the press. The shared Android menu also measures the button in those coordinates and draws itself too high.

On Android, the row's ⋮ is now the shared Compose IconButton with the shared MenuPopup anchored inside the button's own view, so Android handles the touch and places the menu itself. iOS renders the original ⋮ and native menu, moved unchanged into RegisteredServerMenu.tsx.

Fixes #34521

Before / after (Pixel 8, Android 17, tap on Evenix's ⋮)

Before: finger tap Before: automated tap After
Before: after a finger-like tap on Evenix's ⋮ the page is unchanged and no menu opens Before: an instant tap on Evenix's ⋮ opens the menu over instabox-dev1, one row too high After: the menu opens directly under Evenix's ⋮
Nothing opens (the issue) Menu opens one row too high Menu opens under the tapped ⋮

Tested on a Pixel 8 (Android 17), production Clerk, real account:

  • Production 2.3.0 and this branch's base: real finger taps do nothing. Taps that send move events, even a 50 ms one that doesn't move, never open the menu. Instant taps open it one row too high.
  • Automated and accessibility taps hide the bug: adb shell input tap, accessibility clicks from UI automation and other instant taps with no move events open the menu, one row too high. Only real finger touches, or adb shell input swipe x y x y 50, which sends move events without moving, show nothing happening.
  • With the fix: real finger taps and moving taps open the menu under the right ⋮ on both rows. Back and a tap outside close it, and starting a scroll on ⋮ leaves it closed.
  • Tapping the trash icon or the "Deregister" text each opens exactly one confirmation dialog for the right server (cancelled each time).

iOS: no change in behavior. The iOS bundle resolves RegisteredServerMenu.tsx, and on an iPhone 18 Pro simulator (iOS 27.2) the moved ⋮ looks and behaves the same as the original, enabled and disabled.

Checks: vp run check:changed passes.

Created with Claude Opus 5.5, GPT-6.2 Sol and GPT-6.2 Astra (Codex) in T3 Code, reviewed by Gemini 4 Neon.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 20, 2026
@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The change adds a registered-server menu component with Android popup behavior. The T3 Connect profile page uses the component for registered-server actions and retains the existing deregistration confirmation flow.

Changes: Registered Server Menu

Layer / File(s) Summary
Menu component and Android behavior
apps/mobile/src/features/cloud/RegisteredServerMenu.tsx, apps/mobile/src/features/cloud/RegisteredServerMenu.android.tsx
The shared component accepts actions, an accessibility label, a disabled state, and a press callback. On Android, it opens a popup anchored to the button and closes on back, close, action press, or when disabled.
Profile page integration
apps/mobile/src/features/cloud/T3ConnectProfilePage.tsx
Registered-server rows use the new component with the existing deregistration action and confirmation callback. The menu is disabled while an environment is deregistering.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant T3ConnectProfilePage
  participant RegisteredServerMenu
  participant MenuPopup
  T3ConnectProfilePage->>RegisteredServerMenu: Pass actions and disabled state
  RegisteredServerMenu->>MenuPopup: Open popup anchored to button
  MenuPopup->>RegisteredServerMenu: Select deregistration action
  RegisteredServerMenu->>T3ConnectProfilePage: Call confirmation callback
Loading

Possibly related PRs

  • pingdotgg/t3code#39894 — Updates the disabled iOS server menu touch handling that the profile page retains around the new component.

Suggested labels: bugfix

Suggested reviewers: macroscopeapp

Merge Risk: Minimal · previous review 11b02

This change fixes the registered-server menu on Android and keeps the iOS behavior and the existing deregistration confirmation. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the T3 Connect registered-server overflow menu now opens on real taps on Android. It follows the conventional commit format and matches the changeset, which adds an An…
Description check Passed The description follows the template well. It states the problem with expected behavior and environment, explains the cause and the fix, and gives a clear iOS note. It links issue #34521 under Scope, …
Linked Issues check Passed [#34521] The issue requires that tapping the registered server's three-dot button on Android opens a menu that offers Deregister, and that choosing Deregister shows the existing confirmation dialog. T…
Out of Scope Changes check Passed All changed files concern the registered-server overflow menu in apps/mobile/src/features/cloud. The summary lists three files: RegisteredServerMenu.android.tsx (Android IconButton and MenuPopup), Reg…
Full details: Title check

Explanation

The title names the main change: the T3 Connect registered-server overflow menu now opens on real taps on Android. It follows the conventional commit format and matches the changeset, which adds an Android-specific RegisteredServerMenu anchored inside the button's view.

Full details: Description check

Explanation

The description follows the template well. It states the problem with expected behavior and environment, explains the cause and the fix, and gives a clear iOS note. It links issue #34521 under Scope, and it includes detailed Android verification with before/after screenshots. It also notes the checks run and the model used. The Scope section does not explain why a small fix needs no issue, but the issue is linked, so this is a minor gap. The description is mostly complete.

Full details: Linked Issues check

Explanation

[#34521] The issue requires that tapping the registered server's three-dot button on Android opens a menu that offers Deregister, and that choosing Deregister shows the existing confirmation dialog. The whole-PR summary shows apps/mobile/src/features/cloud/RegisteredServerMenu.android.tsx (+42) as an IconButton with the ellipsis icon, an accessibilityLabel, and a disabled prop. Its onPress opens state. When open, it renders MenuPopup with props.actions inside the button's own view, so Android places the menu under the tapped button. Each action closes the menu and calls props.onPressAction. In T3ConnectProfilePage.tsx (+11/-29), the row renders RegisteredServerMenu with the existing Deregister action and confirmation callback, replacing the inline Menu and Pressable. The previous assessment read the Android wiring at head 1bf8c98. The later change adds the pointerEvents wrapper from main in RegisteredServerMenu.tsx. It affects the disabled state only and does not remove the Android path. The issue does not require automated tests or device verification. The reported Pixel 8 testing is supporting evidence only. The iOS isAnchoredToRight alignment is not part of the Android requirement.

Full details: Out of Scope Changes check

Explanation

All changed files concern the registered-server overflow menu in apps/mobile/src/features/cloud. The summary lists three files: RegisteredServerMenu.android.tsx (Android IconButton and MenuPopup), RegisteredServerMenu.tsx (shared props type and iOS menu moved unchanged, including isAnchoredToRight and the pointerEvents wrapper for the disabled state), and T3ConnectProfilePage.tsx (replaces the inline menu with the shared component). These changes form the direct path for the Android fix in #34521. The pointerEvents guard, taken from main, is a disabled-state detail within the same component. The summary shows no unrelated files. The whole-PR base-to-head diff was not read directly, so the claim that the iOS menu is unchanged rests on the PR description and the summary, and the prop set was not compared against the base revision. This uncertainty does not change the verdict because the iOS move is part of this component's scope.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 498b98d and 11b0283.

Files selected for processing: 2

  • apps/mobile/src/features/cloud/RegisteredServerMenu.tsx
  • apps/mobile/src/features/cloud/T3ConnectProfilePage.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@juliusmarminge juliusmarminge added takeover:needs-julius Takeover done; route gate says Julius decides and removed takeover:in-progress A takeover lead is working on this PR labels Nov 20, 2026
@juliusmarminge juliusmarminge added takeover:in-progress A takeover lead is working on this PR and removed takeover:needs-julius Takeover done; route gate says Julius decides labels Nov 20, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

The automated pipeline stopped on this pull request and will not merge it:

someone else pushed to fix/android-t3-connect-server-menu-small (head is now 1bf8c98); the pipeline does not build on commits it did not review

It stays open for a person to finish or close.

@juliusmarminge juliusmarminge added takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Nov 20, 2026
@ruck-syu

Copy link
Copy Markdown
Contributor Author

Sorry, 1bf8c98a89 came from a conflict-resolution automation on my side, not a deliberate change. It's only a merge of main into your takeover head 93457ad0a0.

The one conflict was in T3ConnectProfilePage.tsx, against #39894. The resolution keeps #39894's pointerEvents wrapper and puts this PR's <RegisteredServerMenu> inside it. Your isAnchoredToRight and IconButton changes are unchanged, and the diff against main is still the same 3 files.

If the pipeline would rather resume from the head it reviewed, I can reset the branch to 93457ad0a0. I won't push to this branch again unless you ask.

@juliusmarminge juliusmarminge added takeover:in-progress A takeover lead is working on this PR and removed takeover:blocked Takeover blocked; reason in the PR body labels Nov 24, 2026
@juliusmarminge
juliusmarminge force-pushed the fix/android-t3-connect-server-menu-small branch from b3388db to 498b98d Compare November 24, 2026 08:41
@juliusmarminge juliusmarminge added takeover:needs-julius Takeover done; route gate says Julius decides and removed takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 29, 2026
@ruck-syu
ruck-syu force-pushed the fix/android-t3-connect-server-menu-small branch 2 times, most recently from 11b0283 to 9fd2e84 Compare November 29, 2026 11:00
@github-actions github-actions Bot removed the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 30, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Dec 2, 2026
ruck-syu and others added 3 commits December 2, 2026 15:35
Reuse the shared Compose button and dropdown in Clerk’s profile page so native taps open the menu at the server row.
Restore isAnchoredToRight, which the extraction dropped, and let the
Android IconButton own its disabled look instead of dimming it twice.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ration

Carry main's pointerEvents guard into the extracted RegisteredServerMenu.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ruck-syu
ruck-syu force-pushed the fix/android-t3-connect-server-menu-small branch from 9fd2e84 to f1fcc11 Compare December 2, 2026 10:09

This branch has not been deployed

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

Labels

needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. size:L 100-499 changed lines (additions + deletions). takeover:needs-julius Takeover done; route gate says Julius decides vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Registered servers overflow menu does not open in T3 Connect on Android 2.3.0

2 participants