Skip to content

Commit ab16777

Browse files
BillLeoutsakosvl346Bill Leoutsakos
andauthored
refactor(emcn): remove duplicate Label primary color classes (#8242)
Co-authored-by: Bill Leoutsakos <billleoutsakos@Bills-MacBook-Pro.local>
1 parent aee32f1 commit ab16777

9 files changed

Lines changed: 27 additions & 62 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/api/api.tsx‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ console.log(limits);`
458458
<div className='space-y-4'>
459459
<div>
460460
<div className='mb-[6.5px] flex items-center justify-between'>
461-
<Label className='block pl-0.5 text-[var(--text-primary)] text-small'>Language</Label>
461+
<Label className='block pl-0.5 text-small'>Language</Label>
462462
</div>
463463
<ChipButtonGroup value={language} onValueChange={(val) => setLanguage(val as CodeLanguage)}>
464464
{(Object.keys(LANGUAGE_LABELS) as CodeLanguage[]).map((lang) => (
@@ -471,7 +471,7 @@ console.log(limits);`
471471

472472
<div>
473473
<div className='mb-[6.5px] flex items-center justify-between'>
474-
<Label className='block pl-0.5 text-[var(--text-primary)] text-small'>Run workflow</Label>
474+
<Label className='block pl-0.5 text-small'>Run workflow</Label>
475475
<Tooltip.Root>
476476
<Tooltip.Trigger asChild>
477477
<Button
@@ -499,9 +499,7 @@ console.log(limits);`
499499

500500
<div>
501501
<div className='mb-[6.5px] flex items-center justify-between'>
502-
<Label className='block pl-0.5 text-[var(--text-primary)] text-small'>
503-
Run workflow (stream response)
504-
</Label>
502+
<Label className='block pl-0.5 text-small'>Run workflow (stream response)</Label>
505503
<div className='flex items-center gap-1.5'>
506504
<Tooltip.Root>
507505
<Tooltip.Trigger asChild>
@@ -540,9 +538,7 @@ console.log(limits);`
540538
{!info.isPublicApi && (
541539
<div>
542540
<div className='mb-[6.5px] flex items-center justify-between'>
543-
<Label className='block pl-0.5 text-[var(--text-primary)] text-small'>
544-
Run workflow (async)
545-
</Label>
541+
<Label className='block pl-0.5 text-small'>Run workflow (async)</Label>
546542
<div className='flex items-center gap-1.5'>
547543
<Tooltip.Root>
548544
<Tooltip.Trigger asChild>

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/chat/chat.tsx‎

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,7 @@ export function ChatDeploy({
359359
/>
360360

361361
<div>
362-
<Label
363-
htmlFor='title'
364-
className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'
365-
>
362+
<Label htmlFor='title' className='mb-[6.5px] block pl-0.5 text-small'>
366363
Title
367364
</Label>
368365
<ChipInput
@@ -379,9 +376,7 @@ export function ChatDeploy({
379376
</div>
380377

381378
<div>
382-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
383-
Output
384-
</Label>
379+
<Label className='mb-[6.5px] block pl-0.5 text-small'>Output</Label>
385380
<OutputSelect
386381
workflowId={workflowId}
387382
selectedOutputs={formData.selectedOutputBlocks}
@@ -402,9 +397,7 @@ export function ChatDeploy({
402397

403398
<div className='flex items-center justify-between gap-3'>
404399
<div className='min-w-0'>
405-
<Label className='block pl-0.5 text-[var(--text-primary)] text-small'>
406-
Include thinking
407-
</Label>
400+
<Label className='block pl-0.5 text-small'>Include thinking</Label>
408401
</div>
409402
<Switch
410403
checked={formData.includeThinking}
@@ -416,9 +409,7 @@ export function ChatDeploy({
416409

417410
<div className='flex items-center justify-between gap-3'>
418411
<div className='min-w-0'>
419-
<Label className='block pl-0.5 text-[var(--text-primary)] text-small'>
420-
Include tool calls
421-
</Label>
412+
<Label className='block pl-0.5 text-small'>Include tool calls</Label>
422413
</div>
423414
<Switch
424415
checked={formData.includeToolCalls}
@@ -444,10 +435,7 @@ export function ChatDeploy({
444435
error={errors.password || errors.emails}
445436
/>
446437
<div>
447-
<Label
448-
htmlFor='welcomeMessage'
449-
className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'
450-
>
438+
<Label htmlFor='welcomeMessage' className='mb-[6.5px] block pl-0.5 text-small'>
451439
Welcome message
452440
</Label>
453441
<Textarea
@@ -587,10 +575,7 @@ function IdentifierInput({
587575

588576
return (
589577
<div>
590-
<Label
591-
htmlFor='chat-url'
592-
className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'
593-
>
578+
<Label htmlFor='chat-url' className='mb-[6.5px] block pl-0.5 text-small'>
594579
URL
595580
</Label>
596581
<div
@@ -731,9 +716,7 @@ function AuthSelector({
731716
return (
732717
<div className='space-y-4'>
733718
<div>
734-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
735-
Access control
736-
</Label>
719+
<Label className='mb-[6.5px] block pl-0.5 text-small'>Access control</Label>
737720
<ChipButtonGroup
738721
value={authType}
739722
onValueChange={(val) => onAuthTypeChange(val as AuthType)}
@@ -749,9 +732,7 @@ function AuthSelector({
749732

750733
{authType === 'password' && (
751734
<div>
752-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
753-
Password
754-
</Label>
735+
<Label className='mb-[6.5px] block pl-0.5 text-small'>Password</Label>
755736
<GeneratedPasswordInput
756737
value={password}
757738
onChange={handlePasswordChange}
@@ -777,7 +758,7 @@ function AuthSelector({
777758

778759
{(authType === 'email' || authType === 'sso') && (
779760
<div>
780-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
761+
<Label className='mb-[6.5px] block pl-0.5 text-small'>
781762
{authType === 'email' ? 'Allowed emails' : 'Allowed SSO emails'}
782763
</Label>
783764
<ChipEmailsInput

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/general/general.tsx‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export function GeneralDeploy({
198198
<div className='space-y-3'>
199199
<div>
200200
<div className='relative mb-[6.5px]'>
201-
<Label className='block truncate pl-0.5 text-[var(--text-primary)] text-small'>
201+
<Label className='block truncate pl-0.5 text-small'>
202202
{previewMode === 'selected' && selectedVersionInfo
203203
? formatVersionLabel(selectedVersionInfo.version, selectedVersionInfo.name)
204204
: 'Live Workflow'}
@@ -263,9 +263,7 @@ export function GeneralDeploy({
263263
</div>
264264

265265
<div>
266-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
267-
Versions
268-
</Label>
266+
<Label className='mb-[6.5px] block pl-0.5 text-small'>Versions</Label>
269267
<Versions
270268
workflowId={workflowId}
271269
versions={versions}

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/mcp/mcp.tsx‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,7 @@ export function McpDeploy({
541541
))}
542542

543543
<div>
544-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
545-
Tool name
546-
</Label>
544+
<Label className='mb-[6.5px] block pl-0.5 text-small'>Tool name</Label>
547545
<ChipInput
548546
value={toolName}
549547
onChange={(e) => setToolName(e.target.value)}
@@ -562,9 +560,7 @@ export function McpDeploy({
562560
</div>
563561

564562
<div>
565-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
566-
Description
567-
</Label>
563+
<Label className='mb-[6.5px] block pl-0.5 text-small'>Description</Label>
568564
<Textarea
569565
placeholder={
570566
workflowDescriptionFallback
@@ -579,7 +575,7 @@ export function McpDeploy({
579575

580576
{inputFormat.length > 0 && (
581577
<div>
582-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
578+
<Label className='mb-[6.5px] block pl-0.5 text-small'>
583579
Parameters ({inputFormat.length})
584580
</Label>
585581
<p className='mb-[6.5px] pl-0.5 text-[var(--text-secondary)] text-xs'>
@@ -627,9 +623,7 @@ export function McpDeploy({
627623
)}
628624

629625
<div>
630-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
631-
Servers
632-
</Label>
626+
<Label className='mb-[6.5px] block pl-0.5 text-small'>Servers</Label>
633627
<ChipCombobox
634628
options={serverOptions}
635629
multiSelect

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/checkbox-list/checkbox-list.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function CheckboxList({
9494
/>
9595
<Label
9696
htmlFor={`${blockId}-${subBlockId}-${option.id}`}
97-
className='cursor-pointer font-sans text-[var(--text-primary)] text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50'
97+
className='cursor-pointer font-sans text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50'
9898
>
9999
{formatDisplayText(option.label, { workflowSearchHighlight })}
100100
</Label>

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/slack-setup-wizard/slack-setup-wizard.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ function CapabilityRow({ blockId, capability, checked, disabled }: CapabilityRow
527527
/>
528528
<Label
529529
htmlFor={id}
530-
className='cursor-pointer text-[var(--text-primary)] text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60'
530+
className='cursor-pointer text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60'
531531
>
532532
{capability.label}
533533
</Label>

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/switch/switch.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function Switch({
4040
/>
4141
<Label
4242
htmlFor={`${blockId}-${subBlockId}`}
43-
className='cursor-pointer font-sans text-[var(--text-primary)] text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50'
43+
className='cursor-pointer font-sans text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50'
4444
>
4545
{title}
4646
</Label>

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/subflow-editor/subflow-editor.tsx‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function SubflowEditor({
131131
data-workflow-search-canonical-id={WORKFLOW_SEARCH_SUBFLOW_FIELD_IDS.type}
132132
className='rounded-md'
133133
>
134-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
134+
<Label className='mb-[6.5px] block pl-0.5 text-small'>
135135
{currentBlock.type === 'loop' ? 'Loop Type' : 'Parallel Type'}
136136
</Label>
137137
<Combobox
@@ -150,7 +150,7 @@ export function SubflowEditor({
150150
data-workflow-search-canonical-id={configSearchFieldId}
151151
className='rounded-md'
152152
>
153-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
153+
<Label className='mb-[6.5px] block pl-0.5 text-small'>
154154
{isCountMode
155155
? `${currentBlock.type === 'loop' ? 'Loop' : 'Parallel'} Iterations`
156156
: isConditionMode
@@ -223,9 +223,7 @@ export function SubflowEditor({
223223
data-workflow-search-canonical-id={WORKFLOW_SEARCH_SUBFLOW_FIELD_IDS.batchSize}
224224
className='relative mt-4 rounded-md'
225225
>
226-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
227-
Parallel Batch Size
228-
</Label>
226+
<Label className='mb-[6.5px] block pl-0.5 text-small'>Parallel Batch Size</Label>
229227
<Input
230228
type='text'
231229
value={batchSizeValue}

‎apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-editor/preview-editor.tsx‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ function SubflowConfigDisplay({ block, loop, parallel }: SubflowConfigDisplayPro
605605
<div className='flex-1 overflow-y-auto overflow-x-hidden pt-2 pb-2'>
606606
{/* Type Selection - matches SubflowEditor */}
607607
<div>
608-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
608+
<Label className='mb-[6.5px] block pl-0.5 text-small'>
609609
{isLoop ? 'Loop Type' : 'Parallel Type'}
610610
</Label>
611611
<Combobox
@@ -622,9 +622,7 @@ function SubflowConfigDisplay({ block, loop, parallel }: SubflowConfigDisplayPro
622622

623623
{/* Configuration - matches SubflowEditor */}
624624
<div>
625-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
626-
{getConfigLabel()}
627-
</Label>
625+
<Label className='mb-[6.5px] block pl-0.5 text-small'>{getConfigLabel()}</Label>
628626

629627
{isCountMode ? (
630628
<div>

0 commit comments

Comments
 (0)