Add tooltip to machine opens in subscribers stats summary
[MAILPOET-3741]
This commit is contained in:
committed by
Veljko V
parent
4ae2a2a78c
commit
c7db461c4a
@@ -55,6 +55,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tooltip {
|
||||||
|
margin-left: $grid-gap-half * .5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet-tooltip-message a {
|
||||||
|
color: $color-white;
|
||||||
|
}
|
||||||
|
|
||||||
.mailpoet-listing-table tr:last-child td {
|
.mailpoet-listing-table tr:last-child td {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
@@ -38,6 +38,7 @@ function Tooltip(props) {
|
|||||||
/>
|
/>
|
||||||
<ReactTooltip
|
<ReactTooltip
|
||||||
globalEventOff="click"
|
globalEventOff="click"
|
||||||
|
className="mailpoet-tooltip-message"
|
||||||
multiline
|
multiline
|
||||||
id={tooltipId}
|
id={tooltipId}
|
||||||
efect="solid"
|
efect="solid"
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import ReactStringReplace from 'react-string-replace';
|
||||||
import MailPoet from 'mailpoet';
|
import MailPoet from 'mailpoet';
|
||||||
import Tag from 'common/tag/tag';
|
import Tag from 'common/tag/tag';
|
||||||
|
import Tooltip from 'help-tooltip';
|
||||||
import { ListingsEngagementScore } from '../listings_engagement_score';
|
import { ListingsEngagementScore } from '../listings_engagement_score';
|
||||||
|
|
||||||
export type PropTypes = {
|
export type PropTypes = {
|
||||||
@@ -61,6 +63,25 @@ export default ({
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<Tag>{MailPoet.I18n.t('statsMachineOpened')}</Tag>
|
<Tag>{MailPoet.I18n.t('statsMachineOpened')}</Tag>
|
||||||
|
<Tooltip
|
||||||
|
tooltip={ReactStringReplace(
|
||||||
|
MailPoet.I18n.t('statsMachineOpenedTooltip'),
|
||||||
|
/\[link](.*?)\[\/link]/,
|
||||||
|
(match) => (
|
||||||
|
<span style={{ pointerEvents: 'all' }} key="machine-opened-info">
|
||||||
|
<a
|
||||||
|
href="https://kb.mailpoet.com/article/368-what-are-machine-opens"
|
||||||
|
key="kb-link"
|
||||||
|
target="_blank"
|
||||||
|
data-beacon-article="6124b7fb21ef206e5592e188"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
{ match }
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
)
|
||||||
|
)}
|
||||||
|
/>
|
||||||
</td>
|
</td>
|
||||||
<td><b>{machineOpen.toLocaleString()}</b></td>
|
<td><b>{machineOpen.toLocaleString()}</b></td>
|
||||||
<td>
|
<td>
|
||||||
|
@@ -122,6 +122,7 @@
|
|||||||
'statsSentEmail': __('Sent email'),
|
'statsSentEmail': __('Sent email'),
|
||||||
'statsOpened': __('Opened'),
|
'statsOpened': __('Opened'),
|
||||||
'statsMachineOpened': _x('Machine-opened', 'Percentage of newsletters that were opened by a machine'),
|
'statsMachineOpened': _x('Machine-opened', 'Percentage of newsletters that were opened by a machine'),
|
||||||
|
'statsMachineOpenedTooltip': __('A machine-opened email is an email opened by a computer in the background without the user’s explicit request or knowledge. [link]Read more[/link]'),
|
||||||
'statsClicked': __('Clicked'),
|
'statsClicked': __('Clicked'),
|
||||||
'statsNotClicked': __('Not opened'),
|
'statsNotClicked': __('Not opened'),
|
||||||
'openedEmailsHeading': __('Opened emails'),
|
'openedEmailsHeading': __('Opened emails'),
|
||||||
|
Reference in New Issue
Block a user