10000 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
Merged
Prev Previous commit
Next Next commit
lil
  • Loading branch information
aslilac committed Jun 26, 2025
commit 0237854bd7820a0a54d38d2863406be9c33f39d0
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export const MaskedInput: Story = {
form_type: "input",
styling: {
...MockPreviewParameter.styling,
placeholder: "Tell me a secret",
mask_input: true,
},
},
Expand All @@ -254,16 +255,3 @@ export const MaskedTextArea: Story = {
},
},
};

export const MaskedInputWithPlaceholder: Story = {
args: {
parameter: {
...MockPreviewParameter,
form_type: "input",
styling: {
placeholder: "Enter your secret value",
mask_input: true,
},
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ const DebouncedParameterField: FC<DebouncedParameterFieldProps> = ({

// Helper function to mask all characters with *
const maskValue = (val: string): string => {
return "*".repeat(val.length);
return "\u2022".repeat(val.length);
};
const debouncedLocalValue = useDebouncedValue(localValue, 500);
const onChangeEvent = useEffectEvent(onChange);
Expand Down
Loading
0