Commit Graph

2410 Commits

Author SHA1 Message Date
Pavel Dohnal
2161fda884 Fix code after tests have run
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
08eab3940c Fix code after tests have run
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
1f5666ccd1 Mark mandatory fields
[MAILPOET-2451]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
639ee8b70d Refactor Blocks mappers
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
4396903719 Mark email as mandatory
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
9460006727 Map last name field
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
5ce2a2d918 Map first name field
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
f7a9753ae1 Register last name block
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
ce046dc331 Create last name block
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
0c1ca572ed Add mandatory option to First Name field
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
612f436dba Register first name block
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
040b7b1477 Create first name block
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Rostislav Wolny
e5ec9dc80a Ensure consistent data type for formData.settings.segments
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
3a65f103b0 Add test for form saving started reducer
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
fe204ec53f Add test and fixes form form validator
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
62bc8338e8 Fix name attribute in email block
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
b90939e118 Add check that input is an array to data mappers
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Pavel Dohnal
27243260ec Unify code style
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
60d528da84 Fix returning focus on title when clicked below form blocks
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
e9ee0323d3 Add acceptance test for email and submit editing
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
14831a592e Add workaroud for block/editor dependency issue
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
07b63e6893 Remove focus from block when title is focused
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
4b5b287b57 Save modified blocks on API
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
f806a24332 Switch sidebar tab when block is selected
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
d27581e805 Render block settings in block section in sidebar
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
84de31d4ab Add block editor components to editor
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
3efc103625 Add action, reducer and selector for blocks
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
d9295569a2 Add validation of missing obligatory blocks
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
a848731fec Add blocks to default state
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
c9d73f6970 Add mapper for mapping blocks to form body data
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
4e71908332 Add mapper for mapping form body to blocks
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
293956bbec Initialize blocks on editor startup
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
1ec371e24d Add submit block definition
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
c1b17d756b Add email block definition
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
b0a467d156 Use same component for form title as Gutenberg does
Ordinary textarea doesn't support automatic height detection.
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
cd0cce07a6 Refactor panel toggle reducer to be more readable
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
a1ac7cb4fd Add acceptance test for basic form editing
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
836974fbe2 Add list input highlight on save if no list selected
[MAILOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
338e2480d2 Refactor saving form notices end error processing from control to reducer
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
df3a0477b4 Fix file naming in reducers
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
5d1ffbc03a Refactor sidebar panels state to store
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
1b0497bad3 Refactor sidebar tabs from local state to store
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Pavel Dohnal
1287152d0f Use curry instead of partial
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
c0b3ccfecc Refactor form data validation to extra function and run on every change
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
74d00145be Use classnames instead for getting conditional className
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
2e3b7cc14b Rename unclear getSegments and getPages selectors
[MAILPOET-2450]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
63431e48ea Add default options for codemirror wrap
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
01c0381418 Use partial application instead of nested function call
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
f024c57ed7 Fix translations strings for form settings
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Rostislav Wolny
c2823f3f68 Apply custom css in editor
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00