iachat/app/javascript/dashboard
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
..
api feat: Add assistant filter support to documents page (#10697) 2025-01-15 21:41:07 -08:00
assets chore(v4): Update colors (#10700) 2025-01-16 15:27:23 +05:30
components fix: Download button opens URL instead of downloading (#10710) 2025-01-17 14:34:44 +05:30
components-next chore: Help center improvements (#10712) 2025-01-21 13:50:01 +05:30
composables fix: sentry issues (#10695) 2025-01-16 15:49:48 +05:30
constants feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
helper fix: Remove Report API calls from being called on every event (#10691) 2025-01-15 11:23:00 -08:00
i18n feat: add CSAT & Form bubble (#10711) 2025-01-17 15:30:52 +05:30
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
routes fix: Vite dev build fails due to sass (#10716) 2025-01-20 14:34:33 +05:30
store chore: Help center improvements (#10712) 2025-01-21 13:50:01 +05:30
App.vue fix: Resolve accountId from the route, initialize route-sync before the app is loaded (#10245) 2024-10-08 09:25:51 -07:00
featureFlags.js feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00