Commit graph

92 commits

Author SHA1 Message Date
Chris Anderson
e5a49257e5 Fixes test cases 2023-01-30 08:54:38 -06:00
Chris Anderson
e3be2f9a77 Drops foreign key in migration 2023-01-29 16:33:52 -06:00
Chris Anderson
e56b124f31 Adds soft and hard deletes for campaigns 2023-01-29 16:27:20 -06:00
Chris Anderson
5097b36fed Adds campaign and template cloning 2023-01-29 16:27:20 -06:00
Chris Anderson
f915ecf37f Fixes campaign updating 2023-01-29 16:27:20 -06:00
Chris Anderson
a1f4577d7d Tweaks to campaign status 2023-01-29 16:27:20 -06:00
Chris Anderson
c366722efb Tweaks to parameters, allows for listing providers 2023-01-29 16:27:20 -06:00
Chris Anderson
eefbe15747 Refactors templates to be under campaigns
Instead of having campaigns pointing to reusable templates, templates are now single user and live under campaigns. Also unlocks being able to have templates be locale specific
2023-01-29 16:27:20 -06:00
Chris Anderson
6a9bf95006 Fixes virtual attributes conflict 2023-01-29 16:27:20 -06:00
Chris Anderson
94bd040c50 Tweaks to when things are sent in timezone 2023-01-29 16:27:20 -06:00
Chris Anderson
ef06ca6462 Improvements to reliability for scheduling
Allows for sending messages based on a users timezone
2023-01-29 16:27:20 -06:00
Chris Anderson
1700937eb6
Lists, lists, lists (#47)
* Adds base SQL rules for searching based on rules

* Tweaks to fully flesh out lists

Adds state fields
Adds jobs for generating dynamic lists initially

* Fixes table counting for complex queries

* More work on getting user and list page endpoints ready

* Adds ability to import a list of users into a list

* Adds loading state

Moves name to user getters

* Fixes what fields are returned

* Tweaks to test cases

* Tweak to rule checking

* More test fixes

* Fixes typing
2023-01-29 16:26:45 -06:00
chrishills
11d414cce1
Merge pull request #46 from parcelvoy/feat/template-improvements
Cleans up code to better support previewing
2022-12-17 12:53:01 -08:00
Chris Anderson
b46dd783f4 Cleans up code to better support previewing
Also fixed every template field being link wrapped
2022-12-17 13:40:26 -06:00
chrishills
477c453876
Merge pull request #45 from parcelvoy/feat/35/campaigns
Campaign scheduling & template previewing
2022-12-05 18:19:35 -08:00
chrishills
e6ae0fee75
Merge pull request #42 from parcelvoy/frontend-auth
Frontend auth
2022-11-24 19:03:11 -08:00
Chris Hills
a616fafd12 comment fixes 2022-11-24 18:53:32 -08:00
Chris Hills
6f38bd27d2 GET method for logout 2022-11-22 08:33:23 -08:00
Chris Anderson
9211d2a376 Fixes search method 2022-11-21 22:22:59 -06:00
Chris Anderson
19f00b3d40 Fixes test cases 2022-11-21 21:55:29 -06:00
Chris Anderson
67652a8941 Allows for campaigns to be scheduled ahead of time
Adds details of campaign state
Generate template images
Adds preview endpoint
2022-11-21 20:29:21 -06:00
Chris Hills
56bff44eb8 fixed auth logic 2022-11-21 16:49:32 -08:00
Chris Hills
59c4ca6132 store access tokens, validate revoked on all requests 2022-11-21 15:27:08 -08:00
Chris Hills
dffe680e04 check revoked table for token 2022-11-18 21:34:23 -06:00
Chris Hills
faf58bf2e6 cleanup expired revoked tokens every hour 2022-11-18 21:29:23 -06:00
Chris Hills
100e786851 long access token in cookie, no refresh token 2022-11-18 21:18:41 -06:00
Chris Hills
baf078c185 support relay state in saml/oidc, check cookies for tokens 2022-11-17 23:52:43 -06:00
chrishills
198c87415f
Merge pull request #41 from parcelvoy/feat/40/client-refactor
Client API Refactor
2022-11-13 20:47:07 -05:00
Chris Anderson
3b02133454 Fixes migration 2022-11-13 16:48:30 -06:00
Chris Anderson
312fb7379d Fixes linter issues 2022-11-13 16:37:17 -06:00
Chris Anderson
9d296726dc Updates for client library compatibility 2022-11-13 16:32:29 -06:00
chrishills
09409b4ebf
Merge pull request #39 from parcelvoy/feat/38/rule-compilation
Allow for rule values to contain Handlebars
2022-11-12 19:06:09 -06:00
chrishills
2004c5d1c9
Merge pull request #37 from parcelvoy/feat/36/authentication
Adds two primary forms of SSO authentication
2022-11-12 19:01:03 -06:00
Chris Anderson
2c348196eb Fixes to migrations 2022-11-11 20:37:56 -06:00
Chris Anderson
cb4d004ded Adds endpoint for creating or updating a device 2022-11-11 20:31:42 -06:00
Chris Anderson
5a63c9fdc7 Starts refactoring auth and client endpoints 2022-11-11 16:13:07 -06:00
Chris Anderson
5329758597 Allow for rule values to contain Handlebars
Removes logs
2022-11-11 09:34:58 -06:00
Chris Anderson
f1fece0039 Fixes test cases 2022-11-11 09:23:58 -06:00
Chris Anderson
9f77deb756 Improves upon error handling 2022-11-10 21:47:57 -06:00
Chris Anderson
c7a47feb9b Refactors controllers
Adds project guard middleware
Removes magic link auth
2022-11-10 20:44:58 -06:00
Chris Anderson
35d85091a0 Adds remaining OpenID methods 2022-11-08 18:23:16 -06:00
Chris Anderson
f9561a325e Starts adding three primary forms of authentication 2022-11-06 17:08:21 -06:00
chrishills
326f3833f1
Adds paging and changes to routing (#35)
* adds page number-based searching utility to models, adds some related entity searches for Projects

* fixed linter warnings, moved search params

Co-authored-by: Chris Anderson <hi@chrisanderson.io>
2022-11-03 20:10:11 -05:00
Chris Anderson
c4d0e5f444
Adds link and open tracking (#34)
* Adds link and open tracking

* Add what url was clicked to the event
2022-10-25 21:00:41 -05:00
Chris Anderson
a8528ee49a
Add template endpoints & bug fixes (#28)
* Adds endpoints for creating and updating templates

* Additional bug fixes from testing

* Provider endpoints (#31)

* Adds provider endpoints

* Resets default on provider updates

* Fixes test cases
2022-10-23 14:58:43 -05:00
Chris Anderson
7f0c88206d
Creates framework for generally unsubscribing (#26)
Adds endpoints for inbound sms opt-out
2022-10-07 16:46:50 -07:00
Chris Anderson
6ec0aec44b
Add media storage (#25)
* Adds basic structure for remote storage

* Gets image uploading to a working state

* Adds validator in front of image upload

* Adds delete method for s3 files

* Allow for updating an image

Force name setting

* Fixes test cases
2022-10-07 16:33:10 -07:00
Chris Anderson
d92f7a928a
Push notification support (#23)
* Add Github action to run jest tests

* Change how DB is create

* Starts adding campaign tests

* Fixes imports

* Fixes spy/mocks for test cases

* Tweaks when tests are run

* Adds very basic structure for sending a push notification

* Adds remainder of push notification structure

Adds handling of unsubscribes via token invalidation
Adds potential for adding latency to logger providers for future load testing
2022-10-07 16:27:20 -07:00
Chris Anderson
2daee6127c
Add Github action to run jest tests (#20)
* Add Github action to run jest tests

* Change how DB is create

* Starts adding campaign tests

* Fixes imports

* Fixes spy/mocks for test cases

* Tweaks when tests are run
2022-10-07 16:26:04 -07:00
chrishills
2514dcc53f
Merge pull request #18 from parcelvoy/feat/17/scheduler
Adds a job scheduler to check for journey delays
2022-09-11 13:24:45 -05:00