Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Post and video detail: stretch the post highlights row full width and label the video date as its upload date, per the updated design mocks.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { WIDGET_DASHBOARD_COLUMN_COUNT } from '@wordpress/widget-dashboard';
import { POST_DETAIL_TAB_LAYOUTS } from './tab-layouts';

describe( 'post detail tab layouts', () => {
it( 'composes Post traffic as a three-column highlights row, a Post views chart beside the interaction cards, then Traffic activity beside UTM', () => {
it( 'composes Post traffic as a full-width highlights row, a Post views chart beside the interaction cards, then Traffic activity beside UTM', () => {
expect( POST_DETAIL_TAB_LAYOUTS[ 'post-traffic' ] ).toEqual( [
{
uuid: 'post-detail-highlights',
type: 'jpa/post-detail-highlights',
placement: { width: 3, height: 1, order: 1 },
placement: { width: WIDGET_DASHBOARD_COLUMN_COUNT, height: 1, order: 1 },
},
{
uuid: 'post-views',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export const POST_DETAIL_TAB_LAYOUTS: Record< PostDetailTabId, DashboardWidget[]
'post-traffic': [
{
uuid: 'post-detail-highlights',
// Three quarter-width tiles with the last column left empty, per the
// design mocks — unlike the email highlights rows, which span all four.
// Full-width row like the email highlights, per the updated design
// mocks; the widget spreads its three tiles across the span.
type: 'jpa/post-detail-highlights',
placement: { width: 3, height: 1, order: 1 },
placement: { width: WIDGET_DASHBOARD_COLUMN_COUNT, height: 1, order: 1 },
},
{
uuid: 'post-views',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export function VideoSummaryCard( { summary, performanceRange }: VideoSummaryCar
const publishedSentence =
publishedDateObject && isValid( publishedDateObject )
? sprintf(
/* translators: %s: the video publish date, e.g. "Aug 19, 2025". */
__( 'Video published on %s.', 'jetpack-premium-analytics-pkg' ),
/* translators: %s: the video upload date, e.g. "Aug 19, 2025". */
__( 'Video uploaded on %s.', 'jetpack-premium-analytics-pkg' ),
format( publishedDateObject, DATE_FORMAT )
)
: undefined;
Expand Down
Loading