Commit Graph

203 Commits

Author SHA1 Message Date
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