Skip to content

Update PhoneInputDialog UI/UX: tabs, quick dial dropdown, footer dial button - #4630

Draft
stephenhand with Copilot wants to merge 55 commits into
CHI-3946-quick_dial_with_configfrom
copilot/update-phone-input-dialog-ui-ux
Draft

Update PhoneInputDialog UI/UX: tabs, quick dial dropdown, footer dial button#4630
stephenhand with Copilot wants to merge 55 commits into
CHI-3946-quick_dial_with_configfrom
copilot/update-phone-input-dialog-ui-ux

Conversation

Copilot AI commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Replaces the temporary POC-era PhoneInputDialog with a redesigned popover matching the approved design: conditional tabs, a quick dial dropdown, full-width manual entry, a footer-anchored primary Dial button, and auto-close on connect.

Changes

PhoneInputDialog.tsx

  • Conditional StyledTabs: Quick Dial / Enter Number tabs render only when both quickDialOptions (≥1) and enableManualDial are configured; otherwise the single available mode renders tab-free
  • Quick dial dropdown: <select> pre-populated from config, defaults to first option, formatted as number | label
  • Dial button: changed from secondary-large to PrimaryButton with buttonSize="small", moved to footer (right-aligned)
  • Dial button disabled: inactive until input is non-empty in Enter Number mode
  • Full-width input: 100% of content area width
  • Help text: moved below input field, color #606B85, text "Example: +1 123-456-7890"
  • Removed <DialogArrow /> (triangular pointer)

styles.ts

  • Removed DialogArrow and Flex import
  • Added: PhoneDialogContent, PhoneDialogFooter, PhoneNumberInput, QuickDialSelect, HelpText

hrmConfig.ts

  • Exported QuickDialOption type ({ number, label })
  • Reads conferencing_quick_dial_options (array, default []) and conferencing_enable_manual_dial (boolean, default true) from service configuration attributes

ConferencePanel.tsx

  • Passes quickDialOptions and enableManualDial to PhoneInputDialog
  • Closes dialog when callStatus === 'in-progress'

Translations

  • Added keys Conference-QuickDialTab, Conference-EnterNumberTab, Conference-PhoneNumberExample, Conference-QuickDialSelectLabel to all 6 translation files (en, en-CA, en-GB, es, fr, th)

Verification steps

  1. Configure conferencing_quick_dial_options in service config attributes (e.g. [{"number": "988", "label": "Suicide and Crisis Lifeline"}]) and conferencing_enable_manual_dial: true — verify both tabs appear and the quick dial dropdown pre-selects the first entry; Dial button active immediately
  2. Set conferencing_enable_manual_dial: false — verify only Quick Dial renders with no tabs
  3. Set conferencing_quick_dial_options: [] — verify only Enter Number renders with no tabs; Dial button disabled until input is non-empty
  4. Dial a number — verify popover closes once the call reaches in-progress

Checklist

  • Corresponding issue has been opened
  • New tests added
  • Feature flags added
  • Strings are localized
  • Tested for chat contacts
  • Tested for call contacts

Other Related Issues

None

AFTER YOU MERGE

  1. Cut a release tag using the Github workflow. Wait for it to complete and notify in the #aselo-deploys Slack channel.
  2. Comment on the ticket with the release tag version AND any additional instructions required to configure an environment to test the changes.
  3. Only then move the ticket into the QA column in JIRA

You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P

stephenhand and others added 30 commits July 15, 2026 14:37
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
…nt/AsyncIterable pattern

Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
- Add SMS channel to twilio-iac/helplines/e2e/development.hcl using the
  messaging-lex-v3-blocking-lambda.tftpl template (same as aselo_webchat)
  and an empty contact_identity (conversations address managed separately)
- Create twilio-iac/helplines/e2e/files/additional.configure.tf that uses
  a Twilio data source to look up the only phone number attached to the
  account at apply time and creates the SMS conversations address linked to
  the SMS studio flow
- Guard twilio_conversations_configuration_addresses_v1 in channels/v1/main.tf
  so channels with an empty contact_identity skip automatic address creation
  (allowing helpline-specific additional.tf to manage it instead)

Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
- Replace dynamic phone number lookup with hardcoded +12607821891 in both development.hcl and additional.configure.tf
- Remove data source that previously scraped the phone number from the Twilio account
- Set contact_identity to the hardcoded phone number in the SMS channel configuration

Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
The twilio-iac/terraform-modules/channels/v1/main.tf module now
automatically creates the SMS conversations address since
contact_identity is no longer empty. The separate additional.configure.tf
file is no longer needed.

Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
- Add voice channel using voice-no-chatbot-operating-hours-blocking-lambda template
- Use the same phone number (+12607821891) as the SMS channel
- Include voice_ivr_greeting_message, voice_ivr_blocked_message, and voice_ivr_language
- Follows established patterns used in other helplines for voice configurations

Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
…nt/AsyncIterable pattern

Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
- Add SMS channel to twilio-iac/helplines/e2e/development.hcl using the
  messaging-lex-v3-blocking-lambda.tftpl template (same as aselo_webchat)
  and an empty contact_identity (conversations address managed separately)
- Create twilio-iac/helplines/e2e/files/additional.configure.tf that uses
  a Twilio data source to look up the only phone number attached to the
  account at apply time and creates the SMS conversations address linked to
  the SMS studio flow
- Guard twilio_conversations_configuration_addresses_v1 in channels/v1/main.tf
  so channels with an empty contact_identity skip automatic address creation
  (allowing helpline-specific additional.tf to manage it instead)

Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
Copilot AI and others added 21 commits July 22, 2026 23:44
- Add voice channel using voice-no-chatbot-operating-hours-blocking-lambda template
- Use the same phone number (+12607821891) as the SMS channel
- Include voice_ivr_greeting_message, voice_ivr_blocked_message, and voice_ivr_language
- Follows established patterns used in other helplines for voice configurations

Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
…I-3711-voice_test_poc

# Conflicts:
#	e2e-tests/tests/offlineContact.spec.ts
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
CHI-3711: POC for voice and sms E2E tests - CI only
Copilot AI linked an issue Aug 21, 2026 that may be closed by this pull request
…button

Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
Copilot AI changed the title [WIP] Update PhoneInputDialog UI/UX per requirements Update PhoneInputDialog UI/UX: tabs, quick dial dropdown, footer dial button Aug 21, 2026
Copilot AI requested a review from stephenhand August 21, 2026 12:47
@stephenhand
stephenhand changed the base branch from master to CHI-3946-quick_dial_with_config August 21, 2026 14:47
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.

Update the PhoneInputDialog UI/UX

2 participants