Skip to content

Commit 502cc1f

Browse files
committed
finished search modal
1 parent 6c0e7b5 commit 502cc1f

File tree

6 files changed

+528
-532
lines changed

6 files changed

+528
-532
lines changed

apps/sim/app/workspace/[workspaceId]/templates/components/template-card.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ interface TemplateCardProps {
135135
// Skeleton component for loading states
136136
export function TemplateCardSkeleton({ className }: { className?: string }) {
137137
return (
138-
<div className={cn('rounded-[14px] border bg-card shadow-xs', 'flex h-[142px]', className)}>
138+
<div className={cn('rounded-[8px] border bg-card shadow-xs', 'flex h-[142px]', className)}>
139139
{/* Left side - Info skeleton */}
140140
<div className='flex min-w-0 flex-1 flex-col justify-between p-4'>
141141
{/* Top section skeleton */}
@@ -180,7 +180,7 @@ export function TemplateCardSkeleton({ className }: { className?: string }) {
180180
</div>
181181

182182
{/* Right side - Block Icons skeleton */}
183-
<div className='flex w-16 flex-col items-center justify-center gap-2 rounded-r-[14px] border-border border-l bg-secondary p-2'>
183+
<div className='flex w-16 flex-col items-center justify-center gap-2 rounded-r-[8px] border-border border-l bg-secondary p-2'>
184184
{Array.from({ length: 3 }).map((_, index) => (
185185
<div
186186
key={index}
@@ -365,7 +365,7 @@ export function TemplateCard({
365365
return (
366366
<div
367367
className={cn(
368-
'group rounded-[14px] border bg-card shadow-xs transition-all duration-200 hover:border-border/80 hover:shadow-sm',
368+
'group rounded-[8px] border bg-card shadow-xs transition-shadow duration-200 hover:border-border/80 hover:shadow-sm',
369369
'flex h-[142px]',
370370
className
371371
)}
@@ -379,7 +379,7 @@ export function TemplateCard({
379379
{/* Icon container */}
380380
<div
381381
className={cn(
382-
'flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-md',
382+
'flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-[8px]',
383383
// Use CSS class if iconColor doesn't start with #
384384
iconColor?.startsWith('#') ? '' : iconColor || 'bg-blue-500'
385385
)}
@@ -401,7 +401,7 @@ export function TemplateCard({
401401
<Star
402402
onClick={handleStarClick}
403403
className={cn(
404-
'h-4 w-4 cursor-pointer transition-all duration-200',
404+
'h-4 w-4 cursor-pointer transition-colors duration-50',
405405
localIsStarred
406406
? 'fill-yellow-400 text-yellow-400'
407407
: 'text-muted-foreground hover:fill-yellow-400 hover:text-yellow-400',
@@ -411,7 +411,7 @@ export function TemplateCard({
411411
<button
412412
onClick={handleUseClick}
413413
className={cn(
414-
'rounded-md px-3 py-1 font-medium font-sans text-white text-xs transition-all duration-200',
414+
'rounded-[8px] px-3 py-1 font-medium font-sans text-white text-xs transition-[background-color,box-shadow] duration-200',
415415
'bg-[#701FFC] hover:bg-[#6518E6]',
416416
'shadow-[0_0_0_0_#701FFC] hover:shadow-[0_0_0_4px_rgba(127,47,255,0.15)]'
417417
)}
@@ -444,7 +444,7 @@ export function TemplateCard({
444444
</div>
445445

446446
{/* Right side - Block Icons */}
447-
<div className='flex w-16 flex-col items-center justify-center gap-2 rounded-r-[14px] border-border border-l bg-secondary p-2'>
447+
<div className='flex w-16 flex-col items-center justify-center gap-2 rounded-r-[8px] border-border border-l bg-secondary p-2'>
448448
{blockTypes.length > 3 ? (
449449
<>
450450
{/* Show first 2 blocks when there are more than 3 */}
@@ -455,7 +455,7 @@ export function TemplateCard({
455455
return (
456456
<div key={index} className='flex items-center justify-center'>
457457
<div
458-
className='flex flex-shrink-0 items-center justify-center rounded'
458+
className='flex flex-shrink-0 items-center justify-center rounded-[8px]'
459459
style={{
460460
backgroundColor: blockConfig.bgColor || 'gray',
461461
width: '30px',
@@ -470,7 +470,7 @@ export function TemplateCard({
470470
{/* Show +n block for remaining blocks */}
471471
<div className='flex items-center justify-center'>
472472
<div
473-
className='flex flex-shrink-0 items-center justify-center rounded bg-muted-foreground'
473+
className='flex flex-shrink-0 items-center justify-center rounded-[8px] bg-muted-foreground'
474474
style={{ width: '30px', height: '30px' }}
475475
>
476476
<span className='font-medium text-white text-xs'>+{blockTypes.length - 2}</span>
@@ -486,7 +486,7 @@ export function TemplateCard({
486486
return (
487487
<div key={index} className='flex items-center justify-center'>
488488
<div
489-
className='flex flex-shrink-0 items-center justify-center rounded'
489+
className='flex flex-shrink-0 items-center justify-center rounded-[8px]'
490490
style={{
491491
backgroundColor: blockConfig.bgColor || 'gray',
492492
width: '30px',

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/control-bar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import {
4040
ExportControls,
4141
TemplateModal,
4242
} from '@/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/components'
43-
import { WorkflowTextEditorModal } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-text-editor/workflow-text-editor-modal'
4443
import { useWorkflowExecution } from '@/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-workflow-execution'
4544
import {
4645
getKeyboardShortcutText,

apps/sim/app/workspace/[workspaceId]/w/components/search-modal/hooks/use-search-navigation.ts

Lines changed: 0 additions & 171 deletions
This file was deleted.

0 commit comments

Comments
 (0)