iachat/app/javascript/shared/helpers
Sivin Varghese d1d1398d80
feat: Rewrite customAttributeMixin to validation helper (#9916)
# Pull Request Template

## Description

This PR will replace the use of `customAttributeMixin` with
`shared/helpers/Validators` helper.

Fixes
https://linear.app/chatwoot/issue/CW-3446/rewrite-customattributemixin-mixin-to-a-composable

**Files updated**
1. widget/components/PreChat/Form.vue
2. dashboard/components/CustomAttribute.vue
3. dashboard/routes/dashboard/settings/attributes/EditAttribute.vue

## Type of change

- [x] New feature (non-breaking change which adds functionality)

## How Has This Been Tested?

Test the custom validation is working or not with the custom attributes.


## 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
2024-08-09 18:37:26 +05:30
..
markdownIt
specs feat: Rewrite customAttributeMixin to validation helper (#9916) 2024-08-09 18:37:26 +05:30
vuex
AudioNotificationHelper.js feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
BaseActionCableConnector.js feat: Reconnect logic (#9453) 2024-06-03 15:54:19 +05:30
clipboard.js
colorHelper.js feat: Update public portal colors with new design (#8230) 2023-11-23 08:16:52 +05:30
CustomErrors.js
CustomEventHelper.js
DateHelper.js fix: Retry message not working if the conversation has an external issue (#8529) 2023-12-13 15:46:10 +05:30
emoji.js
FileHelper.js feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
HTMLSanitizer.js
IntegrationHelper.js
KeyboardHelpers.js feat: Rewrite keyboardEventListener mixin to a composable (#9831) 2024-08-05 18:59:47 +05:30
localStorage.js feat: Implement reply to for reply editor (#8063) 2023-10-10 19:13:12 +05:30
MessageFormatter.js feat: Adds support for image resize in the message bubble (#8182) 2023-11-08 14:11:47 +05:30
MessageTypeHelper.js chore: Remove twitter actions (#8079) 2023-10-10 16:48:58 +05:30
mitt.js chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
ReportsDataHelper.js
sanitizeData.js
timeHelper.js feat: Move timeMixin to a helper (#9799) 2024-07-22 13:07:29 +05:30
Validators.js feat: Rewrite customAttributeMixin to validation helper (#9916) 2024-08-09 18:37:26 +05:30