mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix(text-fields): prevent save password on usage limit change (#667)
* prevent save password on usage limit change * prevent more password managers from appearing
This commit is contained in:
@@ -430,6 +430,9 @@ export function CreateModal({ open, onOpenChange, onKnowledgeBaseCreated }: Crea
|
||||
placeholder='100'
|
||||
{...register('minChunkSize', { valueAsNumber: true })}
|
||||
className={errors.minChunkSize ? 'border-red-500' : ''}
|
||||
autoComplete='off'
|
||||
data-form-type='other'
|
||||
name='min-chunk-size'
|
||||
/>
|
||||
{errors.minChunkSize && (
|
||||
<p className='mt-1 text-red-500 text-xs'>{errors.minChunkSize.message}</p>
|
||||
@@ -444,6 +447,9 @@ export function CreateModal({ open, onOpenChange, onKnowledgeBaseCreated }: Crea
|
||||
placeholder='1024'
|
||||
{...register('maxChunkSize', { valueAsNumber: true })}
|
||||
className={errors.maxChunkSize ? 'border-red-500' : ''}
|
||||
autoComplete='off'
|
||||
data-form-type='other'
|
||||
name='max-chunk-size'
|
||||
/>
|
||||
{errors.maxChunkSize && (
|
||||
<p className='mt-1 text-red-500 text-xs'>{errors.maxChunkSize.message}</p>
|
||||
@@ -460,6 +466,9 @@ export function CreateModal({ open, onOpenChange, onKnowledgeBaseCreated }: Crea
|
||||
placeholder='200'
|
||||
{...register('overlapSize', { valueAsNumber: true })}
|
||||
className={errors.overlapSize ? 'border-red-500' : ''}
|
||||
autoComplete='off'
|
||||
data-form-type='other'
|
||||
name='overlap-size'
|
||||
/>
|
||||
{errors.overlapSize && (
|
||||
<p className='mt-1 text-red-500 text-xs'>{errors.overlapSize.message}</p>
|
||||
|
||||
@@ -192,6 +192,9 @@ export function EvalInput({
|
||||
onBlur={(e) => handleRangeBlur(metric.id, 'min', e.target.value)}
|
||||
disabled={isPreview || disabled}
|
||||
className='placeholder:text-muted-foreground/50'
|
||||
autoComplete='off'
|
||||
data-form-type='other'
|
||||
name='eval-range-min'
|
||||
/>
|
||||
</div>
|
||||
<div className='space-y-1'>
|
||||
@@ -203,6 +206,9 @@ export function EvalInput({
|
||||
onBlur={(e) => handleRangeBlur(metric.id, 'max', e.target.value)}
|
||||
disabled={isPreview || disabled}
|
||||
className='placeholder:text-muted-foreground/50'
|
||||
autoComplete='off'
|
||||
data-form-type='other'
|
||||
name='eval-range-max'
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -436,6 +436,9 @@ export function ScheduleModal({
|
||||
type='number'
|
||||
min='1'
|
||||
className='h-10'
|
||||
autoComplete='off'
|
||||
data-form-type='other'
|
||||
name='minutes-interval'
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
@@ -455,6 +458,9 @@ export function ScheduleModal({
|
||||
min='0'
|
||||
max='59'
|
||||
className='h-10'
|
||||
autoComplete='off'
|
||||
data-form-type='other'
|
||||
name='hourly-minute'
|
||||
/>
|
||||
<p className='text-muted-foreground text-xs'>
|
||||
Specify which minute of each hour the workflow should run (0-59)
|
||||
@@ -530,6 +536,9 @@ export function ScheduleModal({
|
||||
min='1'
|
||||
max='31'
|
||||
className='h-10'
|
||||
autoComplete='off'
|
||||
data-form-type='other'
|
||||
name='monthly-day'
|
||||
/>
|
||||
<p className='text-muted-foreground text-xs'>
|
||||
Specify which day of the month the workflow should run (1-31)
|
||||
|
||||
@@ -166,6 +166,9 @@ export function EditMemberLimitDialog({
|
||||
max={10000}
|
||||
step='1'
|
||||
placeholder={planMinimum.toString()}
|
||||
autoComplete='off'
|
||||
data-form-type='other'
|
||||
name='member-usage-limit'
|
||||
/>
|
||||
</div>
|
||||
<p className='text-muted-foreground text-xs'>
|
||||
|
||||
@@ -79,6 +79,9 @@ export function UsageLimitEditor({
|
||||
min={minimumLimit}
|
||||
step='1'
|
||||
disabled={isSaving}
|
||||
autoComplete='off'
|
||||
data-form-type='other'
|
||||
name='usage-limit'
|
||||
/>
|
||||
) : (
|
||||
<span className='font-medium text-sm'>{currentLimit}</span>
|
||||
|
||||
Reference in New Issue
Block a user