Commit Graph

229 Commits

Author SHA1 Message Date
Jan Lysý
50df6c3d4e Use NPS poll in the new email editor
[MAILPOET-5911]
2024-04-15 08:18:35 +02:00
Brezo Cordero
e4b90d7e38 Add logic to display new upgrade page
that will have to be modified after results from a/b test

[MAILPOET-5906]
2024-04-03 08:40:46 +03:00
Jan Lysý
a0c1a87e81 Remove redundant code
[MAILPOET-5640]
2024-03-22 17:19:44 +01:00
Jan Lysý
11adf6c324 Pass email editor theme to the state
[MAILPOET-5640]
2024-03-22 17:19:44 +01:00
Brezo Cordero
48465a7152 Refactor CapabilitiesManager
capabilities is an associate array of new class Capability  to make it more generic

[MAILPOET-5938]
2024-03-22 11:01:01 +01:00
Mike Jolley
435f638011 Apply rules on lib dir 2024-03-21 16:57:59 +01:00
Mike Jolley
2c43b23803 Update mailpoet/lib/AdminPages/Pages/EmailEditor.php
Co-authored-by: Jan Lysý <lysyjan@users.noreply.github.com>
2024-03-20 10:57:26 +01:00
Mike Jolley
bbd45a5f32 Remove script tags from wpAddInlineScript 2024-03-20 10:57:26 +01:00
Mike Jolley
fab5ff650d Fix syntax error after rebase 2024-03-20 10:57:26 +01:00
Mike Jolley
36c982a0d1 Correct indenting 2024-03-20 10:57:26 +01:00
Mike Jolley
2a830b9f68 Add globals for the premium modal 2024-03-20 10:57:26 +01:00
Mike Jolley
8f81f4a6b1 Use page renderer 2024-03-20 10:57:26 +01:00
Mike Jolley
33cb92a779 Conditionally show footer 2024-03-20 10:57:26 +01:00
Mike Jolley
3fdac58cfd Add image to CDN and canvas 2024-03-20 10:57:26 +01:00
Rostislav Wolny
b9ef6bb258 Add a workaround for fixed toolbar backward compatibility
In WP 6.4 and below is the fixed toolbar rendered within the same
slot as the floating toolbar but is positioned via CSS.

In WP 6.5, the fixed toolbar needs to be rendered in the Header explicitly.
This commit adds a workaround to backward compatibility with WP 6.4 to prevent rendering
two fixed toolbars.

Inspired by 1abf85fb83
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
Brezo Cordero
0ca2146801 Add capability check on newsletters detailed stats
Moves existing check to the capability manager and implements backward compatibility for products without capabilities.

[MAILPOET-5898]
2024-03-13 11:54:37 +01:00
John Oleksowicz
566e1d33f2 Add UI for purchased with tag filter
MAILPOET-4985
2024-03-13 10:24:42 +01:00
John Oleksowicz
a4a2ef3b1f Add support for local variation attributes
In WooCommerce it's possible to create attributes that are local to a
specific product. When these attributes are used to generate variations,
 they are stored in the postmeta table.

MAILPOET-5467
2024-03-11 10:52:30 +01:00
John Oleksowicz
6b8fc3df83 Only load WC data when WC is active
MAILPOET-5467
2024-03-11 10:52:30 +01:00
John Oleksowicz
477557d22c Use taxonomy slug instead of id
The lookup table, wc_product_attributes_lookup, that we'll use for the
queries, includes the slug but not the taxonomy id.

MAILPOET-5467
2024-03-11 10:52:30 +01:00
Rodrigo Primo
acc8dde47d Add purchased with attribute segment UI code
[MAILPOET-5467]
2024-03-11 10:52:30 +01:00
Jan Jakes
f6d8eb41b4 Sort automation filters alphabetically
[MAILPOET-5683]
2024-03-08 11:30:08 +01:00
John Oleksowicz
e960504c5f Replace useSetting with window reference
There seems to be an issue with useSetting. Simply having
`useSetting('welcome_wizard_current_step')` in App causes re-renders on
any state change. The effect was that you could only type one letter in
the input fields before the app would re-render and the field would lose
 focus.

