Jan Lysý
934fd54278
Fix extraction of RC WordPress versions
...
[MAILPOET-6096]
2024-07-15 14:28:16 +02:00
alex-mpoet
268330f1a0
Disallow activating emails without list specified in listing
...
[MAILPOET-5352]
2024-07-15 14:04:12 +02:00
Rostislav Wolny
dbdb9b7ccc
Show WooCommerce list on newsletters pages only when it makes sense
...
I found that we already have a logic for determining whether to show
Woo segment. It also covers case when there are Woo customers in the DB
but Woo plugin is not active.
This logic is used in segments listing API. I reused it also for fetching
lists on the newsletters page.
[MAILPOET-5224]
2024-07-15 13:51:13 +02:00
Rostislav Wolny
41d8bb3054
Unify properties declaration style in Newsletters.php
...
[MAILPOET-5224]
2024-07-15 13:51:13 +02:00
Ján Mikláš
16525d5cce
Fixed dragging images after being resized
...
[MAILPOET-6109]
2024-07-15 11:10:19 +02:00
Ján Mikláš
c11460fd30
Prevent text selection when resizing
...
[MAILPOET-6109]
2024-07-15 11:10:19 +02:00
Ján Mikláš
e4730f7e31
Prevent text selection when dragging
...
[MAILPOET-6109]
2024-07-15 11:10:19 +02:00
Ján Mikláš
08f0f2bf38
Fix cloning dragged element
...
In new interact.js versions, you can no longer assign a clone to the element (it's read only). This is a workaround without doing a major refactor.
[MAILPOET-6109]
2024-07-15 11:10:19 +02:00
Ján Mikláš
8c2f41dcf1
Fix calculating drop zone position
...
dragmove event is no longer present
[MAILPOET-6109]
2024-07-15 11:10:19 +02:00
Ján Mikláš
5c349a506b
Replace interact.js with interactjs
...
[MAILPOET-6109]
2024-07-15 11:10:19 +02:00
Pavel Dohnal
f0687b585d
Check 500 error using exception
2024-07-15 11:01:48 +02:00
Pavel Dohnal
65f7f41f9f
Add retry when downloading files from github
2024-07-15 11:01:48 +02:00
Pavel Dohnal
99a3cf2ea0
Remove obsolete property from docker compose
2024-07-15 11:01:48 +02:00
github-actions[bot]
4b5d490e58
Update used Automate Woo plugin in Circle CI
...
- latest version: 6.0.29
- previous version: 5.8.5
2024-07-15 09:59:55 +02:00
github-actions[bot]
7864f99b3b
Update used WooCommerce plugin in Circle CI
...
- latest version: 9.1.2
- previous version: 9.0.2
2024-07-15 09:59:55 +02:00
Pavel Dohnal
06c3891eba
Fix broken HPOS tests
...
We complete the actions in the database. However, we don't delete
the batch processes. Woo thinks those crashed. It tries to log an
error, but it doens't have suficient rights for that.
2024-07-12 10:05:39 +02:00
alex-mpoet
14be775e74
Keep text in square brackets in post notifications
...
[MAILPOET-5197]
2024-07-11 12:31:22 +02:00
Veljko
b5eda778aa
Update tests to be compatible with upcoming WP 6.6
2024-07-11 07:50:46 +02:00
Rostislav Wolny
6522654a9e
Fix incorrect CSS import
...
This was causing that browser was trying to fetch the CSS file from
relative path from node modules and was getting 404.
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Jan Jakes
cdd831d24d
Set automation listing route basename to fix MailPoet logo link target
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Jan Jakes
ac6bde4159
Improve navigation fallback to point to current page
...
This fixes click on logo e.g. on the Settings page.
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Jan Jakes
6057163b62
Revert "Fix tiny CSS glitches on segment editor page"
...
This reverts commit 65a44a947be6a134456271793183b5ad5f70d743.
2024-07-10 18:02:00 +02:00
Jan Jakes
b905ff1125
Fix MSS step in welcome wizard
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Jan Jakes
80906c27f0
Fix newsletter listing routes
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Jan Jakes
2534b58931
Fix welcome wizard router
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
ab50e3328e
Fix routes in subscribers import
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
1699315a1d
Fix default route in RoutedTabs
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
9e0ff7b99a
Fix router for subscribers
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
9bd31fe2aa
Fix useNavigate errors coming from Logo
...
Previously we used useHistory which wasn't throwing errors in case
it was used outside of router. It just returned undefined.
The undefined was causing errors being logged in console on admin pages
where we don't define onClick explicitly and where we don't use router.
useNavigate throws an error if it is not inside the router. In this commit, I added
handling of the error and default fallback that redirects to the homepage in cases where there is no router.
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
1bfe45fc10
Fix router in forms.jsx
...
Route must always be wrapped in Routes
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
7bcfe93269
Replace forgotten occurences of match.params with useParams hook
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
bb83d2ff1b
Fix RoutedTabs for switch-only variant
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
a36d71850a
Fix Routes and paths for newsletter listing
...
Paths don't support regexps any more https://reactrouter.com/en/main/upgrading/v5#note-on-route-path-patterns
[MAILPOE-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
6a4e81bd88
Remove nested HashRouter from dynamic segments list.tsx
...
This was causing: You cannot render a <Router> inside another <Router>. You should never have more than one in your app.
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
913bb7e50a
Remove @types/react-router-dom
...
v6 is written in Typescript
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
cd3c6982da
Fix tiny CSS glitches on segment editor page
...
This was causing small items like badges and values in multi selelect
to look broken.
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
feadef6c3c
Update usage of Link components
...
See https://reactrouter.com/en/main/upgrading/v5#pass-link-state-as-separate-prop
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
d781b899c7
Delete unused component EventsConditions
...
This component seems to be a leftover after we removed automatic email.
It uses this.prop.history.push which is no longer available.
I was not able to find any usage of this component in the free or premium
plugin.
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
fc76b5608d
Remove the rest of the usages of history.push
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
f54b9f590c
Replace <Redirect> with <Navigate>
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
ca77a01d5c
Replace useRouteMatch
...
The hook useRouteMatch was removed in react-router-dom v6
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
f917b4e885
Replace withRouter with react-router-dom hooks
...
withRouter was removed
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
0f5fbcf044
Replace useHistory which was removed from react-router-dom
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
530f62f021
Refactor Switch to Routes
...
See https://reactrouter.com/en/main/upgrading/v5#upgrade-all-switch-elements-to-routes
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
8810a734b5
Update react-router-dom package to v6
...
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
ce0901a237
Refactor redirects placed directly in <Switch>
...
This is per the second step in https://reactrouter.com/en/main/upgrading/v5
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Rostislav Wolny
76cf3cfd75
Refactor Route render or component to children
...
This is per the first step in update guide https://reactrouter.com/en/main/upgrading/v5
[MAILPOET-3911]
2024-07-10 18:02:00 +02:00
Jan Jakes
c84910c075
Add test for switching active automation to draft
...
[MAILPOET-6131]
2024-07-10 12:56:52 +02:00
Jan Jakes
9be6895cf1
Simplify automation test helpers
...
[MAILPOET-6131]
2024-07-10 12:56:52 +02:00
Jan Jakes
b7cee657c7
When unscheduling automation run actions, cancel related runs
...
[MAILPOET-6131]
2024-07-10 12:56:52 +02:00