Commit Graph

22418 Commits

Author SHA1 Message Date
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
alex-mpoet
45592114bd Fix privacy policy links not being replaced if no privacy page exists
[MAILPOET-4504]
2024-07-10 12:27:20 +02:00
Jan Jakes
da93cc5237 Render sender domain notice together with other field errors
[MAILPOET-5270]
2024-07-09 17:09:41 +02:00
Jan Jakes
f3da8048c4 Expose sender domain notice component
[MAILPOET-5270]
2024-07-09 17:09:41 +02:00
Jan Jakes
63189e6b5d Move sender domain notice component up to components dir
[MAILPOET-5270]
2024-07-09 17:09:41 +02:00
Pavel Dohnal
b0c8d84c78 Ensure value is always number
https://github.com/mailpoet/mailpoet/security/code-scanning/13
2024-07-09 16:02:12 +02:00
github-actions[bot]
1d0596f14f Update used WooCommerce Subscriptions plugin in Circle CI
- latest version: 6.4.1
 - previous version: 6.3.2
2024-07-09 13:28:25 +02:00
Pavel Dohnal
f490215ff2 Release 4.55.0 2024-07-09 13:12:56 +02:00
Jan Jakes
1c41fe81b1 Fix side effect in shortcodes test
[MAILPOET-5359]
2024-07-09 09:03:18 +02:00
Rostislav Wolny
b59e6fb683 Add instructions for running individual acceptance test in premium 2024-07-08 16:31:13 +02:00
 Ján Mikláš
0017e21523 Add Table of Contents in free plugin README
[MAILPOET-6136]
2024-07-08 16:31:13 +02:00
 Ján Mikláš
757582546d Simplify free plugin README + small improvements
[MAILPOET-6136]
2024-07-08 16:31:13 +02:00
 Ján Mikláš
3e40492caf Add section on translators comments
[MAILPOET-6136]
2024-07-08 16:31:13 +02:00
 Ján Mikláš
dc49f56c7f Add Table of Contents in README
[MAILPOET-6136]
2024-07-08 16:31:13 +02:00
 Ján Mikláš
c7cbece95c Better header structure in README
[MAILPOET-6136]
2024-07-08 16:31:13 +02:00
 Ján Mikláš
79ae36f4db Remove new template section - the link is 404
[MAILPOET-6136]
2024-07-08 16:31:13 +02:00
 Ján Mikláš
3912426190 Add examples how to run individual tests locally
[MAILPOET-6136]
2024-07-08 16:31:13 +02:00
 Ján Mikláš
f7b942ece6 Simplify SUPPORT
[MAILPOET-6136]
2024-07-08 16:31:13 +02:00
 Ján Mikláš
945680f643 Improve CONTRIBUTING
[MAILPOET-6136]
2024-07-08 16:31:13 +02:00
 Ján Mikláš
b6d8b86afd Remove issues section as it's irrelevant for external contributors
[MAILPOET-6136]
2024-07-08 16:31:13 +02:00
 Ján Mikláš
c87fc41a22 Remove IdiORM to Doctrine section as it's completed now
[MAILPOET-6136]
2024-07-08 16:31:13 +02:00
Jan Jakes
ce94e24fb1 Fix rendering of special characters using [site:name] shortcode
[MAILPOET-5359]
2024-07-08 14:45:41 +02:00
 Ján Mikláš
a4c6929e27 Fix type
[MAILPOET-5436]
2024-07-08 14:37:30 +02:00
 Ján Mikláš
a23d6e2609 Unify font-size and verically align activity modal header
[MAILPOET-5436]
2024-07-08 14:37:30 +02:00
 Ján Mikláš
cd424e9e58 Add detailed run logs sample data
[MAILPOET-5436]
2024-07-08 14:37:30 +02:00
 Ján Mikláš
964b391672 API now returns "Unknown step: $key" so fallback is not needed
[MAILPOET-5436]
2024-07-08 14:37:30 +02:00
 Ján Mikláš
0dffcc5ebd Update API endpoint response structure
[MAILPOET-5436]
2024-07-08 14:37:30 +02:00