-
- {'Quick Actions'}
-
+ {'Quick Actions'}
@@ -146,10 +100,7 @@ export function ToDoOverview({
-
+
Policies ({remainingPolicies})
@@ -157,10 +108,7 @@ export function ToDoOverview({
Tasks ({remainingTasks})
-
+
Offboarding ({pendingOffboardings.length})
@@ -172,19 +120,15 @@ export function ToDoOverview({
)}
@@ -210,14 +154,12 @@ export function ToDoOverview({
{policy.name}
- Status: {formatStatus(policy.status)}
+ Status: {formatQuickActionStatus(policy.status)}
@@ -237,9 +179,7 @@ export function ToDoOverview({
{incompleteTasks.length === 0 ? (
-
- All tasks are completed!
-
+ All tasks are completed!
) : (
@@ -257,14 +197,12 @@ export function ToDoOverview({
{task.title}
- Status: {formatStatus(task.status)}
+ Status: {formatQuickActionStatus(task.status)}
@@ -283,22 +221,16 @@ export function ToDoOverview({
{isPendingLoading ? (
-
- Loading offboardings...
-
+ Loading offboardings...
) : pendingError ? (
-
- Failed to load offboardings
-
+ Failed to load offboardings
) : pendingOffboardings.length === 0 ? (
-
- No pending offboardings
-
+ No pending offboardings
) : (
@@ -316,8 +248,7 @@ export function ToDoOverview({
Complete offboarding for {member.name}
- {member.completedItems}/{member.totalItems}{' '}
- tasks done
+ {member.completedItems}/{member.totalItems} tasks done
@@ -342,16 +273,7 @@ export function ToDoOverview({
- setIsConfirmDialogOpen(false)}
- onConfirm={handleConfirmAction}
- title="Are you sure you want to publish all policies?"
- description="This will automatically publish all policies that are in draft status. This action cannot be undone."
- confirmText="Publish Policies"
- cancelText="Cancel"
- isLoading={isLoading}
- />
+ {publishAllPoliciesDialog}