Rostislav Wolny
69a87e8146
Apply editor content styles in the email renderer
...
Add proof of concept for applying additional CSS in renderer
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
3c7a9f0a48
Strip theme CSS from the editor and add custom basic styles
...
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
36e83f81ec
Temporarily hardcode background color for body and content
...
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
bd539e386b
Add initialization for core blocks renderers
...
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
f34c479bb6
Add simple renderers for columns, paragraphs, and heading blocks
...
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
a1869249e0
Add code handling block rendering
...
The idea is that anyone can register specialized renderers for
blocks.
The render will skip unknown blocks.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
46a481ec24
Add email renderer and template to the renderer engine
...
In this commit, I copied the code for processing the rendering of emails
from the current renderer.
This will allow us to use different base templates and styles.
Ideally, we should be able to add hooks and reuse the renderer from the engine namespace in
the current renderer.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
b70ad064c7
Refactor initialization of the email editor
...
This changes how the editor is initialized. The integration initialization class
doesn't get the engine class anymore, but integration is initialized via
mailpoet_email_editor_initialized action triggered from the engine.
This allows multiple integrations to hook into the engine.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
John Oleksowicz
2517023ad0
Fix automation factory method calls
...
addStep was renamed to withStep but the calls in this helper weren't
updated
2023-09-20 19:03:25 +02:00
Jan Jakes
8eb2e3f43e
Rename hook to better correspond to its function
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
944b440bdf
Rethrow integration log exceptions in debug mode
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
701984523f
Add step handler logging tests, remove them from run log test
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
4b6d88c0bc
Add step scheduler test
...
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
d680e0aad7
Add step run logger test
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
4b8705e6b4
Normalize error trace objects to associative arrays
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
864cc2b01d
Add run number to logs
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
ef97e4d05a
Add logging for automation triggers
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
4b0a8bc06c
Replace a complicated way of generating automation logs
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
03787da74e
Save and expose step sequence in automation data factory
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
80a2d12174
Add automation run log data factory
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
9d94c1c5f2
Fix method naming and argument type
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
aa58346859
Fix automation data factory formatting, add default automation name
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
4a729bd08f
Use tmpfs for /dev/shm also in mysql container
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
862693e785
Fix empty associative arrays being encoded as list arrays
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
a13dc71cd0
Log step key data
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
370f4ee3ae
Add step type, step key, and updated timestamp to run logs
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
c2027932c0
Remove unnecessary check
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
ef42cf39f1
Reorder props & getters and polish automation run log
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
dd881d8b33
Extract logging logic to a service, make logs mutable
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
43c396220b
Move all of step handler args checks to top-level handler, improve readability
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
9cd871c32e
Remove unused step runner interface
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
d8afb42d89
Fix inconsistency between automation run and run log statuses
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
d7addd8e55
Add migration to fix and add more automation log data
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
d730083d22
Fix unintended "ON UPDATE current_timestamp()" on some timestamp columns
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
fb63b40475
Fix namespaces of generated migrations
...
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
e2cf884b98
Add missing ContainerWrapper return type, fix reported errors
...
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
e343c9201a
Use step run controller in delay action
...
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
e5550ffead
Add the possibility to schedule another run of the same step (progress)
...
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
eeb4d64e8b
Pass step run controller to automation actions
...
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
9d4f55b399
Add step run controller to allow actions control their flow
...
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
5f088d2c35
Add step run number to step run args
...
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
e3da509f70
Move automation completion to step scheduler
...
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
b7ef250511
Refactor next step scheduling to a StepScheduler service
...
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Oluwaseun Olorunsola
32121e57ee
Release 4.28.0
2023-09-19 11:39:55 +01:00
Rodrigo Primo
00b33c2825
Change the length of the random string appended to segments
...
This commit changes the length of the random string appended to segments
created from a template when a segment with the same name already
exists. Before the length was 12 and now it is 5. We don't need a very
long random string in this case, and the shorter the string the less
ugly it is.
[MAILPOET-5394]
2023-09-18 14:43:49 +02:00
Rodrigo Primo
81aeb16ae2
Back button in the segment editor returns to the previous page
...
This commit changes the "Back" button in the segment editor to return
the browser to the previous page (either the segment listing or the
segment templates page). Before, the button always returned to the
listing page.
If there is not previous page set (the user opened the editor directly),
the button returns the browser to the listing page.
[MAILPOET-5394]
2023-09-18 14:43:49 +02:00
Rodrigo Primo
91613a7355
Fix issue with the border of the template cards
...
The border of the template cards was "jumping" 1px with the hover state.
This was happening because I failed to noticed that the <Card> component
uses `box-shadow: 0 0 0 1px rgba(0, 0, 0, .1)` for the border instead of
using the `border` CSS property. So the `border` that I had added to
.mailpoet-templates-card and .mailpoet-templates-card:hover was creating
this "jumping" effect.
To fix this problem, I opted to use `box-shadow` to create the border
when with the hover state.
[MAILPOET-5394]
2023-09-18 14:43:49 +02:00
Rodrigo Primo
a66744e0ee
Simplify logic to create segments from templates
...
Based on feedback during PR review: https://github.com/mailpoet/mailpoet/pull/5145#discussion_r1319964298
[MAILPOET-5394]
2023-09-18 14:43:49 +02:00
Rodrigo Primo
813f5e6d33
Create store outside the rendering body of a component
...
Doing this to avoid calling createStore() multiple times.
[MAILPOET-5394]
2023-09-18 14:43:49 +02:00
Rodrigo Primo
cc587fcb69
Add basic acceptance test covering creating segment from template
...
[MAILPOET-5394]
2023-09-18 14:43:49 +02:00