Skip to content

Commit 0988081

Browse files
authored
Merge pull request #1402 from trycompai/main
[comp] Production Deploy
2 parents f9a0b42 + f6e83eb commit 0988081

9 files changed

Lines changed: 15 additions & 15 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]/people/[employeeId]/components/EmployeeTasks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const EmployeeTasks = ({
131131
>
132132
<p className="font-medium">{policy.name}</p>
133133
{policy.response === 'pass' ? (
134-
<div className="flex items-center gap-1 text-green-600">
134+
<div className="flex items-center gap-1 text-primary">
135135
<CheckCircle2 size={16} />
136136
<span>Pass</span>
137137
</div>

apps/app/src/app/(app)/[orgId]/people/devices/components/HostDetails.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ export const HostDetails = ({ host, onClose }: { host: Host; onClose: () => void
2222
key={policy.id}
2323
className={cn(
2424
'hover:bg-muted/50 flex items-center justify-between rounded-md border border-l-4 p-3 shadow-sm transition-colors',
25-
policy.response === 'pass' ? 'border-l-green-500' : 'border-l-red-500',
25+
policy.response === 'pass' ? 'border-l-primary' : 'border-l-red-500',
2626
)}
2727
>
2828
<p className="font-medium">{policy.name}</p>
2929
{policy.response === 'pass' ? (
30-
<div className="flex items-center gap-1 text-green-600">
30+
<div className="flex items-center gap-1 text-primary">
3131
<CheckCircle2 size={16} />
3232
<span>Pass</span>
3333
</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

apps/app/src/components/status-indicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const STATUS_COLORS: Record<StatusType, string> = {
3737
done: 'bg-primary',
3838

3939
// Completed/Done - Blue
40-
closed: 'bg-primary dark:bg-blue-400',
40+
closed: 'bg-primary',
4141

4242
// Neutral - Gray
4343
archived: 'bg-gray-500 dark:bg-gray-400',

apps/portal/src/app/(app)/(home)/[orgId]/policy/[policyId]/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ export default async function PolicyPage({
6363

6464
<Card className="shadow-md">
6565
{isAccepted && (
66-
<div className="bg-green-50 dark:bg-green-950/20 border-green-200 dark:border-green-800 mb-4 flex items-center gap-2 rounded-t-xs border p-3">
67-
<Check className="text-green-600 dark:text-green-400 h-5 w-5" />
68-
<span className="text-green-800 dark:text-green-300 text-sm font-medium">
66+
<div className="bg-green-50 border-green-200 mb-4 flex items-center gap-2 rounded-t-xs border p-3">
67+
<Check className="text-green-600 h-5 w-5" />
68+
<span className="text-green-800 text-sm font-medium">
6969
You have accepted this policy
7070
</span>
7171
</div>
@@ -79,7 +79,7 @@ export default async function PolicyPage({
7979
)}
8080
</CardHeader>
8181
<CardContent>
82-
<div className="prose dark:prose-invert max-w-none">
82+
<div className="prose max-w-none">
8383
<PolicyViewer content={policy.content} />
8484
</div>
8585
{policy.updatedAt && (

packages/ui/src/components/editor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const Editor = ({
5858
immediatelyRender: false,
5959
editorProps: {
6060
attributes: {
61-
class: `prose prose-lg dark:prose-invert prose-headings:font-title font-default focus:outline-hidden max-w-full ${className || ''}`,
61+
class: `prose prose-lg prose-headings:font-title font-default focus:outline-hidden max-w-full ${className || ''}`,
6262
},
6363
},
6464
onUpdate: ({ editor }) => {

0 commit comments

Comments
 (0)