Sojan Jose
58e78621ba
chore: Custom Roles to manage permissions [ UI ] ( #9865 )
...
In admin settings, this Pr will add the UI for managing custom roles (
ref: https://github.com/chatwoot/chatwoot/pull/9995 ). It also handles
the routing logic changes to accommodate fine-tuned permissions.
---------
Co-authored-by: Pranav <pranavrajs@gmail.com >
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: iamsivin <iamsivin@gmail.com >
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2024-09-17 11:40:11 -07:00
Sivin Varghese
aa4edaa1e6
feat: Display emoji names and improve search ( #10104 )
...
This PR enhances the emoji search functionality in the editor's emoji selector by improving how emoji names are displayed and searched.
The UI now shows emoji names instead of slugs, and the search logic has been updated to generate `searchString` without whitespaces, allowing users to search for emojis like 'face_with' using 'facewith'
2024-09-13 10:54:18 +05:30
Sivin Varghese
a3732c8f51
feat: Adds support for selecting emojis using the keyboard ( #10055 )
2024-09-04 11:32:54 +05:30
Sivin Varghese
b4b308336f
feat: Eslint rules ( #9839 )
...
# Pull Request Template
## Description
This PR adds new eslint rules to the code base.
**Error rules**
| Rule name | Type | Files updated |
| ----------------- | --- | - |
| `vue/block-order` | error | ✅ |
| `vue/component-name-in-template-casing` | error | ✅ |
| `vue/component-options-name-casing` | error | ✅ |
| `vue/custom-event-name-casing` | error | ✅ |
| `vue/define-emits-declaration` | error | ✅ |
| `vue/no-unused-properties` | error | ✅ |
| `vue/define-macros-order` | error | ✅ |
| `vue/define-props-declaration` | error | ✅ |
| `vue/match-component-import-name` | error | ✅ |
| `vue/next-tick-style` | error | ✅ |
| `vue/no-bare-strings-in-template` | error | ✅ |
| `vue/no-empty-component-block` | error | ✅ |
| `vue/no-multiple-objects-in-class` | error | ✅ |
| `vue/no-required-prop-with-default` | error | ✅ |
| `vue/no-static-inline-styles` | error | ✅ |
| `vue/no-template-target-blank` | error | ✅ |
| `vue/no-this-in-before-route-enter` | error | ✅ |
| `vue/no-undef-components` | error | ✅ |
| `vue/no-unused-emit-declarations` | error | ✅ |
| `vue/no-unused-refs` | error | ✅ |
| `vue/no-use-v-else-with-v-for` | error | ✅ |
| `vue/no-useless-v-bind` | error | ✅ |
| `vue/no-v-text` | error | ✅ |
| `vue/padding-line-between-blocks` | error | ✅ |
| ~`vue/prefer-prop-type-boolean-first`~ | ~error~ | ❌ (removed this
rule, cause a bug in displaying custom attributes) |
| `vue/prefer-separate-static-class` | error | ✅ |
| `vue/prefer-true-attribute-shorthand` | error | ✅ |
| `vue/require-explicit-slots` | error | ✅ |
| `vue/require-macro-variable-name` | error | ✅ |
**Warn rules**
| Rule name | Type | Files updated |
| ---- | ------------- | ------------- |
| `vue/no-root-v-if` | warn | ❎ |
Fixes https://linear.app/chatwoot/issue/CW-3492/vue-eslint-rules
## Type of change
- [x] New feature (non-breaking change which adds functionality)
## 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
---------
Co-authored-by: Fayaz Ahmed <fayazara@gmail.com >
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
Co-authored-by: Pranav <pranav@chatwoot.com >
2024-08-05 14:02:16 +05:30
Sivin Varghese
fb99ba7b40
feat: Rewrite uiSettings mixin to a composable ( #9819 )
2024-07-23 21:27:22 +05:30
Sivin Varghese
79aa5a5d7f
feat: Replace alertMixin usage with useAlert ( #9793 )
...
# Pull Request Template
## Description
This PR will replace the usage of `alertMixin` from the code base with
the `useAlert` composable.
Fixes
https://linear.app/chatwoot/issue/CW-3462/replace-alertmixin-usage-with-usealert
## Type of change
- [x] Breaking change (fix or feature that would cause existing
functionality not to work as expected)
## How Has This Been Tested?
Please refer this issue description
https://linear.app/chatwoot/issue/CW-3462/replace-alertmixin-usage-with-usealert
## Checklist:
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] 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
---------
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2024-07-23 16:41:11 +05:30
Fayaz Ahmed
b474929f5e
chore: Replace eventBus with mitt.js [CW-3275] ( #9539 )
...
# Replace the deprecated `eventBus` with mitt.js
## Description
Since eventBus and it's respective methods are deprecated and removed
from all future releases of vue, this was blocking us from migrating.
This PR replaces eventBus with
[mitt](https://github.com/developit/mitt ). I have created a wrapper
mitt.js to simulate the same old event names so it's backwards
compatible, without making a lot of changes.
Fixes # (issue)
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality not to work as expected)
- [ ] This change requires a documentation update
## How Has This Been Tested?
1. Made sure all the places we're listening to bus events are working as
expected.
2. Respective specsf or the events from mitt.
## 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
- [x] 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
- [x] Any dependent changes have been merged and published in downstream
modules
2024-05-31 15:50:36 +05:30
Shivam Mishra
47f8b2cd0c
refactor: handling keyboard shortcuts ( #9242 )
...
* fix: Resolve and go next keyboard shortcuts doesn't work
* refactor: use buildHotKeys instead of hasPressedCommandPlusAltAndEKey
* feat: install tinykeys
* refactor: use tinykeys
* test: update buildKeyEvents
* fix: remove stray import
* feat: handle action list globally
* feat: allow configuring `allowOnFocusedInput`
* chore: Navigate chat list item
* chore: Navigate dashboard
* feat: Navigate editor top panel
* feat: Toggle file upload
* chore: More keyboard shortcuts
* chore: Update mention selection mixin
* chore: Phone input
* chore: Clean up
* chore: Clean up
* chore: Dropdown and editor
* chore: Enter key to send and clean up
* chore: Rename mixin
* chore: Review fixes
* chore: Removed unused shortcut from modal
* fix: Specs
---------
Co-authored-by: iamsivin <iamsivin@gmail.com >
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
2024-04-26 15:41:02 +05:30
Sivin Varghese
597a4164e8
fix: Editor hyperlink popup is hidden under modal ( #8950 )
2024-02-16 08:19:06 +05:30
Sivin Varghese
78fab7897d
feat: Use typing status from utils ( #8589 )
2023-12-22 13:47:41 +05:30
Sivin Varghese
e0f33e62af
feat: Adds support for image resize in the message bubble ( #8182 )
2023-11-08 14:11:47 +05:30
Shivam Mishra
5d224f2e04
feat: allow inbox specific flags for signature toggle ( #8280 )
...
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
2023-11-08 10:47:22 +05:30
Shivam Mishra
bb5c6a416a
fix: insert position for canned responses ( #8069 )
2023-10-10 10:36:10 +05:30
Sivin Varghese
759a66dd21
feat: Add the ability to send attachment in new conversation ( #7913 )
2023-10-10 09:34:36 +05:30
Sivin Varghese
86ca90aa15
feat: Support image resize in message signature ( #8042 )
2023-10-09 13:20:12 +05:30
Nithin David Thomas
e27274a5a8
chore: Adds a bus event to insert text at cursor in editor ( #7968 )
...
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
2023-10-05 14:37:01 +05:30
Sivin Varghese
c19cfeaa81
feat: Adds message signature for new email conversations ( #7946 )
...
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
2023-10-03 13:45:28 +05:30
Sivin Varghese
845b0c0a68
fix: Editor file upload browser showing bug ( #8019 )
2023-09-29 17:53:54 +05:30
Shivam Mishra
a88d155dd7
feat: update tool-chain to latest ( #7975 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-09-27 14:02:34 +05:30
Shivam Mishra
48bf8d08e5
feat: Update dependencies and fix import syntax for Vite migration ( #7959 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-09-21 17:55:54 +05:30
Sivin Varghese
2c93d563c1
fix: Update colors to fix dark mode in the editor add-link modal header ( #7947 )
2023-09-20 17:29:27 +05:30
Shivam Mishra
29110ffd6b
feat: Allow signature in the editor directly ( #7881 )
...
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2023-09-15 18:46:40 +05:30
Sivin Varghese
e39d19b1e8
feat: Adds image support for message signature ( #7827 )
...
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
2023-09-11 10:23:45 +05:30
Sivin Varghese
3038aaef67
fix: Editor menu option is not showing ( #7879 )
2023-09-07 17:15:19 +05:30
Nithin David Thomas
57feedbf25
fix: Fixes extra backslash while breaking paragraphs [CW-1505] ( #7457 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2023-08-28 15:46:10 +05:30
Sivin Varghese
04aa13e8aa
feat: Disable options from the message signature editor ( #7777 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-08-26 08:51:39 +05:30
Sivin Varghese
69d46f278a
feat: Dark mode improvements ( #7658 )
2023-08-03 12:05:22 -07:00
Shivam Mishra
62e9fc1bc5
feat: update color palette [CW-2293] ( #7617 )
2023-08-01 21:34:10 +05:30
Sivin Varghese
40ec0d109a
feat: Dark Mode ( #7471 )
2023-07-21 22:10:25 +05:30
Nithin David Thomas
c7bf93ef8a
fix: Adds a space after mention to improve UX ( #7506 )
2023-07-11 17:37:37 -07:00
Pranav Raj S
985b3f3bfc
chore: Reset the base font-size to 16px instead of 10px ( #7455 )
...
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
2023-07-04 03:23:00 +05:30
Muhsin Keloth
09c9300c21
chore: Use canned response variable helpers from utils ( #7007 )
2023-04-27 17:01:34 +05:30
Nithin David Thomas
ee3124cf84
fix: Uses woot-button in mention box ( #6317 )
...
* fix: Uses woot-button in mention box
* Style changes to fix mention box position
* Fixes review comments
* Fixes review comments
---------
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
Co-authored-by: Vishnu Narayanan <vishnu@chatwoot.com >
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
2023-01-31 16:25:24 +05:30
Muhsin Keloth
d9a1154977
feat: Support variables in canned response ( #6077 )
...
- Added the option to insert variables in canned responses.
- Populate variables on selecting a canned response.
- Show a warning if there are any undefined variables in the message before sending a message.
2023-01-24 13:06:50 +05:30
Shivam Mishra
37b9816827
feat: more events tracking for SaaS ( #6234 )
2023-01-17 21:53:40 -08:00
Pranav Raj S
d0972a22b4
chore: Update styles for canned response ( #6262 )
2023-01-16 12:40:13 -08:00
Nithin David Thomas
e707778490
feat: Revamp editor for message and article ( #6145 )
...
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2023-01-16 09:08:47 -08:00
Sivin Varghese
4172cb4b23
feat: Uses expanded layout as default if the breakpoint is less than or equal to 992px ( #6134 )
...
* feat: Uses expanded layout as default if the breakpoint is below 992px
* fixes: ES lint issue
* chore: Review fixes
* chore: Hide toggle sidebar menu in profile settings
* chore: Fix login screen
* Update app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
* chore: Review fixes
* chore: Review fixes
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
2023-01-09 13:26:31 +05:30
Pranav Raj S
6200559123
chore: Update analytics events ( #6050 )
2022-12-08 20:53:13 -08:00
Sivin Varghese
89cfc5bbf3
fix: Send message with "enter" also do new line ( #5961 )
...
* fix: Send message with "enter" also do new line
* chore: Review fixes
* chore: Naming fixes
* chore: Minor fixes
* chore: Fix line break issue when cmd plus enter enabled
2022-12-06 11:25:49 +05:30
Sivin Varghese
613fb0b064
fix: Unable to add emoji exactly where the cursor is at ( #5865 )
...
* fix: Unable to add emoji exactly where the cursor is at
* chore: Minor fixes
* chore: Review fixes
* chore: Code clean up
* chore: Review fixes
* chore: Minor fixes
* chore: Review fixes
2022-12-05 11:16:00 +05:30
Nithin David Thomas
c94ba16565
fix: Updates logic to insert canned response into editor ( #5880 )
...
* fix: Updates logic to insert canned response into editor
* Removes commented code
* Parse incoming canned text as markdown
2022-11-29 19:46:55 +05:30
Pranav Raj S
cd4c1ef27e
feat: Update the design of mentions with thumbnail ( #5551 )
2022-10-05 14:18:16 -07:00
Nithin David Thomas
705d06ac3c
fix: Avoid editor formatting issues when a canned response is edited ( #5533 )
2022-09-30 15:03:33 -07:00
Pranav Raj S
7bb8186e43
chore: Update self-closing tag eslint config ( #4826 )
...
* chore: Fix self-closing tag issues
* Fix merge conflicts
Co-authored-by: Fayaz Ahmed <15716057+fayazara@users.noreply.github.com >
2022-06-10 19:29:52 +05:30
Pranav Raj S
bc7bcc20b8
Revert "feat: Adds support for draft in conversation reply box ( #4205 )" ( #4425 )
...
This reverts commit 5ea0436051 .
2022-04-08 15:52:39 +05:30
Nithin David Thomas
5ea0436051
feat: Adds support for draft in conversation reply box ( #4205 )
...
* Add draft support
* Fixes issue with draft loading
* Adds draft for private notes
* Use localstorage helper
* .remove instead of .clear
* Remove timestamp
* clearLocalStorageOnLogout
* Fix draft save on refresh
* Remove usage of delete operator
* Adds autosave for draft messages
* Remove setinterval and add debounce
* Removes draft redundancy check
* Adds test cases for debouncer
* Update app/javascript/shared/helpers/specs/TimeHelpers.spec.js
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
* Update app/javascript/shared/helpers/specs/TimeHelpers.spec.js
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
* Review fixes
* Fixes issue with debouncer
* FIxes debouncer issue
* Fixes issue with draft empty message
* Removes empty keys from local storage drafts
* Fixes error with empty draft
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
Co-authored-by: Fayaz Ahmed <15716057+fayazara@users.noreply.github.com >
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: iamsivin <iamsivin@gmail.com >
2022-04-07 22:16:45 +05:30
Sivin Varghese
86b4183bde
fix: Add multiple file paste support and fix for bugs ( #4066 )
...
- Add multiple files paste support.
- Fixes showing file name in the editor field when we paste the file from finder.
- Fixes showing the image in the advance editor when we paste the image as an attachment from the clipboard.
Fixes : #4036
Co-authored-by: Nithin David <1277421+nithindavid@users.noreply.github.com >
2022-03-23 18:25:57 +05:30
Sivin Varghese
e182b59002
bug: fixes link icon doesn't work in the campaign editor ( #3447 )
2021-11-23 15:26:26 +05:30
Pranav Raj S
8e6ce3a813
feat: Add notes for Contacts ( #3273 )
...
Fixes #2275
2021-10-25 18:35:58 +05:30