Commit Graph

249 Commits

Author SHA1 Message Date
Rostislav Wolny
f46573eb5f Unify property type annotations in Newsletter Editor page controller
[MAILPOET-6213]
2024-09-17 14:04:26 +02:00
Rostislav Wolny
844fa02a06 Make the original Woo Transactional email template available to JS app
[MAILPOET-6213]
2024-09-17 14:04:26 +02:00
Rostislav Wolny
f3d6813d97 Load data inconsistencies async from API
[MAILPOET-6219]
2024-09-11 15:19:35 +02:00
Jan Lysý
b1248cca0d Use placeholders and comments
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
 Ján Mikláš
9feb0433e6 Show "from" value in logs when not explicitely set
It was empty before, and it looked like there are no logs. But they were just filtered for the last 7 days.

[MAILPOET-5670]
2024-08-14 10:26:54 +02:00
Rostislav Wolny
f10bce81a3 Pass data inconsistencies data to JS
[MAILPOET-1587]
2024-08-08 15:37:32 +02:00
Rostislav Wolny
22ee156dcd Use inline property type hints for Help page
[MAILPOET-1587]
2024-08-08 15:37:32 +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áš
2dc036007e Refactor tasks-list-data-row to TypeScript
[MAILPOET-5755]
2024-07-04 08:04:34 +02:00
 Ján Mikláš
4211e02d6a Show list of cancelled sending tasks
[MAILPOET-5755]
2024-07-04 08:04:34 +02:00
 Ján Mikláš
e55a861137 Show subscriber email if a sending task has only a single subscriber
[MAILPOET-5755]
2024-07-04 08:04:34 +02:00
 Ján Mikláš
64417c7bc8 Expose server_timezone_in_minutes on all MailPoet pages, not just Emails
[MAILPOET-5495]
2024-06-17 12:51:16 +02:00
 Ján Mikláš
da190c5d06 Calculate server timezone offset in minutes
[MAILPOET-5495]
2024-06-17 12:51:16 +02:00
alex-mpoet
a6caf0a1e6 Add bridge ping endpoint
[MAILPOET-6030]
2024-06-12 11:16:51 +02:00
Oluwaseun Olorunsola
25067a5e87 Ensure we fetch the user authorized_emails and domains when MSS is activated
MAILPOET-6028
2024-06-10 17:26:48 +02:00
Rostislav Wolny
12df8bd7fa Remove bc code for WP 6.4 from email editor
[MAILPOET-6086]
2024-05-31 12:20:45 +02:00
Brezo Cordero
f9d5d50b66 Add filter on system info data
[MAILPOET-6013]
2024-05-14 13:03:37 +02:00
Mike Jolley
43752a7e39 Add trash button to email editor 2024-04-30 14:12:08 +02:00
Jan Jakes
74d2699905 Use real number of segments for table placeholder
[MAILPOET-5395]
2024-04-24 12:59:37 +02:00
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