iachat/app/javascript
Sivin Varghese 73f768e0bf
fix: Handle slug validation errors in Help Center (#11368)
# Pull Request Template

## Description

This PR fixes an issue with slug validation in the Help Center portal
settings. Previously, users were able to create or update slugs with
invalid characters such as spaces, slashes, and special symbols, which
cause help center to crash.

With this update, slug creation and updates are now properly validated.
Only slugs that match the allowed pattern will be accepted. No spaces,
underscores, slashes, or special characters are allowed.

Examples: **user**, **user-guide**

---

Fixes
https://linear.app/chatwoot/issue/CW-4273/add-validation-for-help-centre-slugs

## Type of change

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

## How Has This Been Tested?

### Loom video

https://www.loom.com/share/a2ca5e2104984f28b29539293ffed33a?sid=e5064cb8-6220-4c43-99da-242c25d32027


## 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
- [x] 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
2025-04-24 16:58:05 +05:30
..
dashboard fix: Handle slug validation errors in Help Center (#11368) 2025-04-24 16:58:05 +05:30
design-system feat: Add histoire for component playground (#10256) 2024-10-09 22:10:53 -07:00
entrypoints feat: update notification settings (#10529) 2024-12-05 19:05:04 +05:30
portal feat: Add RTL Support to Widget (#11022) 2025-03-21 09:39:03 -07:00
sdk fix: Inconsistent widget bubble focus outline shape (#11345) 2025-04-21 16:53:52 -07:00
shared fix: Handle slug validation errors in Help Center (#11368) 2025-04-24 16:58:05 +05:30
superadmin_pages chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
survey feat: Add RTL Support to Widget (#11022) 2025-03-21 09:39:03 -07:00
v3 fix: Signup form validation issue with captcha handling (#11232) 2025-04-02 15:19:58 -07:00
widget fix: Rendering issue with Pre-chat message (#11255) 2025-04-08 11:49:23 +05:30
histoire.setup.ts feat: Add compose conversation components (#10457) 2024-12-05 16:31:47 -08:00