Skip to content

Commit

Permalink
(fix) Fix order details table UI (#112)
Browse files Browse the repository at this point in the history
Restores the state of the order details table to a state prior to the changes made in #102. This will likely require a
review of the changes made in that PR to ensure that everything is working as expected.
  • Loading branch information
denniskigen authored Dec 18, 2024
1 parent ff8207a commit 16fa761
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/orders-table/list-order-details.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ const ListOrderDetails: React.FC<ListOrdersDetailsProps> = (props) => {
<span className={styles.orderDate}>
{t('orderDate', 'Order Date:')} {row.dateActivated}
</span>
</div>
<div className={styles.orderStatus}>
{t('orderStatus', 'Status:')}
<Tag size="lg" type={row.fulfillerStatus ? 'green' : 'red'}>
{row.fulfillerStatus || t('orderNotPicked', 'Order not picked')}
</Tag>
</div>
<div>
<div className={styles.orderUrgency}>
<span className={styles.urgencyStatus}>
{t('urgencyStatus', 'Urgency: ')} {capitalize(row.urgency)}
</span>
</div>
<StructuredListWrapper>
<StructuredListBody>
<StructuredListRow>
Expand Down
3 changes: 3 additions & 0 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
"Ordered tests": "Ordered tests",
"ordererName": "Orderer Name: ",
"orderInStruction": "Instructions: ",
"orderNotPicked": "Order not picked",
"orderNumbers": "Order number:",
"orderPickedSuccessfully": "You have successfully picked an order",
"orders": "Orders",
"orderStatus": "Status:",
"patient": "Patient",
"pickedAnOrder": "Picked an order",
"pickLabRequest": "Pick Lab Request",
Expand All @@ -56,6 +58,7 @@
"testsOrdered": "Tests ordered",
"testType": "Test type",
"totalOrders": "Total orders",
"urgencyStatus": "Urgency: ",
"viewTestResults": "View test results",
"worklist": "Worklist",
"Worklist": "Worklist"
Expand Down

0 comments on commit 16fa761

Please sign in to comment.