Commit Graph

248 Commits

Author SHA1 Message Date
6dfce57c3f Fix newsletter option related tests 2015-10-21 14:40:43 +03:00
d4bfb49415 Listing fixes
- fixed bulk actions
- fixed paging behavior
- fixed filtering issues
2015-10-21 12:56:24 +02:00
3a4a641ca2 Add newsletter options 2015-10-20 21:47:18 +03:00
e583db6f56 - Adds global filter to search custom fields
- Updates tests
2015-10-19 20:31:04 -04:00
d951200370 - Updates DB query for custom fields
- Updates models and tests for Subscribers and CustomFields
2015-10-18 13:53:07 -04:00
4e3784fb96 merged master 2015-10-16 14:40:32 +02:00
805f7d5417 - Adds new models: CustomFields and SubscriberCustomField + tests
- Adjusts DB Migrator, Initializer class
- Adjusts Subscribers model tests
Closes #159
2015-10-15 23:23:33 -04:00
34c237ce8e Load/Save settings
- renamed all settings with dot syntax
- refactored Menu->settings()
- changed schema of settings table to allow longer setting name and value
- added getAll() static method on Setting Model to fetch all settings (with proper unserialize of value)
2015-10-15 14:22:27 +02:00
ed9407a890 fixed multiple select component 2015-10-09 14:48:54 +02:00
ecb522955b Newsletter Segment relation
- added newsletter_segment table
- added NewsletterSegment model
- added list filter on newsletters listing
- unit tests
2015-10-06 11:13:38 +02:00
c15359f1b4 Listing filters 2015-10-06 10:00:18 +02:00
15d3b8f051 Send newsletter + Listing + Last Step
- fixed Selection React
- fixed bulk actions (side effect of muti selection)
- added actual sending of newsletter
- added Setting::getValue($key, $default) in order to get settings
- improved Bridge class to allow override of from/reply_to
- added jquery.serializeObject to ease the pain when posting form data
2015-10-02 13:01:27 +02:00
45dccf6c50 First step complete 2015-09-30 15:56:13 +02:00
028b178e3f Add DB tables, model and router for Newsletter templates 2015-09-29 17:23:41 +03:00
30d0d1594d - Modifies Newsletter router save() and get() methods
- Adds Newsletter router render() method
- Adds 'body' validation to Newsletter model
- Adds new 'preheader' column to Migrator
- Corrects Nesletters acceptance test class name conflict
- Updates Newsletter model tests
Closes #138
2015-09-24 18:26:44 -04: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
79f1896cf3 Listing & form
- improved Listing in order to make it more DRY
- form builder with all field types
- added support for data array in ValidModel->set()
- updated models to comply with Listing & Form methods
2015-09-16 12:12:14 +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
7370d19be3 Segment listing
- fixed duplicate entry in Robofile for editor styles
- added Segment menu
- added Segment listing
- added listing methods to Segment model
- fixed syntax in both Segment & Subscriber models (MAX LINE 80!!!)
2015-09-04 13:02:23 +02:00
3d442a9770 Conflicts between Segment and Subscriber status. 2015-09-03 18:05:49 +02:00
d89f43dbe5 Unit tests for listing specific methods
- small fixes/optimization in Subscriber model
- added test for search and group in Subscriber
- added test for search in Newsletter
2015-09-03 13:47:39 +02:00
c804e44961 Made changes as per Marco's comments 2015-09-02 17:28:49 -04:00
fc42296f1b Status column
- updated migration for subscribers status column from int to varchar
- updated Subscriber model to reflect the change
2015-09-02 16:36:57 +02:00
64756c865d - Renamed List model to Segment 2015-09-02 09:29:54 -04: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
78a2a50af7 - Renamed Subscriber and RelationSubscriberList models to SList and
SubscriberList, respectively
2015-09-01 19:49:50 -04:00
27883a232a Listings
- listing component
- subscribers listing
- newsletters listing
2015-09-01 16:21:25 +02:00
f6f8f1390f - Renamed Pivot to Relation as per Jo's comment :) 2015-09-01 09:26:41 -04:00
0015bdb617 - Added new model "SubscriberList"
- Added has_many_through relations to the new model + Subscriber model
- Added tests
- Fixed syntax in other models
This closes #95
2015-09-01 09:18:00 -04:00
1ff7e3f4be Form Subscription
- improved MailPoet ajax to fix token issue
- added js validation and ajax submit in public.js
- add util security to generate tokens
- updated router to use new util security
- added jquery-validation module
- update public config in webpack config
- added error messages in form
2015-08-20 21:02:04 +02:00
5cc9c1c6de Tests cleanup. 2015-08-20 00:31:42 +02:00
e386c3aa38 Cleanup tests. 2015-08-20 00:21:10 +02:00
ce730d7c3b Settings router.
Here's a simple settings router. the createOrUpdate method lives
in the model, and by default all models will return true on save
or false if save went wrong.
2015-08-19 23:55:30 +02:00
3af24f9877 Reverted back to Model class 2015-08-17 17:37:43 +00:00
a26cbd6f41 - Renamed Model to BaseModel (make it clear)
- Updated RoboFile to compile assets or else tests break
2015-08-17 15:54:48 +00:00
78b5791a46 - Added 'Newsletters' model and wrote tests
- Fixed some formatting in unit tests
Closes #68
2015-08-14 13:31:45 +00:00
d7f7e48d8b Fix indentation. 2015-08-13 18:05:49 +02:00
ed27b5716b Fix indentation. 2015-08-13 18:05:26 +02:00
781e016be5 Fix indentation. 2015-08-13 18:04:28 +02:00
81c8b22b36 Fix indentation. 2015-08-13 18:03:36 +02:00
5d1b8524ea Added Laurent's tests/model save() method 2015-08-13 09:58:41 -04:00
c5f67cb371 - Database cleanup uses Models
- Formatted code as per Marco's comments
2015-08-12 22:48:42 +00:00
2856a08cdc - Made changes as per Marco's comments in #54
- Implemented database cleanup for tests. Closes #56
2015-08-12 15:36:56 +00:00
12bead358c - Added Sudzy composer dependency for model validation
- All models now extend a generic Model class that extends Sudzy
- Wrote tests for Subscriber and Setting model validation
- Rewrote model tests to make sure they look the same
- Updated both tests with cleanup logic in the beginning
- Added test:unit-single method to Robo for selective unit testing

Closes #54
2015-08-11 23:52:00 +00:00
26384d16b8 Fixes #49 2015-08-10 18:37:41 -04:00