Commit Graph

48 Commits

Author SHA1 Message Date
Jonathan Labreuille
ab3e272020 extra space 2016-05-19 15:40:14 +02:00
Jonathan Labreuille
4c265d1339 convert some React fields to ES6
- renamed empty label to placeholder
2016-05-19 15:19:31 +02:00
Jonathan Labreuille
6074aa927b Fix WP Sync
- added missing translations in listings (responsive view)
2016-05-19 14:32:40 +02:00
Jonathan Labreuille
046127eeba fixed react forms (new bug discovered on new forms with default values not saved) 2016-05-19 14:30:33 +02:00
Vlad
77fe385645 - Disables input fields if subscriber is a WP user. #421 (5)
- Removes 'unconfirmed' status if subscriber is a WP user. #421 (9)
- Displays notice if subscriber is a WP user. #421 (6)
2016-05-12 19:38:34 -04:00
Jonathan Labreuille
9be326b45d remove attempt at 'goback' after editing an entity 2016-04-29 18:35:52 +02:00
Jonathan Labreuille
4047b41a7f Updated all React components to their latest version
- updated code due to deprecated warnings (mostly router stuff & input default value)
- set default sender based on settings when creating new newsletter
- fixed erroneous UTC offset when displaying dates (PHP takes care of it)
2016-04-28 17:02:24 +02:00
Jonathan Labreuille
9684c88651 refactor 2016-04-26 12:43:48 +02:00
Jonathan Labreuille
256bca8ed9 Fix selection.jsx by adding a check before trying to destroy the select2 instance 2016-04-26 12:19:39 +02:00
Tautvidas Sipavičius
e35e97cdbf Fix Select2 integration in Form component 2016-04-12 14:04:01 +03:00
Tautvidas Sipavičius
678a0b3835 Add form loading state, remove errors and params 2016-04-12 14:04:01 +03:00
Tautvidas Sipavičius
0c008325c4 - Fix unmounting select2 component
- Fix subjects of welcome and notification newsletters
- Remove debugging statements
2016-04-12 14:04:01 +03:00
Tautvidas Sipavičius
ad5441487b Show different fields based on newsletter type, fix saving across
multiple endpoints
2016-04-12 14:04:01 +03:00
Tautvidas Sipavičius
104620a40a Add react component support to Forms, make newsletter scheduling
components reusable
2016-04-12 14:04:01 +03:00
Tautvidas Sipavičius
53eb9cd2ae Translate JS code in listings and forms 2016-03-23 18:59:01 +02:00
Jonathan Labreuille
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
Jonathan Labreuille
03c782d4ab Fixed issue #305
- added validation on add/edit Custom Field for multiple values (select/radio)
- disabled Remove link when only one value remains
- Added confirmation message on Reinstall
- Added missing period in Import
2016-02-18 13:14:57 +01:00
Jonathan Labreuille
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
Jonathan Labreuille
64501a914a removed parsley validation on step 3
- fixed placeholder for select2 instances in settings
- fixed issue in sending queue worker when newsletter does not exist
2016-01-26 11:36:20 +01:00
Jonathan Labreuille
788bed4622 moved const definition inside render method 2016-01-22 13:45:52 +01:00
Jonathan Labreuille
3fbe5423d0 added constant for years range + added comment for month quirk 2016-01-22 13:38:43 +01:00
Jonathan Labreuille
6cac7f3652 Saving of date custom fields in React & PHP 2016-01-22 10:45:33 +01:00
Jonathan Labreuille
ad925de801 Custom fields (in Form & Edit subscriber) 2016-01-21 17:27:34 +01:00
Jonathan Labreuille
1950d6661f Step 3 sender and reply to per newsletter
- added sender_address/sender_name/reply_to_address/reply_to_name
- added validation on all form fields (except checkbox and radio)
2015-12-04 12:29:11 +01:00
Jonathan Labreuille
a413f666fe Sending Progress
- improved progress bar styles (with completed status)
- add pause/resume buttons
- fixed method case in settings.mta for MailPoet & SMTP Providers
- fixed parsley dependency
- added validation on from name & address on step 3
2015-12-03 18:26:36 +01:00
Jonathan Labreuille
e10310fb5c fixed too much recursion issue on selection JSX 2015-12-01 13:50:35 +01:00
Jonathan Labreuille
10a20935c3 cleanup tests 2015-11-12 14:11:27 +01:00
Jonathan Labreuille
893231e8e5 List selection fix 2015-11-09 14:19:59 +01:00
Jonathan Labreuille
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
Jonathan Labreuille
6c8d2be18c fix for selection field jsx 2015-11-06 16:08:16 +01:00
Jonathan Labreuille
e24f8c9653 forms listing complete 2015-11-06 16:08:16 +01:00
Jonathan Labreuille
89b04e8691 Subscriber & Segment listings
- fixed filters
- added load/save state from url
- added goBack on forms in order to get back listing states
wx# Please enter the commit message for your changes. Lines starting
2015-10-27 16:24:00 +01:00
Jonathan Labreuille
4bde705f04 listing modifications + added description to segments 2015-10-22 19:19:40 +02:00
Jonathan Labreuille
06fafbafe5 fixed select2 issue with selected elements 2015-10-21 14:53:59 +02:00
Jonathan Labreuille
d07221846f fixed select2 issues 2015-10-21 13:45:34 +02:00
Jonathan Labreuille
d4bfb49415 Listing fixes
- fixed bulk actions
- fixed paging behavior
- fixed filtering issues
2015-10-21 12:56:24 +02:00
Jonathan Labreuille
6a1bb0f4a5 fixed React/React-router upgrade related issues 2015-10-20 15:31:19 +02:00
Jonathan Labreuille
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
Jonathan Labreuille
34e75b9b13 removed useless code 2015-10-09 14:52:10 +02:00
Jonathan Labreuille
ed9407a890 fixed multiple select component 2015-10-09 14:48:54 +02:00
Jonathan Labreuille
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
Jonathan Labreuille
dc2b3733d7 Forms & Last Step
- fixed issues on forms
- added defaultValue on text/textarea fields
- added all actions on step 3
2015-10-01 14:22:53 +02:00
Jonathan Labreuille
48b027fa62 removed obsolete code 2015-10-01 12:31:19 +02:00
Jonathan Labreuille
9d0ca85490 Last step
- improved watch command (much simpler robofile + truly recursive)
- split all form fields into separate files (JSX)
- improved form to allow multiple fields per row
- added selection react class for multi select using select2
- added missing files for select2 (webpack doesn't include them)
2015-10-01 12:25:25 +02:00
Jonathan Labreuille
239e2583d2 refactored bulk actions & implemented bulk trash for all listings 2015-09-18 17:39:25 +02:00
Jonathan Labreuille
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
Jonathan Labreuille
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
Jonathan Labreuille
e471d45827 Form.jsx
- basic implementation of Form.jsx
- fixed "colspan" issue on listings with no bulk actions and no records
2015-09-16 12:07:30 +02:00