Skip to content

fix(mobile): merge the answer actions into one row - #490

Merged
nixuuu merged 1 commit into
devfrom
fix/mobile-answer-actions
Nov 10, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/mobile-answer-actions

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 10, 2026

Copy link
Copy Markdown
Member

Finished mobile answers showed Copy message/Quote passage above a second Copy answer/Fork/time row. They now have one row: Copy answer, Quote passage, Fork from here, elapsed time. Copy and Fork keep their relative web order; Quote uses the existing passage editor and preserves the answer item's source.

Interim and final agent messages share a long-press Message actions sheet with Copy message and Quote passage, also exposed through accessibilityActions. User messages had only Copy; that action moves into the same long-press sheet, including folded agent-authored input bubbles. Read-only history keeps copying and the existing quote/fork restrictions.

The answer controls have real 48 dp cells, align their first icon with the prose, and remove the extra completed-answer/footer gap. Copy retains the existing check icon and Copied accessibility announcement. The shared picker handles presentation and reduced motion; quoting waits for its native modal to dismiss. No native dependencies or configuration changed. docs/mobile.md describes the new behavior.

Verification

  • Passed bun install, bun run typecheck, bun run lint, bun run format:check, and git diff --check. No UI tests added or run; web code is unchanged, so no web build was needed for this change. CI remains the full gate.
  • Ran bunx [email protected] fingerprint:generate --platform ios --build-profile production --json --non-interactive and the Android equivalent before/after. Complete JSON outputs compare equal. iOS: 6ddec9ef559ee0095ac33e94ff9418a942053b17. Android: 5f6eae3ab278f1cd543e9ed763f923a319b65ec9.
  • Inspected web AgentMessageView and TurnDetails and checked the existing synthetic timeline in a real browser on a disposable private stack at 390×844 and 1280×800, light and dark. One Copy answer per turn; no extra message action row or horizontal page overflow. The preview cannot emulate pointer hardware, so existing hover:none/pointer:coarse CSS rules were forced in the browser for this layout check. Web needs no duplication fix.
  • Native devices are unavailable. Expo web is explicitly unsupported by apps/mobile/AGENTS.md. Mobile layout, source IDs, streaming/empty/read-only cases, fold behavior, and modal handoff were reviewed in code; native long-press and VoiceOver/TalkBack behavior remain unverified. Screenshots cover web only and are kept outside the repository.

Copy audit (docs/copy.md §8)

  • Before: two icon rows with Copy message and Copy answer for the same response. After: one answer row with Copy answer, Quote passage, Fork from here, and duration; the long-press sheet reuses Message actions, Copy message, and Quote passage. Existing glossary terms, sentence case, and verb-first action labels are retained.
  • Icons remain compact to avoid crowding the phone-width row. Each has an explicit accessibility label; the message gesture has the existing Long press for message actions hint and a named screen-reader action. The sheet provides text labels; copying retains the existing check/Copied confirmation without changing control size. No extra toast or persistent labels were added.
  • No new error, empty-state, confirmation, jargon, glossary term, repeated fact, or expressive sentence. Short labels and long message bodies were reviewed against the shared picker/typography rules; actual native wrapping and assistive technology behavior require a device check. Web short/long fixture content and title truncation were checked at phone and desktop widths in both themes.

Related: #385

@nixuuu
nixuuu merged commit 4d64c58 into dev Nov 10, 2026
9 checks passed
@nixuuu
nixuuu deleted the fix/mobile-answer-actions branch November 10, 2026 12:34
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