diff --git a/plugins/template-function-1password/src/index.ts b/plugins/template-function-1password/src/index.ts index dd495d8f..af920185 100644 --- a/plugins/template-function-1password/src/index.ts +++ b/plugins/template-function-1password/src/index.ts @@ -33,9 +33,10 @@ export const plugin: PluginDefinition = { name: 'token', type: 'text', label: '1Password Service Account Token', - description: '', + description: + 'Token can be generated from the 1Password website by visiting Developer > Service Accounts', // biome-ignore lint/suspicious/noTemplateCurlyInString: Yaak template syntax - defaultValue: '${[ONEPASSWORD_TOKEN]}', + defaultValue: '${[1PASSWORD_TOKEN]}', password: true, }, { diff --git a/src-web/commands/commands.tsx b/src-web/commands/commands.tsx index 979a9ba4..53eea3c3 100644 --- a/src-web/commands/commands.tsx +++ b/src-web/commands/commands.tsx @@ -1,6 +1,7 @@ import { createWorkspaceModel, type Folder, modelTypeLabel } from '@yaakapp-internal/models'; import { applySync, calculateSync } from '@yaakapp-internal/sync'; import { Banner } from '../components/core/Banner'; +import { Button } from '../components/core/Button'; import { InlineCode } from '../components/core/InlineCode'; import { Table, @@ -13,7 +14,7 @@ import { } from '../components/core/Table'; import { activeWorkspaceIdAtom } from '../hooks/useActiveWorkspace'; import { createFastMutation } from '../hooks/useFastMutation'; -import { showConfirm } from '../lib/confirm'; +import { showDialog } from '../lib/dialog'; import { jotaiStore } from '../lib/jotai'; import { pluralizeCount } from '../lib/pluralize'; import { showPrompt } from '../lib/prompt'; @@ -78,81 +79,92 @@ export const syncWorkspace = createFastMutation< console.log('Directory changes detected', { dbOps, ops }); - const confirmed = force - ? true - : await showConfirm({ - id: 'commit-sync', - title: 'Changes Detected', - size: 'md', - confirmText: 'Apply Changes', - color: isDeletingWorkspace ? 'danger' : 'primary', - description: ( -
- {pluralizeCount('file', dbOps.length)} in the directory{' '} - {dbOps.length === 1 ? 'has' : 'have'} changed. Do you want to update your workspace? -
-