Skip to content

Commit b2ebadd

Browse files
committed
remove redundant placeholders from snowflake form
1 parent 3adb3ad commit b2ebadd

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
lines changed

src/messageTypes.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,18 +216,15 @@ export type LocalizedMessages = {
216216
integrationsSnowflakeAuthMethodKeyPair: string;
217217
integrationsSnowflakeUnsupportedAuthMethod: string;
218218
integrationsSnowflakeUsernameLabel: string;
219-
integrationsSnowflakeUsernamePlaceholder: string;
220219
integrationsSnowflakePasswordLabel: string;
221220
integrationsSnowflakePasswordPlaceholder: string;
222221
integrationsSnowflakeServiceAccountUsernameLabel: string;
223222
integrationsSnowflakeServiceAccountUsernameHelp: string;
224-
integrationsSnowflakeServiceAccountUsernamePlaceholder: string;
225223
integrationsSnowflakePrivateKeyLabel: string;
226224
integrationsSnowflakePrivateKeyHelp: string;
227225
integrationsSnowflakePrivateKeyPlaceholder: string;
228226
integrationsSnowflakePrivateKeyPassphraseLabel: string;
229227
integrationsSnowflakePrivateKeyPassphraseHelp: string;
230-
integrationsSnowflakePrivateKeyPassphrasePlaceholder: string;
231228
integrationsSnowflakeDatabaseLabel: string;
232229
integrationsSnowflakeDatabasePlaceholder: string;
233230
integrationsSnowflakeRoleLabel: string;

src/notebooks/deepnote/integrations/integrationWebview.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,21 +166,16 @@ export class IntegrationWebviewProvider implements IIntegrationWebviewProvider {
166166
integrationsSnowflakeAuthMethodKeyPair: localize.Integrations.snowflakeAuthMethodKeyPair,
167167
integrationsSnowflakeUnsupportedAuthMethod: localize.Integrations.snowflakeUnsupportedAuthMethod,
168168
integrationsSnowflakeUsernameLabel: localize.Integrations.snowflakeUsernameLabel,
169-
integrationsSnowflakeUsernamePlaceholder: localize.Integrations.snowflakeUsernamePlaceholder,
170169
integrationsSnowflakePasswordLabel: localize.Integrations.snowflakePasswordLabel,
171170
integrationsSnowflakePasswordPlaceholder: localize.Integrations.snowflakePasswordPlaceholder,
172171
integrationsSnowflakeServiceAccountUsernameLabel:
173172
localize.Integrations.snowflakeServiceAccountUsernameLabel,
174173
integrationsSnowflakeServiceAccountUsernameHelp: localize.Integrations.snowflakeServiceAccountUsernameHelp,
175-
integrationsSnowflakeServiceAccountUsernamePlaceholder:
176-
localize.Integrations.snowflakeServiceAccountUsernamePlaceholder,
177174
integrationsSnowflakePrivateKeyLabel: localize.Integrations.snowflakePrivateKeyLabel,
178175
integrationsSnowflakePrivateKeyHelp: localize.Integrations.snowflakePrivateKeyHelp,
179176
integrationsSnowflakePrivateKeyPlaceholder: localize.Integrations.snowflakePrivateKeyPlaceholder,
180177
integrationsSnowflakePrivateKeyPassphraseLabel: localize.Integrations.snowflakePrivateKeyPassphraseLabel,
181178
integrationsSnowflakePrivateKeyPassphraseHelp: localize.Integrations.snowflakePrivateKeyPassphraseHelp,
182-
integrationsSnowflakePrivateKeyPassphrasePlaceholder:
183-
localize.Integrations.snowflakePrivateKeyPassphrasePlaceholder,
184179
integrationsSnowflakeDatabaseLabel: localize.Integrations.snowflakeDatabaseLabel,
185180
integrationsSnowflakeDatabasePlaceholder: localize.Integrations.snowflakeDatabasePlaceholder,
186181
integrationsSnowflakeRoleLabel: localize.Integrations.snowflakeRoleLabel,

src/platform/common/utils/localize.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -878,12 +878,11 @@ export namespace Integrations {
878878
export const snowflakeUsernameLabel = l10n.t('Username');
879879
export const snowflakeUsernamePlaceholder = l10n.t('user');
880880
export const snowflakePasswordLabel = l10n.t('Password');
881-
export const snowflakePasswordPlaceholder = l10n.t('•••••');
881+
export const snowflakePasswordPlaceholder = l10n.t('••••••••');
882882
export const snowflakeServiceAccountUsernameLabel = l10n.t('Service Account Username');
883883
export const snowflakeServiceAccountUsernameHelp = l10n.t(
884884
'The username of the service account that will be used to connect to Snowflake'
885885
);
886-
export const snowflakeServiceAccountUsernamePlaceholder = l10n.t('');
887886
export const snowflakePrivateKeyLabel = l10n.t('Private Key');
888887
export const snowflakePrivateKeyHelp = l10n.t(
889888
'The private key in PEM format. Make sure to include the entire key, including BEGIN and END markers.'
@@ -893,7 +892,7 @@ export namespace Integrations {
893892
export const snowflakePrivateKeyPassphraseHelp = l10n.t(
894893
'If the private key is encrypted, provide the passphrase to decrypt it.'
895894
);
896-
export const snowflakePrivateKeyPassphrasePlaceholder = l10n.t('Private key passphrase (optional)');
895+
export const snowflakePrivateKeyPassphrasePlaceholder = l10n.t('');
897896
export const snowflakeDatabaseLabel = l10n.t('Database (optional)');
898897
export const snowflakeDatabasePlaceholder = l10n.t('');
899898
export const snowflakeRoleLabel = l10n.t('Role (optional)');

src/webviews/webview-side/integrations/SnowflakeForm.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
172172
id="name"
173173
value={name}
174174
onChange={(e) => setName(e.target.value)}
175-
placeholder={getLocString('integrationsSnowflakeNamePlaceholder', '[Demo] Snowflake')}
175+
placeholder={getLocString('integrationsSnowflakeNamePlaceholder', '')}
176176
autoComplete="off"
177177
disabled={isUnsupported}
178178
/>
@@ -228,7 +228,6 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
228228
id="username"
229229
value={username}
230230
onChange={(e) => setUsername(e.target.value)}
231-
placeholder={getLocString('integrationsSnowflakeUsernamePlaceholder', '')}
232231
autoComplete="username"
233232
required
234233
pattern=".*\S.*"
@@ -245,7 +244,7 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
245244
id="password"
246245
value={password}
247246
onChange={(e) => setPassword(e.target.value)}
248-
placeholder={getLocString('integrationsSnowflakePasswordPlaceholder', '•••••')}
247+
placeholder={getLocString('integrationsSnowflakePasswordPlaceholder', '••••••••')}
249248
autoComplete="current-password"
250249
required
251250
pattern=".*\S.*"
@@ -273,7 +272,6 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
273272
id="username"
274273
value={username}
275274
onChange={(e) => setUsername(e.target.value)}
276-
placeholder={getLocString('integrationsSnowflakeServiceAccountUsernamePlaceholder', '')}
277275
autoComplete="username"
278276
required
279277
pattern=".*\S.*"
@@ -328,10 +326,6 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
328326
id="privateKeyPassphrase"
329327
value={privateKeyPassphrase}
330328
onChange={(e) => setPrivateKeyPassphrase(e.target.value)}
331-
placeholder={getLocString(
332-
'integrationsSnowflakePrivateKeyPassphrasePlaceholder',
333-
'Private key passphrase (optional)'
334-
)}
335329
autoComplete="off"
336330
aria-describedby="privateKeyPassphrase-help"
337331
/>

0 commit comments

Comments
 (0)