John Oleksowicz
f97ca0e11e
Extract consts where possible and simplify
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
d4fe5dd3d9
Add type to memoized grouped workflows
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
3a342b0311
Only update the status query string when necessary
...
This prevents pushing duplicate entries to the browser history. For
example, if you are on the "All" tab, then click the "Inactive" tab 3
times, you shouldn't have to hit the back button 3 times to get back to
"All," it should only require a single back operation.
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
43cef1af2f
Revert to safer way of generating filter count badges
...
The previous method was unsafe due to its dependence on creating
elements outside what React knew about
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
44fa3f605d
Rewrite URL search updater
...
Create a new object instead of modifying the original, and remove the
`paged` parameter when viewing the first page of results.
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
436a80944a
Enable browser forward/back between tabs
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
d339422d18
Memoize more things
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
f1fe9ed970
"Fix" some styling issues
...
This is a somewhat hacky approach to getting tabs to render as desired.
Because the table content appears inside the tab container it's
difficult to have matching box shadows because they overlap. There were
also rounded corners at the top of the border underneath the tabs.
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
d08ac2479d
Restore original button padding
...
The .has-icon class for some reason redefines the padding to be `6x`
instead of `6px 12px`. This was making the button look almost cut off on
the right side when we used an icon.
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
ea2f22d345
Use useCallback for query string updater
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
795473b497
Add counts dynamically to avoid type mismatch
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
ef1f967a76
Refactor tab calculation
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
494bcd45f7
Add workflow_id index to versions table
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
e64f2aca00
Use useMemo to avoid recalculating groups every render
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
c2e275f6b9
Delete "paged" search param instead of setting to 1
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
fe124b9764
Refactor content to be a local component
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
b3cef92147
Redirect to trash if attempting to edit trashed workflow
...
[MAILPOET-4532]
2022-09-08 10:41:45 +02:00
John Oleksowicz
38b0d627b0
Add tab filters and implement pagination
...
[MAILPOET-4532]
2022-09-08 10:41:45 +02:00
John Oleksowicz
a632982c8f
Add button to create new automation and extract wrapper
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
626e319031
Add MailPoet top bar to automation listing page
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
John Oleksowicz
84b6baa724
Remove actions dropdown
...
MAILPOET-4532
2022-09-08 10:41:45 +02:00
Jan Jakes
047bd94d98
Implement sending for automation emails
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
6e6d0e725a
Set automation newsletters always as active
...
Their scheduling and validity will handled by the workflow engine so this should be OK.
We can also consider syncing the state based on the workflow state, somehow.
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
fadbcaca5b
Fix workflow run getter and from array construction
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
7aa1fa775d
Add automation registry context to editor state
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
08d7bee0df
Hotfix inconsistent @wordpress/icon sizings
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
e1daaea431
Add tracking parameters
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
82b547f40b
Make workflow editing logic extensible
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
a6d5b0d5c5
Add empty trigger type to automations core
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
0dd769a5fd
Export StoreKey type for extensibility
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
604979e969
Make step separator rendering configurable with hook
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
047c67d9db
Make step rendering configurable with hook
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
edf12d2c55
Add step ID to data attributes for workflow steps and separators
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
441a913732
Add some automation symbols to exported modules
...
This is needed for the premium plugin.
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
f8471e6660
Add hook for editor store extensibility
...
This will be used in the premium plugin.
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
6828608273
Remove side-effect from store module, control store initialization
...
This is important so we're able to export it and use it in the premium plugin.
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
fa17f6887c
Disable inserter sidebar until we implement drag & drop
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
971d580ec0
Show premium upsell modal when trying to delete a step
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
2d6c253106
Add step dropdown menu with delete button
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
5253841977
Fix Gutenberg block inserter overlaying modal dialog
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
3d5b2d5880
Show premium upsell modal when trying to add a step
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
6b4edbf8dd
Add onInsert prop to inserter component
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
2915c38ed9
Fix step list item props type
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
84d4cd94d5
Add cursor: pointer to add step button
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
9d16d2dbd1
Remove mocked data, fallback to unknown step type rendering
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
c74a4cad12
Implement displaying triggers in step inserter list
...
[PREMIUM-194]
[MAILPOET-4585]
2022-09-08 09:20:20 +02:00
Jan Jakes
d8a316ea7b
Add WP user registered trigger type
...
[PREMIUM-194]
[MAILPOET-4585]
2022-09-08 09:20:20 +02:00
Jan Jakes
c734ac0a0e
Add someone subscribed trigger type
...
[PREMIUM-194]
[MAILPOET-4585]
2022-09-08 09:20:20 +02:00
Jan Jakes
add0dee423
Add type (triggers vs. other steps) to inserter popover state
...
[PREMIUM-194]
[MAILPOET-4585]
2022-09-08 09:20:20 +02:00
Jan Jakes
f2a207942d
Implement add trigger placeholder & button
...
[PREMIUM-194]
[MAILPOET-4585]
2022-09-08 09:20:20 +02:00