From ba2c91d89e7268aed5321fe341fd9d373840675d Mon Sep 17 00:00:00 2001
From: Ashesh <3626859+Ashesh3@users.noreply.github.com>
Date: Fri, 24 Nov 2023 20:33:23 +0530
Subject: [PATCH 1/2] Filter out push notif and Fix empty daily rounds design
(#6710)
* Filter out PUSH_MESSAGE notifications in
NotificationsList
* test
* revert test
* Fix styling issue in DailyRoundsList component
* Refactor DailyRoundsList component styles
---
src/Components/Facility/Consultations/DailyRoundsList.tsx | 4 ++--
src/Components/Notifications/NotificationsList.tsx | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/Components/Facility/Consultations/DailyRoundsList.tsx b/src/Components/Facility/Consultations/DailyRoundsList.tsx
index 8d08cea2f95..ffc70ddf175 100644
--- a/src/Components/Facility/Consultations/DailyRoundsList.tsx
+++ b/src/Components/Facility/Consultations/DailyRoundsList.tsx
@@ -30,8 +30,8 @@ export const DailyRoundsList = (props: any) => {
{(_) => (
-
-
+
+
{t("no_consultation_updates")}
diff --git a/src/Components/Notifications/NotificationsList.tsx b/src/Components/Notifications/NotificationsList.tsx
index ae3e3f94ac6..6066bf6c66b 100644
--- a/src/Components/Notifications/NotificationsList.tsx
+++ b/src/Components/Notifications/NotificationsList.tsx
@@ -358,6 +358,7 @@ export default function NotificationsList({
manageResults = (
<>
{data
+ .filter((notification: any) => notification.event != "PUSH_MESSAGE")
.filter((notification: any) =>
showUnread ? notification.read_at === null : true
)
From c37b55487c8e8ffb5202357ff46a25bb88021784 Mon Sep 17 00:00:00 2001
From: Ashesh <3626859+Ashesh3@users.noreply.github.com>
Date: Fri, 24 Nov 2023 21:15:32 +0530
Subject: [PATCH 2/2] Add icu_admission_date field to ConsultationForm (#6711)
---
src/Components/Facility/ConsultationForm.tsx | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/Components/Facility/ConsultationForm.tsx b/src/Components/Facility/ConsultationForm.tsx
index a56a0d587e9..091be6b5968 100644
--- a/src/Components/Facility/ConsultationForm.tsx
+++ b/src/Components/Facility/ConsultationForm.tsx
@@ -724,6 +724,7 @@ export const ConsultationForm = (props: any) => {
: undefined,
consultation_notes: state.form.consultation_notes,
is_telemedicine: state.form.is_telemedicine,
+ icu_admission_date: state.form.icu_admission_date,
action: state.form.action,
review_interval: state.form.review_interval,
assigned_to: