chatwoot/app/javascript/shared/components
Pranav b524ceeca1
feat: Auto-populate the telephone code based on the browser timezone (#10146)
Fixes https://github.com/chatwoot/chatwoot/issues/6228


There is a country code selector for the phone input field. This is
often a point of frustration. See the response below.

> We are using the phone number field however this can be frustrating
for customers, especially mobile users, to select the +1 US country
code. Our users are typically local businesses and being able to default
to +1 country code in the phone number field or the account would
improve the interaction they have with customers.


Most people who run local businesses don't need a country selector.
However, to preserve the quality of the data we store, we need a country
code.

A balance between these two issues can be found with an auto-populating
country code field based on the browser's timezone. This is what I did
in this PR. Based on the browser timezone, we will resolve it to the
closest country code.
2024-09-23 23:25:38 -07:00
..
emoji feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
FluentIcon chore: Custom Roles to manage permissions [ UI ] (#9865) 2024-09-17 11:40:11 -07:00
PhoneInput feat: Auto-populate the telephone code based on the browser timezone (#10146) 2024-09-23 23:25:38 -07:00
specs chore: Replace darkmode mixin with useDarkMode composable [CW-3474] (#9949) 2024-09-12 00:29:41 +05:30
ui refactor: useKeyboardEvents composable (#9959) 2024-08-22 16:40:55 +05:30
ArticleSkeletonLoader.vue feat: Creates components for Article Search in Reply [CW-2285] (#7957) 2023-10-16 15:02:02 +05:30
Branding.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
Button.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
CardButton.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ChatCard.vue chore: Replace darkmode mixin with useDarkMode composable [CW-3474] (#9949) 2024-09-12 00:29:41 +05:30
ChatForm.vue chore: Replace darkmode mixin with useDarkMode composable [CW-3474] (#9949) 2024-09-12 00:29:41 +05:30
ChatOption.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ChatOptions.vue chore: Repalce message formatter mixin with useMessageFormatter [CW-3470] (#9986) 2024-08-27 08:06:51 +05:30
CustomerSatisfaction.stories.js feat: Header for help-center pages (#4987) 2022-07-08 21:19:19 +05:30
CustomerSatisfaction.vue chore: Replace darkmode mixin with useDarkMode composable [CW-3474] (#9949) 2024-09-12 00:29:41 +05:30
DateSeparator.vue chore: Replace darkmode mixin with useDarkMode composable [CW-3474] (#9949) 2024-09-12 00:29:41 +05:30
EmojiOrIcon.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
GreetingsEditor.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
IframeLoader.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ResizableTextArea.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
Spinner.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
TextArea.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30