Commit Graph

46 Commits

Author SHA1 Message Date
0dd3f2178e updated form stats to record individual subscription 2016-04-26 18:12:05 +02:00
ef461da77f Statistics for Form Subscriptions
- added statistics_forms table
- added corresponding model to record stats
- record stats whenever someone subscribes via a form
2016-04-26 15:16:37 +02:00
375e70d84b success messages in both context when subscribing to a form 2016-04-21 12:39:14 +02:00
42d586610e form subscription only using Router now 2016-04-20 16:59:18 +02:00
12c159c627 bugfix + refactoring 2016-03-01 16:23:15 +01:00
d2be407ccb rendering of edit subscription form 2016-02-29 13:34:17 +01:00
07d533a810 Manage subscriptions
- make use of the SubscriberSegment::status column to keep track of unsubscriptions
- unsubscribed segments now appear grayed out in the Subscribers listing
- added unsubscribed_at after segment names when editing a subscriber
- added date() method for Twig (uses WP's date format / date_offset)
- fixed typo in Form iframe export
- fixed unit test for Newsletters
- updated selection component (JSX) to allow more customization
2016-02-22 11:35:34 +01:00
95b0b39366 Fixed bulk_action success messages
- uptaded Subscriber & Segment routers' test
- moved add/remove segments logic to Subscriber::createOrUpdate
- fixed Router\Segments save not returning errors
2016-02-08 13:36:35 +01:00
4b6fa0e760 Added "Subscribers without a segment" filter
- removed useless dependency in filters.jsx
- fixed issue with Router\Subscribers::save() not updating segments
2016-02-08 10:32:06 +01:00
55f851208b Major update of unit tests / updated routers + models + react 2016-02-04 19:04:52 +01:00
c2cb88f995 Unit tests fixed + models & routers update 2016-02-04 11:41:05 +01:00
4fd0c4b484 Router updates + unit tests + React
- added -f flag to run unit test command in order to fail fast
- pass only id to "$endpoint->get($id)" in React forms instead of array
- updated routers according to the ->get($id) change
- refactored a bit the way form creation works
- added unit tests for Segments router
2016-02-01 11:56:21 +01:00
72ad98a77f unit test for router Subscribers 2016-01-28 18:00:55 +01:00
894a9e8c90 Router\Router is now taking care of outputting JSON
- converted Subscribers Router to return array instead of wp_send_json()
- added unit test for Subscribers Router
2016-01-27 17:23:30 +01:00
8072b162d4 Unit tests for new methods in model subscriber 2016-01-22 11:28:26 +01:00
daec56191f Save custom fields on subscribe
- added methods to get/set a specific custom field
- added method to get all custom fields (and assign each custom field to the subscriber's instance)
- fixed zIndex of form editor's toolbar (footer was positioned above, preventing click)
2016-01-19 17:02:05 +01:00
cabe2d61b7 Form editor update
- when a custom field is updated, the matching form field is now also updated
- ability to toggle "is_required" on First name & Last name
- fixed position of validation errors on segment selection, checkbox and radio
- fixed form subscription not working when using custom fields
- fixed sortable in segment selection after list update (add/remove)
- updated position of messages in form subscription
2016-01-18 17:23:10 +01:00
bbdd0dbb6e Subscribe in comments
- added Subscriber::subscribe($user, $segment_ids)
- refactored Router\Subscribers->subscribe() method to account for new method
- added Form\Subscribe class to handle subscription in comments
- updated Basics settings page (changed "list" to "segment")
2016-01-12 18:46:31 +01:00
7be1a11d1e Form editor
- fixed validations on radio type
- fixed date format for months
- added custom fields storing on subscribe
- fixed date widget (select today's date)
- fixed validation on form widget
2015-12-08 16:55:30 +01:00
e9110680ee Listings
- fixed selection field JSX
- fixed bulk actions (added filter function)
- added getPublished/getTrashed static methods on Model
- fixed step 3 of newsletter process
- updated save/get methods of all listing-able models to conform with the new norm
2015-11-09 13:26:33 +01:00
31305a04c0 form validation with Parsley 2015-11-06 16:09:56 +01:00
b12f7f29de Custom fields
- added listing of custom fields in form editor
- ability to delete a custom field
- mades changes to the form editor in order to accomodate for the new custom fields system
- fix form editor bugs
- cleanup
2015-11-06 16:09:09 +01:00
5473f94e24 List selection & subscribe
- fixed list selection widget (form editor & rendered form)
- ajax subscription works (minus sending the confirmation email)
- bug fixes / polishing / refactoring / cleanup
2015-11-06 16:09:09 +01:00
a4cf2f9c76 Major refactoring of listing/router/model relation
- updated Subscribers listing
- udpated Segments listing
- added Forms router
2015-10-29 15:30:24 +01:00
13dc3577f1 lotta fixes for filtering + listing 2015-10-26 18:23:32 +01:00
3b4c5c83e1 added segment stats in listing 2015-10-22 20:40:46 +02:00
5e5008472c added last bulk actions messages 2015-10-22 15:26:31 +02:00
dcb094fcd1 listing improvements
- added Trash group
- added soft delete for subscribers
- added restore/delete permanently features (including bulk actions and row actions)
- listing bugfixes
2015-10-21 18:18:34 +02:00
d4bfb49415 Listing fixes
- fixed bulk actions
- fixed paging behavior
- fixed filtering issues
2015-10-21 12:56:24 +02:00
c15359f1b4 Listing filters 2015-10-06 10:00:18 +02:00
56e40feb56 Bulk actions + Extra data
- fixed issue on bulk action being run even without any items selected
- added WP like feature regarding item selection, if all items are checked, it also checks the header/footer checkboxes
- fixed issue where the selection state was not properly reset
- added List column to subscribers
- added json_encode/json_decode to Twig
2015-09-23 14:13:25 +02:00
239e2583d2 refactored bulk actions & implemented bulk trash for all listings 2015-09-18 17:39:25 +02:00
cbcd614b6f implemented all bulk actions for Subscribers 2015-09-16 19:44:46 +02:00
2a4945c956 Listing & Form & Refactoring
- finished implementing forms
- fixed form reset when clicking on new
- fixed responsive for select all checkbox and toggle item details
- refactored listing items' actions
- added Trash action
- cleaned up validations on models
- fixed syntax
- fixed tests
2015-09-16 12:14:04 +02:00
e8abc4cb47 - Model returns validation errors upon save (Closes #122)
- Fixed acceptance test for Newsletters (Closes #126)
2015-09-13 19:40:42 -04:00
575e748d84 moved logic from Subscribers router to model 2015-09-10 11:50:26 +02:00
97db902529 Subscriber Edit page 2015-09-09 15:58:57 +02:00
a40cdcb20c Migration fix + removed model instantiation in Listing handler 2015-09-03 11:14:38 +02:00
3fe895a7fe Listing Handler
- added a Listing Handler class to take care of listing params
- added status column to Subscriber
- added specific methods to both Newsletter & Subscriber models for listing
2015-09-02 14:47:18 +02:00
27883a232a Listings
- listing component
- subscribers listing
- newsletters listing
2015-09-01 16:21:25 +02:00
d81c4e7aa1 fixed widget + test + split get method in sub router 2015-08-27 22:38:42 +02:00
097b638e6b cleanup 2015-08-27 22:38:42 +02:00
5b93e1c8a6 example using react-waypoint 2015-08-27 22:38:41 +02:00
f721119c9f Subscribers Listing
- sortable
- searchable
2015-08-27 22:38:41 +02:00
3c46c3cd3a added listing JSX 2015-08-27 22:38:41 +02:00
524150a6f7 Subscribers router. 2015-08-20 00:09:38 +02:00