Skip to content

Dialpad first version#1870

Merged
carocao-msft merged 17 commits intomainfrom
carocao/dialpad
May 11, 2022
Merged

Dialpad first version#1870
carocao-msft merged 17 commits intomainfrom
carocao/dialpad

Conversation

@carocao-msft
Copy link
Copy Markdown
Contributor

@carocao-msft carocao-msft commented May 9, 2022

What

Created a dialpad component that allows user to click on the dialpad/ use keyboard to enter numbers

Why

This is a required feature for PTSN calling

How Tested

Tested in storybook
Screen Shot 2022-05-09 at 12 34 44 PM
Screen Shot 2022-05-09 at 12 34 39 PM

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2022

Comment thread packages/react-components/src/components/Dialpad/Dialpad.tsx Outdated
Comment thread packages/react-components/src/components/Dialpad/Dialpad.styles.ts Outdated
Comment thread packages/react-components/src/components/Dialpad/Dialpad.tsx Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2022

Comment thread packages/react-components/src/components/Dialpad/Dialpad.tsx Outdated
Comment thread packages/react-components/src/components/Dialpad/Dialpad.tsx Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2022

Comment thread packages/react-components/src/components/Dialpad/Dialpad.tsx Outdated
Comment thread packages/react-components/stable-review/react-components.api.md Outdated
Comment thread packages/react-components/src/components/Dialpad/Dialpad.tsx Outdated
Comment thread packages/react-components/src/localization/locales/en-US/strings.json Outdated
Comment thread packages/react-components/src/components/styles/Dialpad.styles.ts Outdated
Comment thread packages/react-components/src/components/Dialpad/Dialpad.tsx Outdated
@JamesBurnside
Copy link
Copy Markdown
Member

Error text is a little unreadable in dark mode:
image

Looks to ahve a different value to sendbox's:
image
image

Can you check out @mgamis-msft's PR to keep these two values consistent: #1861

Comment thread packages/react-components/stable-review/react-components.api.md Outdated
Comment thread packages/communication-react/stable-review/communication-react.api.md Outdated
Comment thread packages/storybook/stories/Dialpad/Dialpad.stories.tsx
@carocao-msft
Copy link
Copy Markdown
Contributor Author

It's looking great!! One bit of design feedback for @pereiralex - can we have a delete button somewhere? e.g. if I type a number by clicking the dialpad buttons, if I make a mistake currently there's no way to delete an incorrect digit:

image

Checked with Alex P and he said since dialpad is keyboard editable, we are not adding in a delete button for now, just to keep things simple

@carocao-msft
Copy link
Copy Markdown
Contributor Author

Error text is a little unreadable in dark mode: image

Looks to ahve a different value to sendbox's: image image

Can you check out @mgamis-msft's PR to keep these two values consistent: #1861

Updated color for error text

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor


import { formatPhoneNumber } from './formatPhoneNumber';

describe('Dialpad numbers should be formatted based on NA phone format by formatPhoneNumber function', () => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great tests! 🤩

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

@carocao-msft carocao-msft merged commit 009be2d into main May 11, 2022
@carocao-msft carocao-msft deleted the carocao/dialpad branch May 11, 2022 18:50
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.

3 participants