Skip to content

Commit e0bf8c1

Browse files
committed
feat(design-system): add new components and update styles for design system
1 parent bbf3026 commit e0bf8c1

File tree

186 files changed

+1522
-1230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+1522
-1230
lines changed

apps/portal/agents.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Design System
44

5-
**All UI must use `@trycompai/ui-shadcn` components. No custom styling.**
5+
**All UI must use `@trycompai/design-system` components. No custom styling.**
66

77
**`className` is NOT a valid prop on design system components.**
88

@@ -21,7 +21,7 @@ import {
2121
PageLayout,
2222
Container,
2323
// ... etc
24-
} from '@trycompai/ui-shadcn';
24+
} from '@trycompai/design-system';
2525
```
2626

2727
### ❌ NEVER Do This
@@ -126,5 +126,5 @@ For layout concerns (width, grid positioning), use wrapper elements:
126126
## When Something Is Missing
127127

128128
1. Check if a variant exists in the component
129-
2. Add a variant to `@trycompai/ui-shadcn` if needed
129+
2. Add a variant to `@trycompai/design-system` if needed
130130
3. **Never** work around with wrapper divs for styling that should be a variant

apps/portal/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import './src/env.mjs';
44
const isStandalone = process.env.NEXT_OUTPUT_STANDALONE === 'true';
55

66
const config = {
7-
transpilePackages: ['@trycompai/db', '@trycompai/ui-shadcn'],
7+
transpilePackages: ['@trycompai/db', '@trycompai/design-system'],
88
images: {
99
remotePatterns: [
1010
{

apps/portal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@trycompai/db": "1.3.20",
1414
"@trycompai/email": "workspace:*",
1515
"@trycompai/kv": "workspace:*",
16-
"@trycompai/ui-shadcn": "workspace:*",
16+
"@trycompai/design-system": "workspace:*",
1717
"@types/jszip": "^3.4.1",
1818
"@upstash/ratelimit": "^2.0.5",
1919
"archiver": "^7.0.1",

apps/portal/src/app/(app)/(home)/[orgId]/components/EmployeeTasksList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import { trainingVideos } from '@/lib/data/training-videos';
4-
import { Accordion, Card, CardContent, CardHeader } from '@trycompai/ui-shadcn';
4+
import { Accordion, Card, CardContent, CardHeader } from '@trycompai/design-system';
55
import type { EmployeePortalDashboard } from '../types/employee-portal';
66
import { DeviceAgentAccordionItem } from './tasks/DeviceAgentAccordionItem';
77
import { GeneralTrainingAccordionItem } from './tasks/GeneralTrainingAccordionItem';

apps/portal/src/app/(app)/(home)/[orgId]/components/policy/PolicyCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import type { Member, Policy } from '@db';
44
import type { JSONContent } from '@tiptap/react';
5-
import { Button, Card, CardContent, CardFooter, CardHeader } from '@trycompai/ui-shadcn';
5+
import { Button, Card, CardContent, CardFooter, CardHeader } from '@trycompai/design-system';
66
import { ArrowRight, Check } from 'lucide-react';
77
import { useState } from 'react';
88
import { PolicyEditor } from './PolicyEditor';

apps/portal/src/app/(app)/(home)/[orgId]/components/policy/PolicyCarousel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import type { Member, Policy } from '@db';
4-
import { Button } from '@trycompai/ui-shadcn';
4+
import { Button } from '@trycompai/design-system';
55
import { ChevronLeft, ChevronRight } from 'lucide-react';
66
import { useAction } from 'next-safe-action/hooks';
77
import { useEffect, useRef, useState } from 'react';

apps/portal/src/app/(app)/(home)/[orgId]/components/policy/PolicyContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import type { Member, Policy } from '@db';
4-
import { Button } from '@trycompai/ui-shadcn';
4+
import { Button } from '@trycompai/design-system';
55
import { ArrowLeft } from 'lucide-react';
66
import { useState } from 'react';
77
import { PolicyCarousel } from './PolicyCarousel';

apps/portal/src/app/(app)/(home)/[orgId]/components/policy/PolicyGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import type { Member, Policy } from '@db';
4-
import { Card, CardContent, CardHeader } from '@trycompai/ui-shadcn';
4+
import { Card, CardContent, CardHeader } from '@trycompai/design-system';
55
import { Check } from 'lucide-react';
66

77
interface PolicyGridProps {

apps/portal/src/app/(app)/(home)/[orgId]/components/policy/PortalPdfViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import { useApiSWR } from '@/hooks/use-api-swr';
4-
import { Card, CardContent } from '@trycompai/ui-shadcn';
4+
import { Card, CardContent } from '@trycompai/design-system';
55
import { FileText, Loader2 } from 'lucide-react';
66
import { useParams } from 'next/navigation';
77
import { toast } from 'sonner';

apps/portal/src/app/(app)/(home)/[orgId]/components/tasks/DeviceAgentAccordionItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
WINDOWS_FILENAME,
77
} from '@/app/api/download-agent/constants';
88
import { detectOSFromUserAgent, SupportedOS } from '@/utils/os';
9-
import { AccordionContent, AccordionItem, AccordionTrigger } from '@trycompai/ui-shadcn';
9+
import { AccordionContent, AccordionItem, AccordionTrigger } from '@trycompai/design-system';
1010
import { CheckCircle2, Circle } from 'lucide-react';
1111
import { useEffect, useMemo, useState } from 'react';
1212
import { toast } from 'sonner';

0 commit comments

Comments
 (0)