Commit graph

442 commits

Author SHA1 Message Date
Kailash Nadh
97583fe4b4 Rewrite frontend with Vue+Buevy and ditch React+Ant Design.
- antd+react was resulting in extremely clunky and unreadable
  spaghetti frontend code (primarily due to how antd is).
- Buefy is lighter by an order of magnitude, has excellent
  responsive views (especially tables) and usability.
- Vue's templating produces far more readable template code.
2020-07-04 00:12:14 +05:30
Karan Sharma
23faa9f127 fix: Remove root URI on frontend
Removes appending root URI in `img src` from frontend which broke the rendering
of S3 URLs in campaign templates.

Closes https://github.com/knadh/listmonk/issues/101
2020-05-16 19:39:21 +05:30
Kailash Nadh
901c456aa9 Fix issues with responsive UI on the campaign page 2020-03-08 15:55:22 +05:30
Kailash Nadh
68c4ccdefc Fix campaign UI to update start/schedule button automatically 2020-03-08 15:23:57 +05:30
Kailash Nadh
0a2d2d66be Refactor forms UI 2020-03-07 22:32:36 +05:30
Kailash Nadh
c08ca14a5b Add subscription forms 2020-03-07 20:22:01 +05:30
Kailash Nadh
2ee2e68230 Inject version during build into the frontend 2020-02-09 18:50:08 +05:30
Kailash Nadh
f039f351c1 Link list name to subscribers page on lists UI 2020-02-09 17:27:51 +05:30
Kailash Nadh
afdf053288 Add 'send opt-in mail' link to subscriber modal UI 2020-02-09 17:17:58 +05:30
Kailash Nadh
8616aa8028 Remove status from example on the import UI 2020-02-09 11:36:15 +05:30
Kailash Nadh
ab8bac226f Fix title bug in list modal UI 2020-02-09 11:36:15 +05:30
Kailash Nadh
022b35c4a7 Add support for sending 'opt-in' campaigns.
- Campaigns now have a `type` property (regular, opt-in)
- Opt-in campaigns work for double opt-in lists and e-mail
  subscribers who haven't confirmed their subscriptions.
- Lists UI shows a 'Send opt-in campaign' optin that
  automatically creates an opt-in campaign for the list
  with a default message body that can be tweaked before
  sending the campaign.
- Primary usecase is to send opt-in campaigns to subscribers
  who are added via bulk import.

This is a breaking change. Adds a new Postgres enum type
`campaign_type` and a new column `type` to the campaigns table.
2020-02-09 11:36:15 +05:30
Kailash Nadh
af14fff6c2 Refactor campaign content type references 2020-02-09 11:36:15 +05:30
Kailash Nadh
ec22170176 Fix list ID parsing in campaign UI 2020-02-09 11:36:15 +05:30
Kailash Nadh
871893a9d2 Add double opt-in support.
- Lists can now be marked as single | double optin.
- Insert subscribers to double opt-in lists send out a
  confirmation e-mail to the subscriber with a confirmation link.
- Add `{{ OptinURL }}` to template functions.

This is a breaking change. Adds a new field 'optin' to the lists
table and changes how campaigns behave. Campaigns on double opt-in
lists exclude subscribers who haven't explicitly confirmed subscriptions.

Changes the structure and behaviour of how notification e-mail routines,
including notif email template compilation,  notification callbacks for
campaign and bulk import completions.
2020-02-09 11:36:15 +05:30
Kailash Nadh
6681f189fc Fix 'send_at' option on the UI and bug in starting scheduled campaigns 2020-01-19 20:46:25 +05:30
Kailash Nadh
0d8abf9435 Fix subscriber export button 2019-12-01 17:57:13 +05:30
Vivek R
3e5a6468e7 fix: responsive layour fixes for table, modal and form fields 2019-09-09 00:14:16 +05:30
Vivek R
a7034bb3ad WIP: responsive design 2019-09-09 00:10:19 +05:30
Kailash Nadh
649d1b11f0 Fix 'send later' switch + date not updating on campaign edit 2019-08-26 23:45:18 +05:30
Kailash Nadh
d0a7c3baf7 Add Prettier conf 2019-08-26 23:42:47 +05:30
Kailash Nadh
3b7902802e Add data privacy export / wipe features (aimed at GDPR compliance).
- Toggle options to enable self-service data export and wipe
  options on the public unsubscription page. Subscribers can get
  a copy of all data on them e-mailed to them as JSON, or
  instantly wipe all their data.
