chatwoot/app/javascript/dashboard
Sojan Jose 7fe94dc1a2
feat(voice): Call button on Contacts with inbox picker (#12218)
## Description
This introduces a reusable Call button used in the Contacts details
header (between Block contact and Send message) and
in the conversation contact panel. The button shows only when the
account has at least one Voice inbox and the contact
has a phone number. If multiple Voice inboxes are present, clicking
opens a picker modal; otherwise, a “Calling is under
development” toast is shown

> Actual wiring to functionality will available in follow up PRs

references: #11602 , #11481 

## Screens 

<img width="250" alt="Screenshot 2025-08-18 at 8 33 02 PM"
src="https://github.com/user-attachments/assets/d7a09a9d-8eff-4461-a75f-27854540c2a0"
/>
<img width="250" alt="Screenshot 2025-08-18 at 8 32 31 PM"
src="https://github.com/user-attachments/assets/682ae66e-dd5f-4750-9c30-0a210e120250"
/>
<img width="250" alt="Screenshot 2025-08-18 at 8 32 40 PM"
src="https://github.com/user-attachments/assets/7de0d753-eefc-4b7f-942b-ecca1964fcd7"
/>


## Test Cases

- Enable voice feature and create inboxes and test the cases for both
contact details view and contact card view in conversation
  - Details: 0 Voice inboxes → no Call button.
- Details: 1+ Voice inboxes, no phone number for contact → no Call
button.
- Details: 1 Voice inbox + phone number for contact → button visible;
click → toast.
- Details: >1 Voice inboxes + phone number for contact → click → modal →
choose → toast.

---------

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
2025-08-19 15:42:01 +05:30
..
api feat: add reauth flow for wa embedded signup (#11940) 2025-08-08 01:48:45 +05:30
assets chore: Improve layout styles (#12025) 2025-07-30 13:49:27 -07:00
components feat: WhatsApp enhanced templates front end changes (#12117) 2025-08-12 18:53:19 +05:30
components-next feat(voice): Call button on Contacts with inbox picker (#12218) 2025-08-19 15:42:01 +05:30
composables feat: Add automation rule event conversation resolved (#9669) 2025-08-13 12:57:14 +05:30
constants feat: Add automation rule event conversation resolved (#9669) 2025-08-13 12:57:14 +05:30
helper feat: Add automation rule event conversation resolved (#9669) 2025-08-13 12:57:14 +05:30
i18n feat(voice): Call button on Contacts with inbox picker (#12218) 2025-08-19 15:42:01 +05:30
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules chore: Replace Thumbnail with Avatar (#12119) 2025-08-11 15:47:17 +05:30
routes feat(voice): Call button on Contacts with inbox picker (#12218) 2025-08-19 15:42:01 +05:30
store feat: WhatsApp enhanced templates front end changes (#12117) 2025-08-12 18:53:19 +05:30
App.vue fix: RTL issues in new conversation form (#12163) 2025-08-11 14:16:48 -07:00
featureFlags.js feat: WhatsApp campaigns (#11910) 2025-07-16 09:04:02 +05:30