Skip to content

Commit 6b6b57b

Browse files
committed
deprecated unused input components, shifted to emcn
1 parent 725cdac commit 6b6b57b

File tree

27 files changed

+465
-345
lines changed

27 files changed

+465
-345
lines changed

apps/sim/app/(landing)/careers/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { useRef, useState } from 'react'
44
import { createLogger } from '@sim/logger'
55
import { X } from 'lucide-react'
6+
import { Textarea } from '@/components/emcn'
67
import { Button } from '@/components/ui/button'
78
import { Input } from '@/components/ui/input'
89
import { Label } from '@/components/ui/label'
@@ -13,7 +14,6 @@ import {
1314
SelectTrigger,
1415
SelectValue,
1516
} from '@/components/ui/select'
16-
import { Textarea } from '@/components/ui/textarea'
1717
import { isHosted } from '@/lib/core/config/feature-flags'
1818
import { cn } from '@/lib/core/utils/cn'
1919
import { quickValidateEmail } from '@/lib/messaging/email/validation'

apps/sim/app/(landing)/studio/[slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Metadata } from 'next'
22
import Image from 'next/image'
33
import Link from 'next/link'
4-
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
4+
import { Avatar, AvatarFallback, AvatarImage } from '@/components/emcn'
55
import { FAQ } from '@/lib/blog/faq'
66
import { getAllPostMeta, getPostBySlug, getRelatedPosts } from '@/lib/blog/registry'
77
import { buildArticleJsonLd, buildBreadcrumbJsonLd, buildPostMetadata } from '@/lib/blog/seo'

apps/sim/app/(landing)/studio/post-grid.tsx

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

33
import Image from 'next/image'
44
import Link from 'next/link'
5-
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
5+
import { Avatar, AvatarFallback, AvatarImage } from '@/components/emcn'
66

77
interface Author {
88
id: string

apps/sim/app/changelog/components/timeline-list.tsx

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

33
import React from 'react'
44
import ReactMarkdown from 'react-markdown'
5-
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
5+
import { Avatar, AvatarFallback, AvatarImage } from '@/components/emcn'
66
import { inter } from '@/app/_styles/fonts/inter/inter'
77
import { soehne } from '@/app/_styles/fonts/soehne/soehne'
88
import type { ChangelogEntry } from '@/app/changelog/components/changelog-content'

apps/sim/app/resume/[workflowId]/[executionId]/resume-page-client.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
XCircle,
1313
} from 'lucide-react'
1414
import { useRouter } from 'next/navigation'
15-
import { Badge } from '@/components/ui/badge'
15+
import { Badge, Textarea } from '@/components/emcn'
1616
import { Button } from '@/components/ui/button'
1717
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
1818
import { Input } from '@/components/ui/input'
@@ -25,7 +25,6 @@ import {
2525
SelectValue,
2626
} from '@/components/ui/select'
2727
import { Separator } from '@/components/ui/separator'
28-
import { Textarea } from '@/components/ui/textarea'
2928
import { useBrandConfig } from '@/lib/branding/branding'
3029
import { inter } from '@/app/_styles/fonts/inter/inter'
3130
import { soehne } from '@/app/_styles/fonts/soehne/soehne'

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/document.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,19 @@ import {
2222
ModalContent,
2323
ModalFooter,
2424
ModalHeader,
25+
Table,
26+
TableBody,
27+
TableCell,
28+
TableHead,
29+
TableHeader,
30+
TableRow,
2531
Tooltip,
2632
Trash,
2733
} from '@/components/emcn'
2834
import { Checkbox } from '@/components/ui/checkbox'
2935
import { Input } from '@/components/ui/input'
3036
import { SearchHighlight } from '@/components/ui/search-highlight'
3137
import { Skeleton } from '@/components/ui/skeleton'
32-
import {
33-
Table,
34-
TableBody,
35-
TableCell,
36-
TableHead,
37-
TableHeader,
38-
TableRow,
39-
} from '@/components/ui/table'
4038
import {
4139
CreateChunkModal,
4240
DeleteChunkModal,

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/base.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,19 @@ import {
2626
ModalContent,
2727
ModalFooter,
2828
ModalHeader,
29+
Table,
30+
TableBody,
31+
TableCell,
32+
TableHead,
33+
TableHeader,
34+
TableRow,
2935
Tooltip,
3036
Trash,
3137
} from '@/components/emcn'
3238
import { Checkbox } from '@/components/ui/checkbox'
3339
import { Input } from '@/components/ui/input'
3440
import { SearchHighlight } from '@/components/ui/search-highlight'
3541
import { Skeleton } from '@/components/ui/skeleton'
36-
import {
37-
Table,
38-
TableBody,
39-
TableCell,
40-
TableHead,
41-
TableHeader,
42-
TableRow,
43-
} from '@/components/ui/table'
4442
import { cn } from '@/lib/core/utils/cn'
4543
import type { DocumentSortField, SortOrder } from '@/lib/knowledge/documents/types'
4644
import {

apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/frozen-canvas/frozen-canvas.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ import {
1616
X,
1717
Zap,
1818
} from 'lucide-react'
19-
import { Modal, ModalBody, ModalContent, ModalHeader } from '@/components/emcn'
20-
import { Badge } from '@/components/ui/badge'
19+
import { Badge, Modal, ModalBody, ModalContent, ModalHeader } from '@/components/emcn'
2120
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
2221
import { redactApiKeys } from '@/lib/core/security/redaction'
2322
import { cn } from '@/lib/core/utils/cn'
@@ -200,7 +199,7 @@ function PinnedLogs({
200199
</button>
201200
</div>
202201
<div className='flex items-center gap-[8px]'>
203-
<Badge variant='secondary'>{formatted.blockType}</Badge>
202+
<Badge variant='gray-secondary'>{formatted.blockType}</Badge>
204203
<Badge variant='outline'>not executed</Badge>
205204
</div>
206205
</CardHeader>
@@ -254,7 +253,7 @@ function PinnedLogs({
254253
</div>
255254
<div className='flex items-center justify-between'>
256255
<div className='flex items-center gap-[8px]'>
257-
<Badge variant={formatted.status === 'success' ? 'default' : 'destructive'}>
256+
<Badge variant={formatted.status === 'success' ? 'default' : 'red'}>
258257
{formatted.blockType}
259258
</Badge>
260259
<Badge variant='outline'>{formatted.status}</Badge>

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/plan-mode-section/plan-mode-section.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626

2727
import * as React from 'react'
2828
import { Check, GripHorizontal, Pencil, X } from 'lucide-react'
29-
import { Button } from '@/components/emcn'
29+
import { Button, Textarea } from '@/components/emcn'
3030
import { Trash } from '@/components/emcn/icons/trash'
31-
import { Textarea } from '@/components/ui'
3231
import { cn } from '@/lib/core/utils/cn'
3332
import CopilotMarkdownRenderer from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/components/markdown-renderer'
3433

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/user-input.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import { createLogger } from '@sim/logger'
1212
import { ArrowUp, AtSign, Image, Loader2 } from 'lucide-react'
1313
import { useParams } from 'next/navigation'
1414
import { createPortal } from 'react-dom'
15-
import { Badge, Button } from '@/components/emcn'
16-
import { Textarea } from '@/components/ui'
15+
import { Badge, Button, Textarea } from '@/components/emcn'
1716
import { useSession } from '@/lib/auth/auth-client'
1817
import { cn } from '@/lib/core/utils/cn'
1918
import {

0 commit comments

Comments
 (0)