Commit Graph

17621 Commits

Author SHA1 Message Date
Oluwaseun Olorunsola
3b9cbbfc61 Remove Coupon block feature flag
MAILPOET-4978
2023-02-23 16:59:15 +01:00
Rostislav Wolny
87e5ea8dfd Add filter for PHPMailer instance into SMTP mailer method
[MAILPOET-5064]
2023-02-23 16:45:39 +01:00
Rodrigo Primo
26bdf7e20c Fix PHPStan errors in the data factories classes
[MAILPOET-4037]
2023-02-23 14:13:17 +01:00
Rodrigo Primo
a9a3c53245 Fix PHPStan errors in the acceptance tests
[MAILPOET-4037]
2023-02-23 14:13:17 +01:00
Rodrigo Primo
678911a8bc Fix PHPStan baseline errors in a few integration test files
[MAILPOET-4037]
2023-02-23 14:13:17 +01:00
Rodrigo Primo
2bcd1ace70 Fix PHPStan errors in tests/integration/Segments/DynamicSegments/
[MAILPOET-4037]
2023-02-23 14:13:17 +01:00
Rodrigo Primo
6374ce9ad3 Remove unused parameter from getSubscribersCount() to fix a PHPStan error
[MAILPOET-4037]
2023-02-23 14:13:17 +01:00
Rodrigo Primo
775ab32037 Fix PHPStan baseline errors in a few test files
[MAILPOET-4037]
2023-02-23 14:13:17 +01:00
Veljko
e942133ac6 Update test functions and remove eslint disable no shadow
[MAILPOET-4955]
2023-02-23 13:16:17 +01:00
Veljko
5ef9608366 Update tests and config
[MAILPOET-4955]
2023-02-23 13:16:17 +01:00
Veljko
ede0a1e4cd Change admin password back
[MAILPOET-4955]
2023-02-23 13:16:17 +01:00
Veljko
bc699ea642 Add subscribers filtering by status test
[MAILPOET-4955]
2023-02-23 13:16:17 +01:00
Veljko
27045209bc Update config, scenarios, readme and the test
[MAILPOET-4955]
2023-02-23 13:16:17 +01:00
Rostislav Wolny
ee007e9392 Refactor fetching subscribers stats data
In the original approach we completely ignored subscribers who subscribed and unsubscribed
within the last 30 days.
Based on the feedback from QA this was quite confusing.
This commit changes the logic and instead of looking at current status we fetch the counts
based on logs (the lastSubscribedAt column and statistics_unsubscribes table) and we ignore the current status.
On the list level we don't have any logs so we still need to check the current status on the list level,
but newly we ignore the global status.
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
b1ec1b9500 Add helper method for updating updatedAt of an entity in integration tests
We can't simply set updatedAt via setter on the entity. The value gets overwritten
in the TimeStampListener. This commit adds a simple method that saves updatedAt via
dbal connection and refreshes the entity.
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
a7c8a8c638 Add links for empty states of subscribers stats to allow open in new tab
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
9e157da66d Improve list level unsubscribe stats
We want to show admin how many subscribers subscribed to a list and how many
unsubscribed within last 30 days so that they see the change.
If someone subscribed and also unsubscribed within those 30 days we skip him.
We don't have data to detect they were really subscribed at some point.
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
e3897fa04e Improve global unsubscribes stats on homepage
Before this fix if a subscriber subscribed multiple times
we counted them a multiple global unsubscribes
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
f1ac576a7a Refactor homepage code - prefer expression over ternary operator
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
ec74290b3e Add missing key property for the list of lists
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
bcb3bacf89 Add description of what subscriber stats values represent
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
566882ad44 Add acceptance test for subscribers stats section on the homepage
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
c7238441e2 Add styles for small screens for subscriber stats
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
aa4d58fb58 Add styles for subscribers stats section
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
719e0095a7 Add global subscribers stats change info to UI
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
04307ca2a6 Compute change of global subscribed subscribers
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
6e99d5ec9d Add empty states for homepage subscribers stats section
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
076f79358e Add engagement score to the homepage subscribers stats
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
50a377b749 Render list change info in subscribers stats section on homepage
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
1727163640 Add fetching of list level subscriber changes to homepage data service
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
f6d58dab8f Display global subscriber stats in the homepage UI
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
ab35f5c8c1 Add fetching of global subscribers stats to Homepage data controller
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
9217f197f9 Add subscribers section description
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Rostislav Wolny
16beb8d0f3 Add empty subscribers stats section to homepage
[MAILPOET-4828]
2023-02-22 13:54:31 +01:00
Jan Lysý
673f6db39a Fix spacing in block settings
After the initial change for the new coupon block was necessary to fix overlooked issues.
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
f28687be74 Remove redundant classes
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
71415e73c0 Create common types for callbacks
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
7930f04b22 Add default values
Because React components throw errors when the initial value is null or undefined before the change.
I added default values for all inputs.
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
12456828fe Fix mapping products and categories for new coupon
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
bd95f9caaf Remove settings coupon block test
Because the new settings panel was refactored to React. It is not possible to use this test anymore.
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
767e6f4fbf Fix renamed coupon block attributes
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
59ab4d742e Add validation improvements to coupon settings
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
92eb91001a Unify design with other blocks
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
3938c40023 Make display options hideable
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
8beb423a43 Add reseting code when tab is changed
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
847132b433 Create new component for existing coupons
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
64c2ab5f9f Create component for usage limits
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
45d4af878b Add validation for email restrictions
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
ac9eddc239 Move email restrictions to React component
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Jan Lysý
57ca1bf864 Move category selections to React component
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00