From ceb68ecbee0091f28135eb81d424e84d07e58c92 Mon Sep 17 00:00:00 2001 From: Naji Sawas Date: Mon, 16 Mar 2020 11:11:00 -0700 Subject: [PATCH] instruments: update instruments dashboard Summary: Phase 1 of instruments dashboard updates, this revision simply displays any instrument components that exist on the table, as well as display their status on the instrument details page. The dashboard requires more updates once the instruments service supports returning component operation histories. Fix T34282 Test Plan: update cypress tests {F1083115} {F1083116} {F1083117} {F1083118} Reviewers: ecarrel, jzhao, O10 LIMS Server, O12 LIMS UI, O13 UI Common Reviewed By: ecarrel, O10 LIMS Server, O12 LIMS UI, O13 UI Common Subscribers: rhuang, aravind, amich, #lab_testing Maniphest Tasks: T34282 Differential Revision: https://phabricator.grailbio.com/D43595 fbshipit-source-id: e58b288 --- .../timeline-graph.spec.tsx.snap | 40 +++++++++---------- .../components/timeline-graph-component.tsx | 3 +- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/src/timeline-graph/__snapshots__/timeline-graph.spec.tsx.snap b/src/timeline-graph/__snapshots__/timeline-graph.spec.tsx.snap index 905b361..cba463f 100644 --- a/src/timeline-graph/__snapshots__/timeline-graph.spec.tsx.snap +++ b/src/timeline-graph/__snapshots__/timeline-graph.spec.tsx.snap @@ -20,12 +20,12 @@ exports[`render simple timeline graph 1`] = ` > 2018

-

20 Apr -

+
2018

-

20 Apr -

+
2018

-

20 Apr -

+

2018

-

20 Apr -

+

2018

-

20 Apr -

+
2018

-

20 Apr -

+
2018

-

20 Apr -

+
2018

-

20 Apr -

+
2018

-

@@ -657,7 +657,7 @@ exports[`test unselecting an item on the timeline card 1`] = ` > Fri

-

+
2018

-

@@ -702,7 +702,7 @@ exports[`test unselecting an item on the timeline card 1`] = ` > Fri

-

+
{ classes = {}, } = props; const entries = rows.map((item, index) => { - const date = parseDate(item.date); + const date = parseDate(item.date) || 0; const year = format(date, "yyyy"); const paperClass = onSelect ? styles.timelinePaperButton @@ -91,6 +91,7 @@ export const TimelineGraphComponent = (props: Props) => { {year}