- Refactor "unsubscribe" pages and URIs to "subscription".
- Add export icon to subscriber admin view.
2019-07-21 19:21:23 +05:30
Kailash Nadh
6409c9a23b Add missing help link to subscriber modal 2019-07-12 15:09:58 +05:30
Kailash Nadh
f457605707 Remove unimplemented features from nav 2019-07-12 13:53:56 +05:30
Kailash Nadh
e89a54b957 Refactor and add new build routines
- Fix version injection in build
- Refactor Makefile
- Add --new-config flag to generate sample config
- Add license
- Remove autogenerated frontend README
- Refactor make dist to do end-to-end build
- Refactor build and add goreleaser conf
2019-07-09 15:57:04 +05:30
Kailash Nadh
be20014524 Add doc links to UI 2019-07-04 18:41:30 +05:30
Kailash Nadh
348e65f1ec Fix lists not showing on the subscriber form 2019-07-04 13:39:05 +05:30
Vivek R
11ca4beddb chore: fix frontend directory structure 2019-05-27 17:17:26 +05:30
Kailash Nadh
8701cb445a Fix import and campaign page and integrate new paginated lists API 2019-05-14 22:06:14 +05:30
Kailash Nadh
d9585a7365 Add pagination to the lists page 2019-05-14 16:41:05 +05:30
Kailash Nadh
b078c0006c Fix missing lists fetch in query-campaigns 2019-04-23 22:36:20 +05:30
Kailash Nadh
3bf405fc1c Refactor and fix importer state bugs
- Fixed invalid file uploads leaving the importer in a hanging
  state without exiting
- Make the import UI always show the upload status page so that
  error logs are visible
2019-04-03 14:08:31 +05:30
Kailash Nadh
cfec13c589 Optimize campaign and subscriber queries
- Simplify campaigns querying to separate statistics gather into
  a separate query for lazy loading.
- Simplify subscribers query to separate list fetching into
  a separate query for lazy loading.
2019-04-01 17:07:24 +05:30
Kailash Nadh
baa618475b Add 'send campaign' shortcut link to lists view 2019-03-28 18:18:26 +05:30
Kailash Nadh
3de7b3f560 Fix incorrect maxlength param values 2019-03-28 18:04:27 +05:30
Kailash Nadh
6b29c0ff28 Remove subscriber list link from list name 2019-03-28 17:59:32 +05:30
Kailash Nadh
178604dbbf Refactor campaigns view
- Fix sorting issues
- Add status filter
- Add name + subject search
2019-03-28 17:17:51 +05:30
Kailash Nadh
9655ce6f14 Refactor subscriber data src to check for errors 2019-03-28 17:16:21 +05:30
Kailash Nadh
917cb8aeed Reformat all JS to 'prettier' style 2019-03-09 13:16:47 +05:30
Kailash Nadh
9fc23a89de Fix text in global footer 2019-01-04 18:41:21 +05:30
Kailash Nadh
ac2234a838 Refactored subscriber add/edit from from modal to modal + standalone view 2019-01-04 18:27:34 +05:30
Kailash Nadh
ab1a6bbed8 Add ID and UUID info to list, subscriber, and campaign views 2019-01-04 12:40:10 +05:30
Kailash Nadh
7eeb813f19 Add embedding of static assets for standalone dist binary
This is a big commit that involves drastic changes to how static assets
(.sql and template files, the whole frontend bundle) are handled.
listmonk distribution should be a self-contained single binary
distribution, hence all static assets should be bundled. After
evaluating several solutions, srtkkou/zgok seemed like the best bet but
it lacked several fundamental features, namely the ability to fall back
to the local filesystem in the absence of embedded assets (for instance,
in the dev mode). Moreover, there was a lot of room for cleanup.

