Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: change input type to password for ApiKey and WriteSecretModal components (#7157)

Myles Scolnick63239e3ca118
diff --git a/frontend/src/components/app-config/ai-config.tsx b/frontend/src/components/app-config/ai-config.tsx
index 7e7fc71b7f..425cc87980 100644
--- a/frontend/src/components/app-config/ai-config.tsx
+++ b/frontend/src/components/app-config/ai-config.tsx
@@ -133,6 +133,7 @@ export const ApiKey: React.FC<ApiKeyProps> = ({
rootClassName="flex-1"
className="m-0 inline-flex h-7"
placeholder={placeholder}
+ type="password"
{...field}
value={asStringOrUndefined(field.value)}
onChange={(e) => {
diff --git a/frontend/src/components/editor/chrome/panels/write-secret-modal.tsx b/frontend/src/components/editor/chrome/panels/write-secret-modal.tsx
index 2df6dfaf91..719a2888d4 100644
--- a/frontend/src/components/editor/chrome/panels/write-secret-modal.tsx
+++ b/frontend/src/components/editor/chrome/panels/write-secret-modal.tsx
@@ -121,7 +121,7 @@ export const WriteSecretModal: React.FC<{
<Label htmlFor="value">Value</Label>
<Input
id="value"
- type="text"
+ type="password"
value={value}
onChange={(e) => setValue(e.target.value)}
required={true}