Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Email notifications (snapshot-labs#3942)
* feat: Add subscription form to email report (snapshot-labs#3754) * feat: add subscribtion form to email report * feat: add the email notification form to profile page * feat: show subscription result in modal * fix(UI): move the whole subscribe logic into modal * refactor: move the subscription handler into a composable * feat: require wallet ownership proof * fix: fix typo * Update src/locales/default.json Co-authored-by: Sam <[email protected]> * fix: remove redundant submit button * refactor: extract sign function into helper and UI improvement * fix: fix form input not passing the value * refactor: remove `timestamp` from data type * Update src/components/ModalEmailSubscription.vue Co-authored-by: Dmytro Tolok <[email protected]> * fix(email modal): remove unnecessary event * fix(email subscription): add translation to button caption * fix(helpers:sign): fix signer defining and remove check ignore comment * fix(eslint): update .eslintrc-auto-import.json file * fix(text): fix default text for emailSubscription.inputCaption * fix(text): change texting for success message of email subscription * feat(email subscription): add subscribe form to the modal after voting * fix(email subscription): Changed the view of email subscription success modal * fix(email subscription): change text for success subscription modal * fix(texting): fix placeholder for email input Co-authored-by: Sam <[email protected]> * fix(texting): fix translation for email form Co-authored-by: Sam <[email protected]> * fix(UI): improve success message UI --------- Co-authored-by: Sam <[email protected]> Co-authored-by: Dmytro Tolok <[email protected]> * feat(email management): add functionality for managing email subscriptions (snapshot-labs#3907) * feat: add subscribtion form to email report * feat: add the email notification form to profile page * feat: show subscription result in modal * fix(UI): move the whole subscribe logic into modal * refactor: move the subscription handler into a composable * feat: require wallet ownership proof * fix: fix typo * Update src/locales/default.json * fix: remove redundant submit button * refactor: extract sign function into helper and UI improvement * fix: fix form input not passing the value * refactor: remove `timestamp` from data type * Update src/components/ModalEmailSubscription.vue * fix(email modal): remove unnecessary event * fix(email subscription): add translation to button caption * fix(helpers:sign): fix signer defining and remove check ignore comment * fix(eslint): update .eslintrc-auto-import.json file * fix(text): fix default text for emailSubscription.inputCaption * fix(text): change texting for success message of email subscription * feat(email subscription): add subscribe form to the modal after voting * fix(email subscription): Changed the view of email subscription success modal * fix(email subscription): change text for success subscription modal * fix(texting): fix placeholder for email input * fix(texting): fix translation for email form * fix(UI): improve success message UI * feat(jsonrpc): add interfaces for JSON-RPC * refactor(sign): simplified interface for `sign` helper * refactor(useEmailSubscription): flattify structure * feat(subscr.managm.): load current user subscriptions on page load * feat(subscriptions): Add new prop to `useEmailSubscription` composable * feat(subscr.update): add method for updating subscriptions * refactor(subscriptions): minor changes to code * feat(subscr.managm.): add modal * feat(menu): udated menu to show proper modal * refactor(subscriptions): replace redundant prop to composable In scope of this added loading subscriptions right after closing subscription modal * refactor(change naming): Change name for email management modal * refactor(subscriptions): add HOC component for defining which modal to show * feat(signing): change method from regular sign to signing with alias * refactor(comment): remove old commented code * feat(translations): add translations * fix(scaffolds): remove redundat scaffolding code * refactor(email managm.): remove redundat function wrapper * fix(CR): fix CR comments 1. Removed $attrs in ModalEmailHOC 2. fixed signing with aliases functionality 3. removed hardcodded email and added comment why we still need empty line 4. removed redundant `}` * fix(HOC): remove HOC component since it is redundant * fix(ui-lib): use tune checkbox * fix(navbar): prevent rendering navbar account component until account is not loaded * refactor(useEmailSubscription): split composable on multiple for separation of concepts * fix(types): remove redundant interfaces * fix(eof): add empty line * fix(useFetch): remove redundant arguments * fix(lint): fix lint errors * fix(switch): change custom switch to ui lib `tune` * chore(tune): update version * fix(CR): remove old styles * fix namings * fix(CR): remove custom styles --------- Co-authored-by: Wan Qi Chen <[email protected]> Co-authored-by: Sam <[email protected]> * feat(alias revert): revert back sign with alias feature * feat(subscription status): handle subscriber status from api * feat(verify modal): add verify modal * fix(revert): revert BaseMessage success status * revert(tune): revert redundant style of checkbox * fix(eslint): remove unused variable * fix(subscription): add additional check for data * fix(email management): change the order of options * fix(fonts): fix fonts for tune sublabel * fix(packages): upgrade packages after wrong merge * refactor(html): remove redundant condition for is-disabled prop * fix(verify email): change title * chore(submodule): updated submodule * fix(email): removed masked email from resend modal * fix(vote): remove subscribe button after vote action if user subscribed * feat(error handling): add error handling on subscription update request * feat(notify): add flach notifications on attempt to update email settings * fix(vote): fix wrong check * refactor(name): change name of variable * fix(error modal): remove error modal view on subscribe fail * chore: fix definition order * fix: use same text for all subscriptions state * fix: fix definition order * fix: fix missing plural * fix: fix unused variable --------- Co-authored-by: Wan <[email protected]> Co-authored-by: Sam <[email protected]>
- Loading branch information