I tried and failed to figure out what was causing all the re-renders, so
 for now I've settled on this workaround, since we only care about the
 initial state of the setting anyway. That being said, this seems like
 something we should investigate as it could be affecting other
 components and causing lots of unnecessary re-renders.

MAILPOET-5216
2024-03-04 12:22:13 +01:00
John Oleksowicz
417a2ba273 Conditional logic for start welcome wizard button
Make the button say "Continue setup" if we can see that the user has
already started.

MAILPOET-5216
2024-03-04 12:22:13 +01:00
Jan Lysý
db8dac03d2 Prepare styles in store for sidebar
[MAILPOET-5638]
2024-03-01 16:36:52 +01:00
Jan Lysý
b71e68d8da Add loading format library styles in email editor
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Brezo Cordero
1e373ab7e0 Update Sender Domain inline notice
Remove unused notices displayed before enforcement date.

[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
Rostislav Wolny
cc8bb10d8b Add proper body class for the email editor to mark it a block editor
This class is needed so that some CSS rules (e.g. white background, hidden footer)
are applied for WP admin.
[MAILPOET-5854]
2024-01-29 10:52:41 +01:00
Jan Lysý
38fcb7394d Move hook adding MailPoet image size to NewsletterEditor admin page
[MAILPOET-5749]
2024-01-22 17:32:41 +01:00
Jan Jakes
e6f01119d5 Make legacy automatic emails/automations notices permanently dismissable
[MAILPOET-5779]
2024-01-16 18:15:35 +01:00
Jan Jakes
c1f2d48811 Fix and simplify automation listing notices, use @wordpress/notices
[MAILPOET-5779]
2024-01-16 09:43:57 +05:00
Brezo Cordero
4a9d57766b Add activation restrictions to window
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
aef1d65b6d Change the domain extraction
to have a sequential array so that json_encode keeps it as an array.

[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
24bcb7633f Only show warnings for existing users until enforcement date
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Brezo Cordero
ba627e9d2c Add sender domain limits to window
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Brezo Cordero
5545865a73 Add partially verified domains to Window
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Jan Jakes
b774fff3b9 Add legacy automation count to automation total count
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
92aef9ea05 Add description for legacy automatic emails
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
29430db641 Add description for legacy welcome emails
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
abe7c0e49c Add notice about legacy automatic emails
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Rostislav Wolny
966014d71d Improve name of a getter for campaign name or subject on NewsletterEntity
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
b8b5696ab1 Use campaign name if available in newsletters listing in segment editor
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Jan Lysý
aa40d7eb7b Set BlockList layout
[MAILPOET-5688]
2023-12-21 13:04:10 +01:00
Jan Jakes
d5aa68ed8a Fix filters list to work in automation template previews
[MAILPOET-4534]
2023-12-11 20:51:12 +01:00
Jan Jakes
068f99bdbe Add automation context and registry to listing and templates pages
[MAILPOET-4537]
2023-12-11 20:51:12 +01:00
Oluwaseun Olorunsola
2a714511c2 Add tracking for users arriving to the wizard from WooCommerce Marketing Dashboard
Users can click on the Finish setup button on the WooCommerce Multichannel Marketing Dashboard which would redirect them to the MailPoet welcome wizard.

 We want to track users that arrive to the MP wizard from
WooCommerce but at this point tracking is not enabled. So we store the
information in a setting, and send the tracking event to Mixpanel, if it
is enabled, after the user completes the wizard.

MAILPOET-5695
2023-11-27 10:25:09 +01:00
Jan Jakes
d220f05840 Move automation template categories to registry
This will also allow 3rd parties adding new categories in the future.

[MAILPOET-4676]
2023-11-20 14:30:05 +01:00
Jan Lysý
91094fad7c Use layoutStyles in email editor
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Jakes
b5552a5a5e Remove usages of MailPoet\Tasks\Sending from Help page
[MAILPOET-4375]
2023-11-02 12:53:36 +01:00
John Oleksowicz
c6a6d7d8e1 Automatically opt in to tracking if wpcom
MAILPOET-5549
2023-11-01 12:24:46 +01:00