|
{/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}
|
{postLink(test.title, test.postLink, test.id)}
{postLink(__('Edit', 'ab-testing-for-wp'), test.postLink, test.id)}
{isSingle && ' | '}
{isSingle && (
{removeLink(test.postDeleteLink)}
)}
|
{test.startedAt > 0 ? (
{format(test.startedAt, 'yyyy/MM/dd')}
{` (${formatDistance(new Date(), test.startedAt)})`}
) : (
—
)}
|
{
isSingle
? {`[ab-test id=${test.postId}]`}
: postLink(test.postName, test.postLink, test.id)
}
|
{postLink(test.goalName, test.goalLink)} |
{test.totalParticipants} |
{test.totalParticipants > 0 ? (
| {} |
{__('Conversion Rate', 'ab-testing-for-wp')} |
{__('Conversions', 'ab-testing-for-wp')} |
{__('Participants', 'ab-testing-for-wp')} |
{test.variants.map((variant) => (
0 ? 'ABTestWinning' : 'ABTestLosing'}>
|
{variant.name}
{variant.id === test.control && ' *'}
|
{`${variant.rate}%`}
{variant.uplift !== 0 && (
{[
' (',
variant.uplift > 0 ? '+' : '',
variant.uplift,
'%)',
].join('')}
)}
|
{variant.conversions} |
{variant.participants} |
))}
) : (
{__('No results for this test yet.', 'ab-testing-for-wp')}
)}
{test.totalParticipants > 0 && (
toTestVariantResult(variant))}
/>
)}
|