feat: limit comment field to 256 characters for environment variables

This commit is contained in:
Andras Bacsai committed 2025-12-27 15:24:09 +01:00
1 parent e33558488e
commit 201c9fada3
4 files changed
+38 -9

No files matched your search

@@ -121,6 +121,7 @@
<x-forms.input disabled type="password" id="real_value" />
@endif
</div>
<x-forms.input disabled id="comment" label="Comment (Optional)" helper="Add a note to document what this environment variable is used for." maxlength="256" />
</div>
@else
<div class="flex flex-col w-full gap-2">
@@ -136,7 +137,7 @@
<x-forms.input :disabled="$is_redis_credential" :required="$is_redis_credential" disabled type="password" id="real_value" />
@endif
</div>
<x-forms.input instantSave id="comment" label="Comment (Optional)" helper="Add a note to document what this environment variable is used for." />
<x-forms.input instantSave id="comment" label="Comment (Optional)" helper="Add a note to document what this environment variable is used for." maxlength="256" />
</div>
@endif
@else
@@ -148,9 +149,7 @@
<x-forms.input disabled type="password" id="real_value" />
@endif
</div>
@if (!$isDisabled)
<x-forms.input disabled id="comment" label="Comment (Optional)" helper="Add a note to document what this environment variable is used for." />
@endif
<x-forms.input disabled id="comment" label="Comment (Optional)" helper="Add a note to document what this environment variable is used for." maxlength="256" />
</div>
@endcan
@can('update', $this->env)