Skip to content

Commit a57dfbd

Browse files
committed
feat(device-agent): add new device agent package with dependencies
1 parent b481090 commit a57dfbd

3 files changed

Lines changed: 716 additions & 62 deletions

File tree

apps/app/src/app/(app)/[orgId]/people/dashboard/components/EmployeeCompletionChart.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ interface EmployeeCompletionChartProps {
2424
securityTrainingStepEnabled?: boolean;
2525
}
2626

27-
// Define colors for the chart using DS semantic colors
27+
// Define colors for the chart using semantic tokens
2828
const taskColors = {
29-
completed: 'bg-success', // Green - completed/good state
29+
completed: 'bg-primary', // Primary green
3030
incomplete: 'bg-warning', // Yellow - needs action
3131
};
3232

@@ -258,7 +258,10 @@ export function EmployeeCompletionChart({
258258
<div className="text-muted-foreground text-right text-xs">
259259
{stat.policiesCompleted}/{stat.policiesTotal} policies signed
260260
{securityTrainingStepEnabled && (
261-
<>{stat.trainingsCompleted}/{stat.trainingsTotal} training</>
261+
<>
262+
{' '}
263+
{stat.trainingsCompleted}/{stat.trainingsTotal} training
264+
</>
262265
)}
263266
</div>
264267
</div>
@@ -267,7 +270,7 @@ export function EmployeeCompletionChart({
267270

268271
<div className="text-muted-foreground flex flex-wrap gap-3 text-xs">
269272
<div className="flex items-center gap-1">
270-
<div className="size-2 rounded-xs bg-success" />
273+
<div className="size-2 rounded-xs bg-primary" />
271274
<span>{'Completed'}</span>
272275
</div>
273276
<div className="flex items-center gap-1">

apps/portal/src/app/api/download-agent/constants.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ export const DOWNLOAD_TARGETS: Record<
2929
contentType: 'application/vnd.debian.binary-package',
3030
},
3131
};
32+
33+
// Backward-compatible filename exports used by client components.
34+
export const MAC_APPLE_SILICON_FILENAME = DOWNLOAD_TARGETS.macos.filename;
35+
export const MAC_INTEL_FILENAME = DOWNLOAD_TARGETS['macos-intel'].filename;
36+
export const WINDOWS_FILENAME = DOWNLOAD_TARGETS.windows.filename;

0 commit comments

Comments
 (0)