Chatwoot/app/javascript/shared/helpers
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
..
specs feat: Adds support for draft in conversation reply box (#4205) 2022-04-07 22:16:45 +05:30
vuex Feature: Availability Statuses (#874) 2020-07-04 11:42:47 +05:30
AudioNotificationHelper.js fix: Audio notification would not work without action on the dashboard (#4303) 2022-04-07 10:23:18 +05:30
BaseActionCableConnector.js feat: Show refresh modal on action cable disconnect (#4010) 2022-02-18 11:09:43 +05:30
CustomErrors.js Feat: Create contact from contacts page (#1806) 2021-02-19 20:22:58 +05:30
CustomEventHelper.js feat: Add chatwoot:error sdk event (#3998) 2022-02-21 09:40:11 +05:30
DateHelper.js Fix: Update offline message in widget by availability (#1879) 2021-03-13 14:06:25 +05:30
emoji.js feat: Improve sidebar UI, add emoji icons instead of ionicons (#1605) 2021-01-12 14:45:10 +05:30
faviconHelper.js Fix: Adds favicon badge for notification alert. (#2079) 2021-04-13 19:25:19 +05:30
FileHelper.js feat: Ability to send voice message to channel (#4064) 2022-03-04 19:43:07 +05:30
HTMLSanitizer.js Chore: Contact Sidebar, conversation cleanup (#908) 2020-06-02 22:59:02 +05:30
KeyboardHelpers.js Added keybindings for commandbar (#3854) 2022-01-27 17:57:33 +05:30
MessageFormatter.js fix: Fix agent name in Twitter channel private note acting as a link (#4326) 2022-03-31 20:22:52 +05:30
MessageTypeHelper.js chore: Update message limit to Twilio recommended 320 characters (#3333) 2021-11-08 10:27:00 +04:00
TimeHelpers.js feat: Adds support for draft in conversation reply box (#4205) 2022-04-07 22:16:45 +05:30
Validators.js feat: Adds ability to edit out webhook URL of API Channel (#3013) 2021-09-28 12:33:08 +05:30