iachat/app/javascript/dashboard/components-next
Sivin Varghese 615a0c69fe
chore: Help center improvements (#10712)
# Pull Request Template

## Description

Fixes https://linear.app/chatwoot/issue/CW-3913/issues-with-help-center

**Fixes included**
1. > The default locale that is selected should the portal default
locale.

Now, we update the last active locale in UI settings after changing the
selected locale from the article page header. This ensures that we see
the last active locale-based categories on the category page and
remember it when we return. Initially, it’s the default locale.
     
2. > I cannot switch to a different locale if there are no articles in
the portal

Now, the `v-if` condition that checked for the presence of articles in
portal has been removed. Additionally, the locale length checks for the
showing dropdown have been removed, allows locale switching even if
article is not preset.
     
3. > Create or updating the article is quite painful, see the video 

Removed the `quickSave` and `saveAndSyncDebounced` usage for a newly
creating article.

4. > I cannot see the articles if I delete the English locale
(irrespective of what I choose as default locale)

Now, the last active locale in UI settings will automatically update to
the default locale when the last active locale is deleted.

5. > Set a new default locale other than `en` and delete the `en` locale
preset in the portal. Then, adding a new locale will automatically set
`en` as the default locale, even if the `en` locale not preset in the
portal.

    Now, we pass default locale when we add a new locale.

6. Adds search for all dropdown menus
7. Update article count in realtime.


## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

**Check this linear issues**
https://linear.app/chatwoot/issue/CW-3913/issues-with-help-center


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules

---------

Co-authored-by: Pranav <pranav@chatwoot.com>
2025-01-21 13:50:01 +05:30
..
avatar feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
breadcrumb feat(v4): Add new contact details screen (#10504) 2024-12-03 21:29:47 -08:00
button feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
Campaigns feat: Update design for report pages (#10506) 2024-11-27 18:10:15 +08:00
captain chore: Auto-fetch previous page on last item deletion (#10714) 2025-01-20 14:34:23 +05:30
colorpicker feat: Update button component (#10362) 2024-10-29 14:00:24 +05:30
combobox feat(v4): Add new contact details screen (#10504) 2024-12-03 21:29:47 -08:00
Contacts feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
Conversation/ConversationCard fix: sentry issues (#10695) 2025-01-16 15:49:48 +05:30
copilot feat: Insert captain response to reply editor (#10581) 2024-12-13 15:13:16 +05:30
CustomAttributes feat(v4): Add new contact details screen (#10504) 2024-12-03 21:29:47 -08:00
dialog feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
dropdown-menu fix: links rendering in sidebar profile (#10574) 2024-12-11 17:42:46 -08:00
Editor chore: Improve new conversation form (#10687) 2025-01-15 13:10:09 +05:30
filter chore: Fix issues with Contact pages (#10544) 2024-12-05 14:24:10 -08:00
flag feat: Flag icon component (#10564) 2024-12-10 11:53:24 +05:30
HelpCenter chore: Help center improvements (#10712) 2025-01-21 13:50:01 +05:30
icon feat: Add new message bubbles (#10481) 2024-12-12 17:42:22 -08:00
Inbox fix: v4 ui issues (#10652) 2025-01-08 18:17:50 +05:30
inline-input feat: Add compose conversation components (#10457) 2024-12-05 16:31:47 -08:00
input feat: Updates on new components (#10444) 2024-11-20 20:21:35 +05:30
Label chore(v4): Update colors (#10700) 2025-01-16 15:27:23 +05:30
message feat: check if item is present (#10715) 2025-01-18 18:31:07 +05:30
NewConversation feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
pagination feat: Contact filter preview (#10516) 2024-12-02 16:22:05 +05:30
phonenumberinput feat: Improve Contact list (#10522) 2024-12-02 18:23:41 -08:00
selectmenu feat: Add the new select menu component (#10445) 2024-11-19 14:25:45 -08:00
sidebar fix: ignore subgroups without link when checking for permission (#10690) 2025-01-15 18:16:10 +05:30
spinner feat: Add Spinner to new components (#10303) 2024-10-16 17:53:46 -07:00
switch feat: Add custom attributes components (#10467) 2024-11-24 16:46:00 -08:00
tabbar feat: Update button component (#10362) 2024-10-29 14:00:24 +05:30
taginput feat(v4): Compose a new conversation from a phone number. (#10568) 2024-12-17 18:07:58 +05:30
textarea chore: Improve new conversation form (#10687) 2025-01-15 13:10:09 +05:30
CardLayout.vue feat: Updates on new components (#10444) 2024-11-20 20:21:35 +05:30
EmptyStateLayout.vue feat(v4): Update the campaigns page design (#10371) 2024-10-31 11:57:13 +05:30