Skip to content

fix(mobile): float the composer tray and pickers over the chat - #519

Merged
nixuuu merged 1 commit into
devfrom
fix/mobile-composer-overlays
Nov 10, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/mobile-composer-overlays

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 10, 2026

Copy link
Copy Markdown
Member

Expanding mobile subagents or queued messages changed the feed's bottom reserve, moving the conversation. Suggestion lists also occupied space above the input, and New thread inserted them into the form. These lists now open upwards in a bounded overlay; only collapsed tray headers retain their layout slots.

Fixes: #466

  • Add a portal in the existing native window, anchored and measured on the UI thread. Opening a panel changes neither the timeline reserve nor its mounted list. Subagent expansion is local state, without a device-preference update across the timeline.
  • Use the same opaque themed surface for subagents, queue, background tasks, and suggestions in thread/side-thread, new-thread and bot composers. Lists size to content, cap at the available space and 40% of the visible viewport, and scroll internally with a reserved indicator gutter.
  • Consume outside taps; support Close, downward swipe, accessibility escape and Android Back. Pickers retain their input and keyboard. Tray panels isolate screen-reader navigation and restore focus to the trigger. Motion grows from the bottom edge with shared tokens and is skipped for reduced motion.
  • Temporarily reduce the input to one row in short visible viewports, independently of overlay state. Keep controls mounted. Side-thread creation already uses a sheet without suggestions; the created conversation uses the shared thread composer.

Validation:

  • bun install, bun run typecheck, bun run lint, bun run format:check, and git diff --check: pass. No UI tests added or run. Full integration tests, generation checks and builds were outside this task's permitted verification scope.
  • bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactive: before/final outputs are byte-for-byte identical. iOS: 6ddec9ef559ee0095ac33e94ff9418a942053b17; Android: 5f6eae3ab278f1cd543e9ed763f923a319b65ec9. No native dependencies or configuration changed.
  • Browser comparison used the production web ComposerTop, SubagentsPanel and MentionSuggestions in a scratch fixture, in light/dark at 320px and 1280px widths, with typical and long labels. The desktop suggestion popover kept focus in the textarea. Expanding the web tray preserved the measured timeline top (57px), height (800px), and scrollTop (300px). Scratch screenshots are outside the repository.
  • Native rendering, IME behavior, swipe gestures, accessibility focus, landscape and performance are unverified on a device. Expo web is unsupported by repository policy and was not added. Android's IME may consume Back before the JavaScript handler; the keyboard-hide event then also closes the overlay.

Copy audit (docs/copy.md §8): reuse “Subagents”, “Background tasks”, “Suggestions” and “Queued messages” as compact panel headings; add “Close subagents”, “Close background tasks”, “Close suggestions” and “Close queued messages” as explicit screen-reader actions. Existing row labels, errors and empty states remain. Sentence case and glossary checked; no new terms or soul copy. Long titles truncate in code; the browser label check covers the web reference, not native rendering.

@nixuuu
nixuuu merged commit 03bb615 into dev Nov 10, 2026
9 checks passed
@nixuuu
nixuuu deleted the fix/mobile-composer-overlays branch November 10, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant