diff --git a/apps/console/src/pages/organizations/frameworks/controls/ControlView.tsx b/apps/console/src/pages/organizations/frameworks/controls/ControlView.tsx index ead4699c2..fb8629729 100644 --- a/apps/console/src/pages/organizations/frameworks/controls/ControlView.tsx +++ b/apps/console/src/pages/organizations/frameworks/controls/ControlView.tsx @@ -638,14 +638,6 @@ function ControlViewContent({ }, }, onCompleted: () => { - toast({ - title: "Task updated", - description: `Task has been ${ - newState === "DONE" ? "completed" : "reopened" - }.`, - }); - - // Update the selected task state if it's the current task if (selectedTask && selectedTask.id === taskId) { setSelectedTask({ ...selectedTask, @@ -797,11 +789,6 @@ function ControlViewContent({ "input.file": file, }, onCompleted: () => { - toast({ - title: "Document added", - description: "Document evidence has been added successfully.", - variant: "default", - }); setTaskForEvidence(null); // Reset the file input if (hiddenFileInputRef.current) { @@ -843,13 +830,6 @@ function ControlViewContent({ // Description is now optional for link evidence // Remove the validation check for empty description - // Show toast for add started - toast({ - title: "Adding link evidence", - description: `Adding ${linkEvidenceName}...`, - variant: "default", - }); - // Get the evidence connection ID for this task const evidenceConnectionId = getEvidenceConnectionId(taskForEvidence.id); @@ -870,11 +850,6 @@ function ControlViewContent({ connections: evidenceConnectionId ? [evidenceConnectionId] : [], }, onCompleted: () => { - toast({ - title: "Link evidence added", - description: "Link evidence has been added successfully.", - variant: "default", - }); setTaskForEvidence(null); setEvidenceDialogOpen(false); // Reset form fields @@ -1070,10 +1045,6 @@ function ControlViewContent({ connections: evidenceConnectionId ? [evidenceConnectionId] : [], }, onCompleted: () => { - toast({ - title: "Evidence deleted", - description: "Evidence has been deleted successfully.", - }); setIsDeleteEvidenceOpen(false); setEvidenceToDelete(null); }, @@ -1097,11 +1068,6 @@ function ControlViewContent({ }, }, onCompleted: () => { - toast({ - title: "Task assigned", - description: "Task has been assigned successfully.", - }); - // Close the popover setPeoplePopoverOpen((prev) => ({ ...prev, [taskId]: false })); }, onError: (error) => { @@ -1122,12 +1088,6 @@ function ControlViewContent({ taskId, }, }, - onCompleted: () => { - toast({ - title: "Task unassigned", - description: "Task has been unassigned successfully.", - }); - }, onError: (error) => { toast({ title: "Error unassigning task", @@ -1250,10 +1210,6 @@ function ControlViewContent({ }, }, onCompleted: () => { - toast({ - title: "Task updated", - description: "Time estimate has been updated successfully.", - }); setIsEditingDuration(false); // Update the selected task state if it's the current task diff --git a/apps/console/src/pages/organizations/people/PeopleView.tsx b/apps/console/src/pages/organizations/people/PeopleView.tsx index 7936770aa..b5003356d 100644 --- a/apps/console/src/pages/organizations/people/PeopleView.tsx +++ b/apps/console/src/pages/organizations/people/PeopleView.tsx @@ -16,9 +16,15 @@ import { import { Suspense, useEffect, useState, useCallback } from "react"; import type { PeopleViewQuery as PeopleViewQueryType } from "./__generated__/PeopleViewQuery.graphql"; import { useParams } from "react-router"; -import { cn } from "@/lib/utils"; import { PageTemplate } from "@/components/PageTemplate"; import { PeopleViewSkeleton } from "./PeoplePage"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; const peopleViewQuery = graphql` query PeopleViewQuery($peopleId: ID!) { @@ -237,63 +243,40 @@ function PeopleViewContent({ -
- - - -
+ + +
+ + +
- - {hasChanges && ( -
- - -
- )} ); } diff --git a/apps/console/src/pages/organizations/vendors/VendorView.tsx b/apps/console/src/pages/organizations/vendors/VendorView.tsx index 3e225f762..186f772c6 100644 --- a/apps/console/src/pages/organizations/vendors/VendorView.tsx +++ b/apps/console/src/pages/organizations/vendors/VendorView.tsx @@ -373,21 +373,19 @@ function VendorViewContent({ - - - {hasChanges && ( -
+
- )} +
); }