Repository navigation
fix(mobile): the @ menu opens in group rooms and item comments - #47940
Conversation
The composer's menu found where to draw by looking for the chat screen's container, which the group room and item page don't have. Each screen that hosts a composer now marks the area its menus may cover. Room members in the @ menu show in the regular font with their faces, as in the agent chat.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
Typing @ in a group room on the phone did nothing: the list of who you can mention never appeared. The same was true for @ and / in an item's comment box. Now both open, and the names in the room's list look like the agent chat's.
What Changed
closest('[data-testid="native-chat-view"]')). The group room became its own page in feat(mobile): attach photos to posts in a group room #47361 and the item page sits in a drawer, so neither had that container and the menu returned early.MobileNativeChatComposerMenuHostis a View that hands its own ref to the menu layer through context. The agent chat, the group room and the item page each wrap the area under their header in it, and the menu draws inside that area. The header and the room's tab bar stay uncovered. The agent chat keeps itsnative-chat-viewtestID, which its lower region still reads.Why
Making the host part of the composer's owner means any screen that renders a composer can say where its menus go, without copying a testID. There are three composer screens, and all are covered. I ruled out falling back to the page body: on a short screen with the keyboard up, the menu could then cover the nav bar's back button.
"everyone" still sorts A to Z among the members. That is the shared
rankNativeChatRoomMembersorder, and the desktop's @ list uses it too, so pinning "everyone" first or last would be a separate change for both apps.Linked Issue
None. A design review on main found this.
Visual Proof
These are real page builds of the group room in Chromium through the shell double, at 393×852.
Group room, typing
@(before: no menu; after: the members)Room with members on other computers, after
Item comment box, typing
@(before: no menu; after: files)Testing
I built the page bundle (
pnpm build:mobile-web) before and after the change and drove the real pages in headless Chromium:@opened no menu before and opens the member list after.Can @renarrows the list.@opened nothing before and lists files after./still opens the Commands list.pnpm check:changedand the mobile typecheck pass. I added no test: this is DOM placement in the web layer, and only a rendered page shows it.Performance
None, because this adds one context read per menu layer and one wrapper View per composer screen. Nothing runs per keystroke beyond what the layer already did.
Risk
The riskiest part is layout. The room and the item page now have one more flex-1 View around the transcript and the composer. If it broke, the room or item page would lay out wrongly. The screenshots show both unchanged. The native (non-web) menu layer still renders inline and ignores the host. A plain revert backs this out.
Level: Low
AI Disclosure
Review
Two reviewers each ran one round and found nothing.
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
The sibling pattern this follows is the chat view's own lower region, which hands its scroll nodes to the menu layer through context (
MobileNativeChatLowerRegion.web.tsx:69).Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)