Skip to content

Commit f6e83eb

Browse files
authored
Merge pull request #1403 from carhartlewis/lewis/comp-tweak-ui-fixes
refactor: improve styling consistency in ToDoOverview component
2 parents 0587b46 + 3e31e57 commit f6e83eb

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/app/src/app/(app)/[orgId]/frameworks/[frameworkInstanceId]/components/FrameworkOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function FrameworkOverview({
139139
<CardContent className="space-y-3">
140140
<div className="flex items-center justify-between py-2">
141141
<div className="flex items-center gap-2">
142-
<div className="h-2 w-2 rounded-full bg-green-500"></div>
142+
<div className="h-2 w-2 rounded-full bg-primary"></div>
143143
<span className="text-sm">Complete</span>
144144
</div>
145145
<span className="font-medium tabular-nums">{compliantControls}</span>

apps/app/src/app/(app)/[orgId]/frameworks/components/ToDoOverview.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function ToDoOverview({
6060
return status.replace('_', ' ').replace(/\b\w/g, (l) => l.toUpperCase());
6161
};
6262

63-
const memberRoles = currentMember?.role?.split(',').map(r => r.trim()) ?? [];
63+
const memberRoles = currentMember?.role?.split(',').map((r) => r.trim()) ?? [];
6464
const isOwner = memberRoles.includes('owner') || false;
6565

6666
const publishPolicies = useAction(publishAllPoliciesAction, {
@@ -147,7 +147,7 @@ export function ToDoOverview({
147147
)}
148148

149149
{unpublishedPolicies.length === 0 ? (
150-
<div className="flex items-center justify-center gap-2 rounded-lg bg-accent p-3">
150+
<div className="flex items-center justify-center gap-2 rounded-lg bg-accent p-3">
151151
<CheckCircle2 className="h-4 w-4" />
152152
<span className="text-sm">All policies are published!</span>
153153
</div>
@@ -192,7 +192,7 @@ export function ToDoOverview({
192192

193193
<TabsContent value="tasks" className="mt-4">
194194
{incompleteTasks.length === 0 ? (
195-
<div className="flex items-center justify-center gap-2 rounded-lg bg-primary p-3">
195+
<div className="flex items-center justify-center gap-2 rounded-lg bg-accent p-3">
196196
<CheckCircle2 className="h-4 w-4 text-primary" />
197197
<span className="text-sm text-primary">All tasks are completed!</span>
198198
</div>

apps/app/src/app/(app)/[orgId]/settings/trust-portal/components/TrustPortalSwitch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ function ComplianceFramework({
514514
</SelectItem>
515515
<SelectItem value="compliant">
516516
<span className="flex items-center gap-2">
517-
<span className="inline-block h-4 w-4 rounded-sm bg-green-500" />
517+
<span className="inline-block h-4 w-4 rounded-sm bg-primary" />
518518
Compliant
519519
</span>
520520
</SelectItem>

apps/app/src/components/risks/charts/RisksAssignee.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface UserRiskStats {
2525
const riskStatusColors = {
2626
open: 'bg-yellow-500',
2727
pending: 'bg-blue-500',
28-
closed: 'bg-green-500',
28+
closed: 'bg-primary',
2929
archived: 'bg-gray-500',
3030
};
3131

0 commit comments

Comments
 (0)