Copy client and agent contact details on mobile inspection (email, phone, and more)

Objective

  • Email (original ask): When staff tap Email on a contact in the mobile inspection flow, copy the email address to the clipboard instead of leaving the app via a mailto: link, with brief confirmation.
  • Broader copy support: Make it easy to copy other client and client’s-agent information shown for that person on the inspection contact card—so inspectors can paste into other apps while on site (for example when building or filling out different report templates that need names, phones, role labels, etc.).
  • Decision needed: UX pattern—per-field copy (tap a row), a Copy all / Copy for report action that formats multiple lines, or both.

Background

  • Opening the device mail client for Email disrupts in-app workflows; copying the address was the first fix.
  • Inspectors also need quick access to the rest of the contact context without retyping from the card—same motivation as the email change, extended to name, phone, role, title, and any other fields the API supplies for that contact on mobile.

Scope

Mobile

  • Primary UI: attik-mobile/attik-mobile/components/inspection/ContactsList.tsx (handleEmail today uses Linking.openURL with mailto:). Implement clipboard for email and extend to additional fields the screen already has or can show (see Contact in attik-mobile/attik-mobile/types/index.ts: name, firstName/lastName, email, phone, title; role name from person._roleId).
  • If the inspection payload can include company or address for contacts later, include those in copy targets when present—decision needed whether to expand the mobile contact type / fetch shape.
  • Use expo-clipboard or React Native Clipboard consistently with app patterns; keep Call and Message behaviors unchanged unless product asks to add copy on phone rows too (copy phone number on long-press is a natural extension).

References

  • attik-mobile/attik-mobile/components/inspection/ContactsList.tsx
  • attik-mobile/attik-mobile/types/index.ts (Contact, PeopleAssignment)

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
🏠

Main App

Date

2 months ago

Author

Linear

Subscribe to post

Get notified by email when there are changes.