@shipfox/client-secrets 22.0.0 → 22.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shipfox/client-secrets",
3
3
  "license": "MIT",
4
- "version": "22.0.0",
4
+ "version": "22.0.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShipfoxHQ/shipfox.git",
@@ -29,7 +29,7 @@
29
29
  "@tanstack/react-form": "^1.32.0",
30
30
  "@shipfox/api-secrets-dto": "12.0.0",
31
31
  "@shipfox/client-api": "6.0.1",
32
- "@shipfox/client-shell": "22.0.0",
32
+ "@shipfox/client-shell": "22.0.1",
33
33
  "@shipfox/client-ui": "22.0.0",
34
34
  "@shipfox/react-ui": "2.1.0"
35
35
  },
@@ -29,10 +29,9 @@ import {secretsErrorToFormError} from './form-errors.js';
29
29
  import {SecretForm} from './secret-form.js';
30
30
  import {StoreRowsSkeleton} from './store-section-shell.js';
31
31
 
32
- const SECRETS_DESCRIPTION =
33
- 'Encrypted, write-only values for sensitive data like API keys, tokens, and passwords.';
34
32
  const EMPTY_SECRETS_DESCRIPTION =
35
33
  'Create a secret to store sensitive values like API keys, tokens, and passwords.';
34
+ const SECRETS_SECURITY_NOTE = 'Encrypted, write-only values for sensitive data.';
36
35
 
37
36
  type FormState = {mode: 'create'} | {mode: 'edit'; key: string} | null;
38
37
 
@@ -58,9 +57,9 @@ export function WorkspaceSecretsSection({workspaceId}: {workspaceId: string}) {
58
57
  <section className="flex flex-col gap-group" aria-label="Secrets">
59
58
  <div className="flex items-start justify-between gap-group">
60
59
  <div className="flex flex-col gap-tight">
61
- <Header variant="h3">Secrets</Header>
60
+ <Header variant="h1">Secrets</Header>
62
61
  <Text size="sm" className="text-foreground-neutral-muted">
63
- {SECRETS_DESCRIPTION}
62
+ {SECRETS_SECURITY_NOTE}
64
63
  </Text>
65
64
  </div>
66
65
  <Button size="sm" onClick={() => setFormState({mode: 'create'})}>
@@ -19,7 +19,7 @@ import {
19
19
  TableRow,
20
20
  } from '@shipfox/react-ui/table';
21
21
  import {toast} from '@shipfox/react-ui/toast';
22
- import {Code, Header, Text} from '@shipfox/react-ui/typography';
22
+ import {Code, Header} from '@shipfox/react-ui/typography';
23
23
  import {useMemo, useState} from 'react';
24
24
  import {type VariablePreview, workspaceStoreScope} from '#core/store.js';
25
25
  import {useDeleteVariableMutation, useVariablesQuery} from '#hooks/api/variables.js';
@@ -29,8 +29,6 @@ import {secretsErrorToFormError} from './form-errors.js';
29
29
  import {StoreRowsSkeleton} from './store-section-shell.js';
30
30
  import {VariableForm} from './variable-form.js';
31
31
 
32
- const VARIABLES_DESCRIPTION =
33
- 'Plaintext configuration values for non-sensitive data like regions, flags, and log levels.';
34
32
  const EMPTY_VARIABLES_DESCRIPTION =
35
33
  'Create a variable to store non-sensitive configuration like regions, flags, and log levels.';
36
34
 
@@ -58,10 +56,7 @@ export function WorkspaceVariablesSection({workspaceId}: {workspaceId: string})
58
56
  <section className="flex flex-col gap-group" aria-label="Variables">
59
57
  <div className="flex items-start justify-between gap-group">
60
58
  <div className="flex flex-col gap-tight">
61
- <Header variant="h3">Variables</Header>
62
- <Text size="sm" className="text-foreground-neutral-muted">
63
- {VARIABLES_DESCRIPTION}
64
- </Text>
59
+ <Header variant="h1">Variables</Header>
65
60
  </div>
66
61
  <Button size="sm" onClick={() => setFormState({mode: 'create'})}>
67
62
  Create variable