Skip to content

Commit 03d440a

Browse files
committed
streamlined all error msg patterns
1 parent c115ced commit 03d440a

File tree

13 files changed

+34
-34
lines changed

13 files changed

+34
-34
lines changed

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/document-tags-modal/document-tags-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ export function DocumentTagsModal({
639639
/>
640640
)}
641641
{tagNameConflict && (
642-
<span className='text-[11px] text-[var(--text-error)]'>
642+
<span className='text-[12px] text-[var(--text-error)]'>
643643
A tag with this name already exists
644644
</span>
645645
)}

apps/sim/app/workspace/[workspaceId]/logs/components/logs-toolbar/components/notifications/components/slack-channel-selector/slack-channel-selector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function SlackChannelSelector({
112112
{selectedChannel.isPrivate ? 'Private' : 'Public'} channel: #{selectedChannel.name}
113113
</p>
114114
)}
115-
{error && <p className='text-[11px] text-[var(--text-error)]'>{error}</p>}
115+
{error && <p className='text-[12px] text-[var(--text-error)]'>{error}</p>}
116116
</div>
117117
)
118118
}

apps/sim/app/workspace/[workspaceId]/logs/components/logs-toolbar/components/notifications/notifications.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ export function NotificationSettings({
634634
}}
635635
/>
636636
{formErrors.webhookUrl && (
637-
<p className='text-[11px] text-[var(--text-error)]'>{formErrors.webhookUrl}</p>
637+
<p className='text-[12px] text-[var(--text-error)]'>{formErrors.webhookUrl}</p>
638638
)}
639639
</div>
640640
<div className='flex flex-col gap-[8px]'>
@@ -660,7 +660,7 @@ export function NotificationSettings({
660660
placeholderWithTags='Add email'
661661
/>
662662
{formErrors.emailRecipients && (
663-
<p className='text-[11px] text-[var(--text-error)]'>{formErrors.emailRecipients}</p>
663+
<p className='text-[12px] text-[var(--text-error)]'>{formErrors.emailRecipients}</p>
664664
)}
665665
</div>
666666
)}
@@ -707,7 +707,7 @@ export function NotificationSettings({
707707
/>
708708
)}
709709
{formErrors.slackAccountId && (
710-
<p className='text-[11px] text-[var(--text-error)]'>
710+
<p className='text-[12px] text-[var(--text-error)]'>
711711
{formErrors.slackAccountId}
712712
</p>
713713
)}
@@ -776,7 +776,7 @@ export function NotificationSettings({
776776
allOptionLabel='All levels'
777777
/>
778778
{formErrors.levelFilter && (
779-
<p className='text-[11px] text-[var(--text-error)]'>{formErrors.levelFilter}</p>
779+
<p className='text-[12px] text-[var(--text-error)]'>{formErrors.levelFilter}</p>
780780
)}
781781
</div>
782782

@@ -822,7 +822,7 @@ export function NotificationSettings({
822822
allOptionLabel='All triggers'
823823
/>
824824
{formErrors.triggerFilter && (
825-
<p className='text-[11px] text-[var(--text-error)]'>{formErrors.triggerFilter}</p>
825+
<p className='text-[12px] text-[var(--text-error)]'>{formErrors.triggerFilter}</p>
826826
)}
827827
</div>
828828

@@ -938,7 +938,7 @@ export function NotificationSettings({
938938
}
939939
/>
940940
{formErrors.consecutiveFailures && (
941-
<p className='text-[11px] text-[var(--text-error)]'>
941+
<p className='text-[12px] text-[var(--text-error)]'>
942942
{formErrors.consecutiveFailures}
943943
</p>
944944
)}
@@ -962,7 +962,7 @@ export function NotificationSettings({
962962
}
963963
/>
964964
{formErrors.failureRatePercent && (
965-
<p className='text-[11px] text-[var(--text-error)]'>
965+
<p className='text-[12px] text-[var(--text-error)]'>
966966
{formErrors.failureRatePercent}
967967
</p>
968968
)}
@@ -982,7 +982,7 @@ export function NotificationSettings({
982982
}
983983
/>
984984
{formErrors.windowHours && (
985-
<p className='text-[11px] text-[var(--text-error)]'>{formErrors.windowHours}</p>
985+
<p className='text-[12px] text-[var(--text-error)]'>{formErrors.windowHours}</p>
986986
)}
987987
</div>
988988
</div>
@@ -1004,7 +1004,7 @@ export function NotificationSettings({
10041004
}
10051005
/>
10061006
{formErrors.durationThresholdMs && (
1007-
<p className='text-[11px] text-[var(--text-error)]'>
1007+
<p className='text-[12px] text-[var(--text-error)]'>
10081008
{formErrors.durationThresholdMs}
10091009
</p>
10101010
)}
@@ -1028,7 +1028,7 @@ export function NotificationSettings({
10281028
}
10291029
/>
10301030
{formErrors.latencySpikePercent && (
1031-
<p className='text-[11px] text-[var(--text-error)]'>
1031+
<p className='text-[12px] text-[var(--text-error)]'>
10321032
{formErrors.latencySpikePercent}
10331033
</p>
10341034
)}
@@ -1048,7 +1048,7 @@ export function NotificationSettings({
10481048
}
10491049
/>
10501050
{formErrors.windowHours && (
1051-
<p className='text-[11px] text-[var(--text-error)]'>{formErrors.windowHours}</p>
1051+
<p className='text-[12px] text-[var(--text-error)]'>{formErrors.windowHours}</p>
10521052
)}
10531053
</div>
10541054
</div>
@@ -1071,7 +1071,7 @@ export function NotificationSettings({
10711071
}
10721072
/>
10731073
{formErrors.costThresholdDollars && (
1074-
<p className='text-[11px] text-[var(--text-error)]'>
1074+
<p className='text-[12px] text-[var(--text-error)]'>
10751075
{formErrors.costThresholdDollars}
10761076
</p>
10771077
)}
@@ -1094,7 +1094,7 @@ export function NotificationSettings({
10941094
}
10951095
/>
10961096
{formErrors.inactivityHours && (
1097-
<p className='text-[11px] text-[var(--text-error)]'>{formErrors.inactivityHours}</p>
1097+
<p className='text-[12px] text-[var(--text-error)]'>{formErrors.inactivityHours}</p>
10981098
)}
10991099
</div>
11001100
)}
@@ -1116,7 +1116,7 @@ export function NotificationSettings({
11161116
}
11171117
/>
11181118
{formErrors.errorCountThreshold && (
1119-
<p className='text-[11px] text-[var(--text-error)]'>
1119+
<p className='text-[12px] text-[var(--text-error)]'>
11201120
{formErrors.errorCountThreshold}
11211121
</p>
11221122
)}
@@ -1136,7 +1136,7 @@ export function NotificationSettings({
11361136
}
11371137
/>
11381138
{formErrors.windowHours && (
1139-
<p className='text-[11px] text-[var(--text-error)]'>{formErrors.windowHours}</p>
1139+
<p className='text-[12px] text-[var(--text-error)]'>{formErrors.windowHours}</p>
11401140
)}
11411141
</div>
11421142
</div>

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat/chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ export function Chat() {
995995
<div className='flex items-start gap-2'>
996996
<AlertCircle className='mt-0.5 h-3 w-3 shrink-0 text-[var(--text-error)]' />
997997
<div className='flex-1'>
998-
<div className='mb-1 font-medium text-[11px] text-[var(--text-error)]'>
998+
<div className='mb-1 font-medium text-[12px] text-[var(--text-error)]'>
999999
File upload error
10001000
</div>
10011001
<div className='space-y-1'>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ function IdentifierInput({
557557
)}
558558
</div>
559559
</div>
560-
{error && <p className='mt-[6.5px] text-[11px] text-[var(--text-error)]'>{error}</p>}
560+
{error && <p className='mt-[6.5px] text-[12px] text-[var(--text-error)]'>{error}</p>}
561561
<p className='mt-[6.5px] truncate text-[11px] text-[var(--text-secondary)]'>
562562
{isEditingExisting && value ? (
563563
<>
@@ -777,7 +777,7 @@ function AuthSelector({
777777
disabled={disabled}
778778
/>
779779
{emailError && (
780-
<p className='mt-[6.5px] text-[11px] text-[var(--text-error)]'>{emailError}</p>
780+
<p className='mt-[6.5px] text-[12px] text-[var(--text-error)]'>{emailError}</p>
781781
)}
782782
<p className='mt-[6.5px] text-[11px] text-[var(--text-secondary)]'>
783783
{authType === 'email'
@@ -787,7 +787,7 @@ function AuthSelector({
787787
</div>
788788
)}
789789

790-
{error && <p className='mt-[6.5px] text-[11px] text-[var(--text-error)]'>{error}</p>}
790+
{error && <p className='mt-[6.5px] text-[12px] text-[var(--text-error)]'>{error}</p>}
791791
</div>
792792
)
793793
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export function FormBuilder({
216216
)}
217217
</div>
218218
{titleError && (
219-
<p className='mt-[4px] text-[11px] text-[var(--text-error)]'>{titleError}</p>
219+
<p className='mt-[4px] text-[12px] text-[var(--text-error)]'>{titleError}</p>
220220
)}
221221
<div className='mt-[4px] flex items-center gap-[6px]'>
222222
<input

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ export function FormDeploy({
399399
</div>
400400
</div>
401401
{(identifierError || errors.identifier) && (
402-
<p className='mt-[6.5px] text-[11px] text-[var(--text-error)]'>
402+
<p className='mt-[6.5px] text-[12px] text-[var(--text-error)]'>
403403
{identifierError || errors.identifier}
404404
</p>
405405
)}
@@ -483,7 +483,7 @@ export function FormDeploy({
483483
</button>
484484
</div>
485485
{errors.password && (
486-
<p className='mt-[6.5px] text-[11px] text-[var(--text-error)]'>{errors.password}</p>
486+
<p className='mt-[6.5px] text-[12px] text-[var(--text-error)]'>{errors.password}</p>
487487
)}
488488
<p className='mt-[6.5px] text-[11px] text-[var(--text-secondary)]'>
489489
{existingForm?.hasPassword
@@ -520,7 +520,7 @@ export function FormDeploy({
520520
placeholderWithTags='Add another'
521521
/>
522522
{errors.emails && (
523-
<p className='mt-[6.5px] text-[11px] text-[var(--text-error)]'>{errors.emails}</p>
523+
<p className='mt-[6.5px] text-[12px] text-[var(--text-error)]'>{errors.emails}</p>
524524
)}
525525
<p className='mt-[6.5px] text-[11px] text-[var(--text-secondary)]'>
526526
Add specific emails or entire domains (@example.com)
@@ -551,7 +551,7 @@ export function FormDeploy({
551551
)}
552552

553553
{errors.general && (
554-
<p className='mt-[6.5px] text-[11px] text-[var(--text-error)]'>{errors.general}</p>
554+
<p className='mt-[6.5px] text-[12px] text-[var(--text-error)]'>{errors.general}</p>
555555
)}
556556

557557
<button type='button' data-delete-trigger onClick={handleDelete} className='hidden' />

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/byok/byok.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export function BYOK() {
276276
</Button>
277277
</div>
278278
{error && (
279-
<p className='text-[11px] text-[var(--text-error)] leading-tight'>{error}</p>
279+
<p className='text-[12px] text-[var(--text-error)] leading-tight'>{error}</p>
280280
)}
281281
</div>
282282
</ModalBody>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/copilot/copilot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export function Copilot() {
234234
autoFocus
235235
/>
236236
{createError && (
237-
<p className='text-[11px] text-[var(--text-error)] leading-tight'>{createError}</p>
237+
<p className='text-[12px] text-[var(--text-error)] leading-tight'>{createError}</p>
238238
)}
239239
</div>
240240
</ModalBody>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/team-management/components/member-invitation-card/member-invitation-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export function MemberInvitationCard({
183183
aria-autocomplete='none'
184184
/>
185185
{emailError && (
186-
<p className='mt-1 text-[11px] text-[var(--text-error)] leading-tight'>
186+
<p className='mt-1 text-[12px] text-[var(--text-error)] leading-tight'>
187187
{emailError}
188188
</p>
189189
)}
@@ -295,7 +295,7 @@ export function MemberInvitationCard({
295295

296296
{/* Invitation error - inline */}
297297
{invitationError && (
298-
<p className='text-[11px] text-[var(--text-error)] leading-tight'>
298+
<p className='text-[12px] text-[var(--text-error)] leading-tight'>
299299
{invitationError instanceof Error && invitationError.message
300300
? invitationError.message
301301
: String(invitationError)}

0 commit comments

Comments
 (0)