From e52b59de8decfc191d00c1fee53337636acf89a6 Mon Sep 17 00:00:00 2001 From: Vladimir Reznichenko Date: Fri, 2 Oct 2020 14:27:32 +0200 Subject: [PATCH 1/4] Transaction timeline: enabled timestamps rendering for all entries --- client/payment-details/timeline/map-events.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/payment-details/timeline/map-events.js b/client/payment-details/timeline/map-events.js index 5896816ec35..21ac7d5a97c 100644 --- a/client/payment-details/timeline/map-events.js +++ b/client/payment-details/timeline/map-events.js @@ -64,7 +64,7 @@ const getStatusChangeTimelineItem = ( event, status ) => { status ), body: [], - hideTimestamp: true, + hideTimestamp: false, }; }; @@ -134,7 +134,7 @@ const getDepositTimelineItem = ( icon: getIcon( isPositive ? 'plus' : 'minus' ), headline, body, - hideTimestamp: true, + hideTimestamp: false, }; }; @@ -344,7 +344,7 @@ const mapEventToTimelineItems = ( event ) => { 'woocommerce-services' ), ], - hideTimestamp: true, + hideTimestamp: false, }; } else { const formattedTotal = formatCurrency( From 9b8deb014363cf8f059de37ab324572abbb675a1 Mon Sep 17 00:00:00 2001 From: Vladimir Reznichenko Date: Fri, 2 Oct 2020 14:29:10 +0200 Subject: [PATCH 2/4] Updated changelog --- changelog.txt | 1 + readme.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog.txt b/changelog.txt index d8a3198d612..9584d71ce5d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ * Add - Initial support for the checkout block. * Add - Support wp_get_environment_type() and enable dev-mode when environment is 'development' or 'staging'. * Update - Introduced payments-specific exceptions instead of generic one. +* Update - Transaction timeline: enabled timestamps rendering for all entries. = 1.5.0 - 2020-09-24 = * Fix - Save payment method checkbox for Subscriptions customer-initiated payment method updates. diff --git a/readme.txt b/readme.txt index 8ca1be94f59..f6eac100f0b 100644 --- a/readme.txt +++ b/readme.txt @@ -95,6 +95,7 @@ You can read our Terms of Service [here](https://en.wordpress.com/tos). * Add - Initial support for the checkout block. * Add - Support wp_get_environment_type() and enable dev-mode when environment is 'development' or 'staging'. * Update - Introduced payments-specific exceptions instead of generic one. +* Update - Transaction timeline: enabled timestamps rendering for all entries. = 1.5.0 - 2020-09-24 = * Fix - Save payment method checkbox for Subscriptions customer-initiated payment method updates. From 56e7fdabb6d7d5670137d4755cd393a44d5828e2 Mon Sep 17 00:00:00 2001 From: Vladimir Reznichenko Date: Fri, 2 Oct 2020 14:42:40 +0200 Subject: [PATCH 3/4] Fixed failing tests --- .../test/__snapshots__/map-events.js.snap | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/client/payment-details/timeline/test/__snapshots__/map-events.js.snap b/client/payment-details/timeline/test/__snapshots__/map-events.js.snap index 9df5ce85d82..b60389a7e50 100644 --- a/client/payment-details/timeline/test/__snapshots__/map-events.js.snap +++ b/client/payment-details/timeline/test/__snapshots__/map-events.js.snap @@ -16,7 +16,7 @@ Array [ "body": Array [], "date": 2020-03-31T21:58:40.000Z, "headline": "Payment status changed to Authorization Expired", - "hideTimestamp": true, + "hideTimestamp": false, "icon": , - "hideTimestamp": true, + "hideTimestamp": false, "icon": , - "hideTimestamp": true, + "hideTimestamp": false, "icon": Date: Fri, 2 Oct 2020 16:33:56 +0200 Subject: [PATCH 4/4] Transaction timeline: rely on default behaviour (timestamps are rendering) --- client/payment-details/timeline/map-events.js | 3 --- .../test/__snapshots__/map-events.js.snap | 18 ------------------ 2 files changed, 21 deletions(-) diff --git a/client/payment-details/timeline/map-events.js b/client/payment-details/timeline/map-events.js index 21ac7d5a97c..77b7ddac429 100644 --- a/client/payment-details/timeline/map-events.js +++ b/client/payment-details/timeline/map-events.js @@ -64,7 +64,6 @@ const getStatusChangeTimelineItem = ( event, status ) => { status ), body: [], - hideTimestamp: false, }; }; @@ -134,7 +133,6 @@ const getDepositTimelineItem = ( icon: getIcon( isPositive ? 'plus' : 'minus' ), headline, body, - hideTimestamp: false, }; }; @@ -344,7 +342,6 @@ const mapEventToTimelineItems = ( event ) => { 'woocommerce-services' ), ], - hideTimestamp: false, }; } else { const formattedTotal = formatCurrency( diff --git a/client/payment-details/timeline/test/__snapshots__/map-events.js.snap b/client/payment-details/timeline/test/__snapshots__/map-events.js.snap index b60389a7e50..68aed3b9ae3 100644 --- a/client/payment-details/timeline/test/__snapshots__/map-events.js.snap +++ b/client/payment-details/timeline/test/__snapshots__/map-events.js.snap @@ -16,7 +16,6 @@ Array [ "body": Array [], "date": 2020-03-31T21:58:40.000Z, "headline": "Payment status changed to Authorization Expired", - "hideTimestamp": false, "icon": , - "hideTimestamp": false, "icon": , - "hideTimestamp": false, "icon":