Commit graph

392 commits

Author SHA1 Message Date
Kailash Nadh c2d41e0671 Remove redundant test code. 2022-11-09 23:30:13 +05:30
Kailash Nadh d613bb5a44 Make font size of certain on the settings UI consistent. 2022-11-09 23:29:29 +05:30
Kailash Nadh fd70776166 Fix table cell content alignment in campaign list. Closes #742. 2022-11-01 22:54:40 +05:30
Kailash Nadh d8e3e25f06 Add preconfirm optin option to bulk list management UI. Closes #935. 2022-11-01 21:39:02 +05:30
Kailash Nadh ef1f84ee7c Add new description field to lists. Closes #925. 2022-11-01 21:04:35 +05:30
Kailash Nadh 95b8df2918 Add tests for new subscription form. 2022-10-29 15:23:28 +05:30
Kailash Nadh 3b0083190e Add ability for subscribers to manage preferences on the unsub form.
- Ability to change name.
- Ability to unsubscribe from individual lists.
- Toggle option to enable this in Admin Settings -> Privacy.

Closes #455.
2022-10-29 15:23:28 +05:30
Kailash Nadh 372a144322 Display template IDs on the list UI and popup editor. Closes #986. 2022-10-22 17:29:31 +05:30
Kailash Nadh d2e8a9368c Upgrade Cypress to major version 10. 2022-10-18 21:58:57 +05:30
Kailash Nadh bea1680360 Fix incorrect day-of-week on the UI. Closes #942. 2022-10-01 14:12:07 +05:30
Kailash Nadh 5b8c705f03 Fix headers not being copied in campaign clone. Closes #948. 2022-09-16 23:19:15 +05:30
Kailash Nadh 6d820f4f6e Add maintenance options.
- Add new maintenance UI with options to garbage collect (delete)
  orphan subscriber and analytics records.
2022-09-03 14:58:25 +05:30
Kailash Nadh cd09c5a59d Remove MailerSend (no config available) from SMTP settings UI. 2022-07-30 21:05:58 +05:30
Kailash Nadh 57dbb9e5db Add explicit warning on empty password to SMTP test UI. 2022-07-30 20:42:17 +05:30
dependabot[bot] d19a55b08a
Bump terser from 4.7.0 to 4.8.1 in /frontend (#885)
Bumps [terser](https://github.com/terser/terser) from 4.7.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 10:40:21 +05:30
Kailash Nadh df31426566 Add button to insert HTML snippets into WYSIWYG editor. 2022-07-13 22:24:27 +05:30
Kailash Nadh 9107edf867 Add SMTP config shortcuts for popular providers in the settings UI. 2022-07-11 21:17:23 +05:30
Kailash Nadh 278d5bf74e Merge branch 'test-smtp' 2022-07-11 19:46:03 +05:30
Kailash Nadh ee448170ef Add support for testing SMTP connections in the settings UI. 2022-07-11 19:44:44 +05:30
Kailash Nadh e99c8ed86b Disable template type updation after creation to prevent breaking of campaign relations. 2022-07-09 10:36:12 +05:30
Kailash Nadh 5a5caca256 Refactor campaign/template preview functions and component. 2022-07-09 10:36:12 +05:30
Kailash Nadh f26f7c60af Refactor template tests. 2022-07-09 10:36:12 +05:30
Kailash Nadh bc07a459ea Fix clone tx template on the templates UI. 2022-07-09 10:36:12 +05:30
Kailash Nadh 463e92d1e1 Add transactional (tx) messaging capability.
This commit adds a new API `POST /api/tx` that sends an ad-hoc message
to a subscriber based on a pre-defined transactional template. This is
a large commit that adds the following:

- New campaign / tx template types on the UI. tx templates have an
  additional subject field.
- New fields `type` and `subject` to the templates table.
- Refactor template CRUD operations and models.
- Refactor template func assignment in manager.
- Add pre-compiled template caching to manager runtime.
- Pre-compile all tx templates into memory on program boot to avoid
  expensive template compilation on ad-hoc tx messages.
2022-07-09 10:36:12 +05:30
Kailash Nadh 83a0e1057e Add 'test' button to SMTP UI to test connections. 2022-07-09 10:33:50 +05:30
dependabot[bot] 66499acbf7
Bump shell-quote from 1.7.2 to 1.7.3 in /frontend
Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/substack/node-shell-quote/releases)
- [Changelog](https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md)
- [Commits](https://github.com/substack/node-shell-quote/compare/v1.7.2...1.7.3)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-23 04:10:01 +00:00
dependabot[bot] ffffdcf028
Bump eventsource from 1.0.7 to 1.1.1 in /frontend
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.0.7...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-01 18:33:35 +00:00
Kailash Nadh e0b01a89ef Fix UI elements not getting locked on finished campaigns. Closes #771 2022-05-11 21:53:34 +05:30
Kailash Nadh a3fd4616e3 Merge big refactor with the 'core' branch. 2022-05-08 19:23:57 +05:30
Kailash Nadh b4f0c7ef31 Fix ambiguous route name in frontend route definitions. 2022-05-08 19:23:43 +05:30
Kailash Nadh fee2ef3cc9 Upgrade axios lib.
The dependabot axios upgrade introduced an unknown bug that broke
axios calls. Upgrading to the latest version seems to fix that.
2022-05-08 19:21:32 +05:30
Kailash Nadh 9aef4f2741 Enable browser spell check in the campaign editor UI. Closes #786. 2022-05-08 14:41:54 +05:30
Kailash Nadh 19c1e51c60 Fix unsub status not showing for non-optin lists on the subscribers UI. 2022-05-08 14:39:08 +05:30
Kailash Nadh d39816e5eb
Merge pull request #795 from knadh/dependabot/npm_and_yarn/frontend/axios-0.21.2
Bump axios from 0.21.1 to 0.21.2 in /frontend
2022-05-03 10:52:19 +05:30
Kailash Nadh b5cd9498b1 Refactore all CRUD functions to a new core package.
This is a long pending refactor. All the DB, query, CRUD, and related
logic scattered across HTTP handlers are now moved into a central
`core` package with clean, abstracted methods, decoupling HTTP
handlers from executing direct DB queries and other business logic.

eg: `core.CreateList()`, `core.GetLists()` etc.

- Remove obsolete subscriber methods.
- Move optin hook queries to core.
- Move campaign methods to `core`.
- Move all campaign methods to `core`.
- Move public page functions to `core`.
- Move all template functions to `core`.
- Move media and settings function to `core`.
- Move handler middleware functions to `core`.
- Move all bounce functions to `core`.
- Move all dashboard functions to `core`.
- Fix GetLists() not honouring type
- Fix unwrapped JSON responses.
- Clean up obsolete pre-core util function.
- Replace SQL array null check with cardinality check.
- Fix missing validations in `core` queries.
- Remove superfluous deps on internal `subimporter`.
- Add dashboard functions to `core`.
- Fix broken domain ban check.
- Fix broken subscriber check middleware.
- Remove redundant error handling.
- Remove obsolete functions.
- Remove obsolete structs.
- Remove obsolete queries and DB functions.
- Document the `core` package.
2022-05-03 10:50:29 +05:30
Kailash Nadh a94f238952 Sanitize HTML in Buefy dialogs. 2022-05-01 12:14:01 +05:30
dependabot[bot] f489573298
Bump axios from 0.21.1 to 0.21.2 in /frontend
Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-30 05:50:26 +00:00
dependabot[bot] 8794c92a83
Bump async from 2.6.3 to 2.6.4 in /frontend
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-29 17:20:14 +00:00
dependabot[bot] 2b787025a4
Bump minimist from 1.2.5 to 1.2.6 in /frontend
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-27 01:48:03 +00:00
Kailash Nadh a7145511fd
Merge pull request #726 from knadh/dependabot/npm_and_yarn/frontend/prismjs-1.27.0
Bump prismjs from 1.25.0 to 1.27.0 in /frontend
2022-03-20 11:08:16 +05:30
Kailash Nadh 61e1260144
Merge pull request #728 from knadh/dependabot/npm_and_yarn/frontend/url-parse-1.5.10
Bump url-parse from 1.5.7 to 1.5.10 in /frontend
2022-03-20 11:08:01 +05:30
Kailash Nadh 4e6410ec17 Fix list_ids not being considered in bulk list change on the UI. Fixes #737. 2022-03-20 11:02:43 +05:30
Kailash Nadh ef643a14a3 Add ability to export select subscriber ids.
- Add `id=[]` query param to `/api/subscribers/export` API.
- Add UI export prompt.
- Add Cypress tests.

Closes #739
2022-03-19 13:44:23 +05:30
Kailash Nadh 8db8ecfccd Upgrade Cypress. 2022-03-19 13:44:06 +05:30
Kailash Nadh bfce146895 Hide confirmed/unconfirmed from single opt-in lists on the UI. Ref #741 2022-03-19 11:14:02 +05:30
Giovanni Harting 3eca66c81b activated anchor plugin for TinyMCE editor 2022-03-17 11:44:45 +01:00
Kailash Nadh f9854bc54b Remove redundant status from single opt-in list subscriptions on the UI. Closes #741. 2022-03-10 19:30:28 +05:30
Kailash Nadh 3b0c8b3b15 Fix updated settings/config init routine on settings UI. 2022-03-02 21:31:00 +05:30
Kailash Nadh b4c716302f Don't show duration on scheduled campaigns that are finished. Closes #701. 2022-03-02 21:22:44 +05:30
Kailash Nadh 8d6e475479 Merge branch 'fix-i18n' 2022-03-02 21:00:07 +05:30