8000 feat: allow masking workspace parameter inputs by aslilac · Pull Request #18595 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: allow masking workspace parameter inputs #18595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jul 1, 2025
Prev Previous commit
:|
  • Loading branch information
aslilac committed Jul 1, 2025
commit 8412c8d3e487b1690e77336b016e2b136adf7f99
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const DynamicParameter: FC<DynamicParameterProps> = ({
/>
<div className="max-w-lg">
{parameter.form_type === "input" ||
parameter.form_type === "textarea" ? (
parameter.form_type === "textarea" ? (
<DebouncedParameterField
id={id}
parameter={parameter}
Expand Down Expand Up @@ -322,8 +322,8 @@ const DebouncedParameterField: FC<DebouncedParameterFieldProps> = ({
className={cn(
"overflow-y-auto max-h-[500px]",
parameter.styling?.mask_input &&
!showMaskedInput &&
"[-webkit-text-security:disc]",
!showMaskedInput &&
"[-webkit-text-security:disc]",
)}
value={localValue}
onChange={(e) => {
Expand Down Expand Up @@ -691,10 +691,11 @@ const ParameterDiagnostics: FC<ParameterDiagnosticsProps> = ({
return (
<div
key={`parameter-diagnostic-${diagnostic.summary}-${index}`}
className={`text-xs px-1 ${diagnostic.severity === "error"
? "text-content-destructive"
: "text-content-warning"
}`}
className={`text-xs px-1 ${
diagnostic.severity === "error"
? "text-content-destructive"
: "text-content-warning"
}`}
>
<p className="font-medium">{diagnostic.summary}</p>
{diagnostic.detail && <p className="m-0">{diagnostic.detail}</p>}
Expand Down
Loading
0