After a PR went unanswered, github.com/knadh/stuffbin was created. Just
like zgok, this enables arbitrary files and assets to be embedded into a
compiled Go binary that can be read during runtime. These changes
followed:

- Compress and embed all static files into the binary during
  the build (Makefile) to make it standalone and distributable
- Refactor static paths (/public/* for public facing assets,
  /frontend/* for the frontend app's assets)
- Add 'logo_url' to config
- Remove 'assets_path' from config
- Tweak yarn build to not produce symbol maps and override
  the default /static (%PUBLIC_URL%) path to /frontend
2019-01-03 16:48:47 +05:30
Kailash Nadh
72cf9e2d9b Fix state setting on subscriber modal unmount 2018-12-19 11:53:45 +05:30
Kailash Nadh
b461f51275 Change default name/email search query to case insensitive regex instead of LIKE 2018-12-19 00:12:40 +05:30
Kailash Nadh
f686606b9e Fix broken close function in clone campaign modal 2018-12-18 23:55:18 +05:30
Kailash Nadh
f54170d509 Add view and click counts to campaign API response and UI 2018-12-18 23:46:29 +05:30
Kailash Nadh
a4135be9c7 Doc and typo fix on the import page 2018-12-18 23:21:49 +05:30
Kailash Nadh
099ca1183d Doc fix in advanced query placeholder 2018-12-18 23:17:53 +05:30
Kailash Nadh
f2bbf86846 Display subscription status in the subscribers table 2018-12-18 16:24:50 +05:30
Kailash Nadh
11f8e62cf1 Add subscriber count to the subscriber page heading 2018-12-18 13:34:23 +05:30
Kailash Nadh
5f0e3acfb9 Add bulk subscriber querying, segmentation, and management features
- Add a name / e-mail "quicksearch" input to the UI
- Implement row selection and aggregation at table level and a "select all" that selects all rows at the query level
- On selected subscribers, add bulk list management (add / remove / unsubscribe), blacklist, and delete
2018-12-18 10:54:55 +05:30
Kailash Nadh
755d3d2630 Refactor and add subscriber search and segmentation UI 2018-11-30 13:49:33 +05:30
Kailash Nadh
2a161a567a Redesign the 'broken' warning page 2018-11-28 18:41:00 +05:30
Kailash Nadh
5662fac440 Refactor redirection on campaign creation 2018-11-28 18:37:39 +05:30
Kailash Nadh
ccd966a1f4 Refactor campaign 'save' button and add 'start' button to campaign page 2018-11-28 18:35:33 +05:30
Kailash Nadh
ca19b50126 Fix content tab redirection on campaign creation 2018-11-28 14:17:02 +05:30
Kailash Nadh
8a0a7a195e Add support for importing unzipped CSV 2018-11-27 12:21:59 +05:30
Kailash Nadh
5ff0e446ed Make the default template the default selection on the campaign form 2018-11-27 11:54:23 +05:30
Kailash Nadh
0577367d4f Fix default values in the campaign dropdown 2018-11-26 16:38:09 +05:30
Kailash Nadh
6d96986b3a Add loadng spinner to dashboard 2018-11-06 16:33:04 +05:30
Kailash Nadh
08717528c5 Fix incorrect campaign counts on dashboard 2018-11-06 16:18:52 +05:30
Kailash Nadh
b333d05609 Fix merge conflicts 2018-11-06 15:59:13 +05:30
Kailash Nadh
dce6db7b73 Untrack yarn.lock 2018-11-06 15:57:50 +05:30
Kailash Nadh
e3a6ba3e28 Untrack yarn.lock 2018-11-06 15:57:39 +05:30
Kailash Nadh
9511a78d91 Add welcome dashboard
- Add a stats overview API to aggregate global stats
- Add bizcharts to the project to render visualisations
- WIP: Add stats widgets and visualisations to the dashboard
2018-11-06 15:14:26 +05:30
Kailash Nadh
c3d1813695 Add an error page for app config (window.CONFIG) not being loaded 2018-11-06 09:01:24 +05:30
Kailash Nadh
f334022cd6 Make duration stats visibility conditional 2018-11-05 23:27:44 +05:30
Kailash Nadh
ec7d398c21 Rearrange and move prominent action icons to the front 2018-11-05 23:07:10 +05:30
Kailash Nadh
d09a16d514 Add form blocking + spinner to the upload form 2018-11-05 23:06:38 +05:30
Kailash Nadh
0f56a5c1a5 Fix campaign stats cell width 2018-11-05 19:19:16 +05:30
Kailash Nadh
ec02921c25 Fix SVG logo (font to path) 2018-11-05 17:04:39 +05:30
Kailash Nadh
6761d1af23 Add missing placement param to all antd notification() calls 2018-11-05 17:03:25 +05:30
Kailash Nadh
f2c09e716c Refactor the import process
- Add 'Subscribe' and 'Blacklist' modes to the importer
- Removed 'override status' and the support for the 'status' field in import files
2018-11-05 16:59:09 +05:30
Kailash Nadh
31e180089e WIP: Add dashboard stats queries and endpoint 2018-11-05 11:19:08 +05:30
Kailash Nadh
9aa413013a Update logo 2018-11-05 11:15:35 +05:30
Kailash Nadh
ac8c7ed93b Add custom theme overhaul
- Use 'config-overrides.js' with less loader to load ant.design's less files instead of the compiled css to override theme variables
- Change logo, favicon, and primary theme colours
- Add pageTitle() to App() to let components set page titles
- Move all notifications to bottomRight to avoid blocking action items on the UI
2018-11-03 17:53:22 +05:30
Kailash Nadh
5d099ab10c Make image inserts use full root URL 2018-11-02 23:57:44 +05:30
Kailash Nadh
ad8787cab3 Load global configuration into the frontend as a JS dict using a <script> inclusion 2018-11-02 23:33:00 +05:30
Kailash Nadh
ae2ca2cb5d Fix routes not remounting with keys 2018-11-02 16:02:48 +05:30
Kailash Nadh
6c5cf0da7a Add support for campaign view tracking with {{ TrackView }} pixel tag 2018-11-02 13:20:32 +05:30
Kailash Nadh
027bc02a83 Fix re-rendering of iframe by removing state dependency for spinner 2018-11-02 13:17:18 +05:30
Kailash Nadh
0fee76a88e Add loading spinner to preview modal 2018-11-02 00:14:43 +05:30
Kailash Nadh
1ae2905bf5 Add help text 2018-10-31 18:23:57 +05:30
Kailash Nadh
52f8217b77 Fix form state locking on save 2018-10-30 11:18:15 +05:30
Kailash Nadh
d89b22e757 Add 'send campaign test' feature 2018-10-29 15:20:49 +05:30
Kailash Nadh
b70ceccd02 Refactor and fix the bad URL param substitution method 2018-10-29 15:16:53 +05:30
Kailash Nadh
e794aa703d Fix campaigns table actions cell width 2018-10-26 13:23:12 +05:30
Kailash Nadh
9582e20cd7 Fix the preview button in the new template form 2018-10-26 12:29:46 +05:30
Kailash Nadh
0849dc491b Added the clone modal that was accidentally removed 2018-10-26 12:24:51 +05:30
Kailash Nadh
a1b5a39cfb Added preview component with preview support for campaigns and templates 2018-10-26 11:18:17 +05:30
Kailash Nadh
3ab21383b1 Fresh start 2018-10-25 19:21:47 +05:30