diff --git a/public/locales/en.json b/public/locales/en.json
index 0d9149dfeb..8986e1e367 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -301,6 +301,9 @@
"dueDate": "Due Date",
"completionDate": "Completion Date",
"isCompleted": "Completed",
+ "active": "Active",
+ "completed": "Completed",
+ "clearFilters": "Clear Filters",
"status": "Status",
"latest": "Latest",
"earliest": "Earliest",
diff --git a/src/GraphQl/Queries/Queries.ts b/src/GraphQl/Queries/Queries.ts
index 8a25f2d3f8..9435dc6a18 100644
--- a/src/GraphQl/Queries/Queries.ts
+++ b/src/GraphQl/Queries/Queries.ts
@@ -107,11 +107,21 @@ export const ACTION_ITEM_CATEGORY_LIST = gql`
export const ACTION_ITEM_LIST = gql`
query ActionItemsByOrganization(
$organizationId: ID!
+ $actionItemCategoryId: ID
+ $eventId: ID
+ $isActive: Boolean
+ $isCompleted: Boolean
$orderBy: ActionItemsOrderByInput
) {
actionItemsByOrganization(
organizationId: $organizationId
orderBy: $orderBy
+ where: {
+ actionItemCategory_id: $actionItemCategoryId
+ event_id: $eventId
+ is_active: $isActive
+ is_completed: $isCompleted
+ }
) {
_id
assignee {
diff --git a/src/components/ActionItemsContainer/ActionItemsContainer.tsx b/src/components/ActionItemsContainer/ActionItemsContainer.tsx
index a6f14f5dcc..1ac3cf8fdb 100644
--- a/src/components/ActionItemsContainer/ActionItemsContainer.tsx
+++ b/src/components/ActionItemsContainer/ActionItemsContainer.tsx
@@ -22,7 +22,7 @@ function actionItemsContainer({
membersData,
actionItemsRefetch,
}: {
- actionItemsData: InterfaceActionItemList | undefined;
+ actionItemsData: InterfaceActionItemInfo[] | undefined;
membersData: any;
actionItemsRefetch: any;
}): JSX.Element {
@@ -172,81 +172,82 @@ function actionItemsContainer({
- {actionItemsData?.actionItemsByOrganization.map(
- (actionItem, index) => (
-
-
- (
+
+
+
+ {`${actionItem.assignee.firstName} ${actionItem.assignee.lastName}`}
+
+
+ {actionItem.actionItemCategory.name}
+
+
+
- {`${actionItem.assignee.firstName} ${actionItem.assignee.lastName}`}
-
-
+
+
+
+ ))}
- {index !==
- actionItemsData.actionItemsByOrganization.length - 1 && (
-
- )}
-
- )
+ {actionItemsData?.length === 0 && (
+
+ No Action Items
+
)}
diff --git a/src/screens/OrganizationActionItems/ActionItemUpdateModal.tsx b/src/screens/OrganizationActionItems/ActionItemUpdateModal.tsx
index bd95ac2ede..0d712f8df1 100644
--- a/src/screens/OrganizationActionItems/ActionItemUpdateModal.tsx
+++ b/src/screens/OrganizationActionItems/ActionItemUpdateModal.tsx
@@ -57,7 +57,7 @@ const ActionItemUpdateModal: React.FC = ({
+
Assignee
= ({
preCompletionNotes: e.target.value,
});
}}
+ className="mb-2"
/>