From 744662db442b240b10591bb4b4c8bff977062c50 Mon Sep 17 00:00:00 2001 From: Rachael Parris <43251054+rachaelparris@users.noreply.github.com> Date: Mon, 22 Apr 2019 10:51:45 -0400 Subject: [PATCH 1/2] 937: show 2 view options for docket record table on mobile (temporarily) --- web-client/src/styles/tables.scss | 14 +++- web-client/src/views/DocketRecord.jsx | 104 +++++++++++++++++++++++++- 2 files changed, 115 insertions(+), 3 deletions(-) diff --git a/web-client/src/styles/tables.scss b/web-client/src/styles/tables.scss index 872384ef023..69d7983cb16 100644 --- a/web-client/src/styles/tables.scss +++ b/web-client/src/styles/tables.scss @@ -176,13 +176,25 @@ table.work-queue { overflow-y: scroll; } -table#docket-record { +@media only screen and (max-width: $medium-screen - 1px) { + .scrollable-table-container-mobile { + overflow: scroll; + max-height: 500px; + margin-top: 300px; + } +} + +table.docket-record { thead th { font-weight: $font-semibold; } /* big screens */ @media only screen and (min-width: $medium-screen) { + &.mobile-only-extra-table { + display: none; + } + .center-column { text-align: center; } diff --git a/web-client/src/views/DocketRecord.jsx b/web-client/src/views/DocketRecord.jsx index 20a1851f49c..05ccf0f4c9f 100644 --- a/web-client/src/views/DocketRecord.jsx +++ b/web-client/src/views/DocketRecord.jsx @@ -62,8 +62,7 @@ export const DocketRecord = connect( )}
@@ -188,6 +187,107 @@ export const DocketRecord = connect(
+ +
+ + + + + + + + + + + + + + + {caseDetail.docketRecordWithDocument.map( + ({ record, document, index }) => ( + + + + + + + + + + + + ), + )} + +
No.DateEvent + Filings and ProceedingsFiled ByActionServedParties
{index + 1}{record.createdAtFormatted} + {document && document.eventCode} + + {document && document.isPaper && ( + + )} + {document && + helper.showDirectDownloadLink && + document.processingStatus !== 'complete' && ( + + )} + + {document && + helper.showDirectDownloadLink && + document.processingStatus === 'complete' && + renderDocumentLink( + document.documentId, + record.description, + document.isPaper, + )} + {document && + helper.showDirectDownloadLink && + document.processingStatus !== 'complete' && ( + + + + + {record.description} + + )} + {document && helper.showDocumentDetailLink && ( + + {record.description} + + )} + {!document && + record.documentId && + renderDocumentLink( + record.documentId, + record.description, + )} + {!document && !record.documentId && record.description} + {record.filingsAndProceedings && + ` ${record.filingsAndProceedings}`} + {document && document.filedBy}{record.action} + {document && document.isStatusServed && ( + {caseDetail.datePetitionSentToIrsMessage} + )} + {document && helper.showDocumentStatus && ( + {document.status} + )} + {record.servedParties}
+
); }, From 2b84abf2cd71490d35db892ce0cdbee80e8bc57e Mon Sep 17 00:00:00 2001 From: Rachael Parris <43251054+rachaelparris@users.noreply.github.com> Date: Mon, 22 Apr 2019 11:07:33 -0400 Subject: [PATCH 2/2] fix cypress test --- web-client/cypress/integration/file-a-petition.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-client/cypress/integration/file-a-petition.spec.js b/web-client/cypress/integration/file-a-petition.spec.js index f1665fb298d..5068ec144a3 100644 --- a/web-client/cypress/integration/file-a-petition.spec.js +++ b/web-client/cypress/integration/file-a-petition.spec.js @@ -207,7 +207,7 @@ describe('can view case detail', () => { }); it('shows docket record table and data', () => { - cy.get('table#docket-record tbody tr').should('exist'); + cy.get('table.docket-record tbody tr').should('exist'); }); it('accordion header expands/collapses', () => {