Chatwoot/app/javascript/dashboard/helper
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 chore: Pass sso_account_id to select the account during SSO Login (#4103) 2022-03-03 20:49:51 +05:30
actionCable.js feat: Update notifications and unread count in real time (#4261) 2022-03-28 20:01:23 +05:30
actionQueryGenerator.js fix: Update validations in automation edit actions (#4370) 2022-04-05 15:22:56 +05:30
APIHelper.js chore: Adjust Chatwoot Config to deploy frontend as a separate app (#2347) 2021-05-28 19:21:16 +05:30
commons.js feat: Adds the ability to edit and delete custom attributes (#2982) 2021-09-13 03:26:18 -07:00
downloadCsvFile.js feat: Add Reports for teams (#3116) 2021-10-06 23:53:51 +05:30
filterQueryGenerator.js fix: Avoid filter payload changing to null on load more conversations (#3926) 2022-02-07 22:14:21 +05:30
inbox.js feat: Use Fluent SVG icons on the dashboard (#3482) 2021-11-30 21:03:18 -08:00
localStorage.js feat: Adds support for draft in conversation reply box (#4205) 2022-04-07 22:16:45 +05:30
pushHelper.js Feature: Add web push notification permission in frontend (#766) 2020-05-06 00:10:56 +05:30
scriptGenerator.js Chore: Add web_widget_script in the Inboxes API (#615) 2020-03-16 12:32:34 +05:30
scriptHelpers.js feat: Configure Chatwoot & Analytics for SaaS app (#2975) 2021-09-07 23:11:01 +05:30
states.js Move src to dashboard (#152) 2019-10-16 14:36:17 +05:30
URLHelper.js chore: Pass sso_account_id to select the account during SSO Login (#4103) 2022-03-03 20:49:51 +05:30