Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

feat(notes): add Actions sidebar button and redesign action editor dialog

Gabriel Steind0159df179e2
diff --git a/src/components/notes/ActionManagerDialog.tsx b/src/components/notes/ActionManagerDialog.tsx
index 65bbe7feb..5f1fc98cd 100644
--- a/src/components/notes/ActionManagerDialog.tsx
+++ b/src/components/notes/ActionManagerDialog.tsx
@@ -1,16 +1,11 @@
-import { useState, useEffect } from "react";
+import { useState, useEffect, useRef } from "react";
import { useTranslation } from "react-i18next";
-import { Sparkles, Pencil, Trash2, Loader2 } from "lucide-react";
-import { Dialog, DialogContent, DialogHeader, DialogTitle } from "../ui/dialog";
+import { Sparkles, Trash2, Loader2, Plus, Zap } from "lucide-react";
+import { Dialog, DialogContent, DialogTitle } from "../ui/dialog";
import { Button } from "../ui/button";
import { Input } from "../ui/input";
import { cn } from "../lib/utils";
-import {
- useActions,
- initializeActions,
- getActionName,
- getActionDescription,
-} from "../../stores/actionStore";
+import { useActions, initializeActions, getActionName } from "../../stores/actionStore";
import type { ActionItem } from "../../types/electron";
interface ActionManagerDialogProps {
@@ -25,16 +20,33 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManage
const [description, setDescription] = useState("");
const [prompt, setPrompt] = useState("");
const [editingId, setEditingId] = useState<number | null>(null);
+ const [selectedId, setSelectedId] = useState<number | null>(null);
const [isSaving, setIsSaving] = useState(false);
+ const [isCreating, setIsCreating] = useState(false);
+ const nameInputRef = useRef<HTMLInputElement>(null);
useEffect(() => {
if (open) {
initializeActions();
- } else {
+ setIsCreating(false);
+ setEditingId(null);
+ setSelectedId(null);
resetForm();
}
}, [open]);
+ // Auto-select the first action when actions load and nothing is selected
+ useEffect(() => {
+ if (open && actions.length > 0 && selectedId === null && !isCreating) {
+ const first = actions[0];
+ setSelectedId(first.id);
+ setEditingId(first.id);
+ setName(first.name);
+ setDescription(first.description);
+ setPrompt(first.prompt);
+ }
+ }, [open, actions, selectedId, isCreating]);
+
const resetForm = () => {
setName("");
setDescription("");
@@ -42,16 +54,30 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManage
setEditingId(null);
};
- const handleEdit = (action: ActionItem) => {
+ const handleSelectAction = (action: ActionItem) => {
+ setSelectedId(action.id);
+ setEditingId(action.id);
setName(action.name);
setDescription(action.description);
setPrompt(action.prompt);
- setEditingId(action.id);
+ setIsCreating(false);
+ };
+
+ const handleNewAction = () => {
+ resetForm();
+ setSelectedId(null);
+ setIsCreating(true);
+ // Focus name input after state update
+ setTimeout(() => nameInputRef.current?.focus(), 50);
};
const handleDelete = async (id: number) => {
await window.electronAPI.deleteAction(id);
- if (editingId === id) resetForm();
+ if (selectedId === id) {
+ setSelectedId(null);
+ setIsCreating(false);
+ resetForm();
+ }
};
const handleSave = async () => {
@@ -66,144 +92,245 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManage
});
} else {
await window.electronAPI.createAction(name.trim(), description.trim(), prompt.trim());
+ setIsCreating(false);
}
- resetForm();
} finally {
setIsSaving(false);
}
};
+ const showEditor = isCreating || selectedId !== null;
+ const selectedAction = actions.find((a) => a.id === selectedId);
+ const hasUnsavedChanges = isCreating
+ ? name.trim() !== "" || prompt.trim() !== ""
+ : selectedAction
+ ? name !== selectedAction.name ||
+ description !== selectedAction.description ||
+ prompt !== selectedAction.prompt
+ : false;
+
return (
<Dialog open={open} onOpenChange={onOpenChange}>
- <DialogContent className="sm:max-w-lg">
- <DialogHeader>
- <DialogTitle className="flex items-center gap-2">
- <Sparkles size={14} className="text-accent" />
- {t("notes.actions.manageTitle")}
- </DialogTitle>
- </DialogHeader>
-
- <div className="space-y-3">
- <p className="text-xs font-medium text-foreground/50">
- {editingId !== null ? t("notes.actions.editAction") : t("notes.actions.addAction")}
- </p>
- <Input
- value={name}
- onChange={(e) => setName(e.target.value)}
- placeholder={t("notes.actions.namePlaceholder")}
- disabled={isSaving}
- />
- <Input
- value={description}
- onChange={(e) => setDescription(e.target.value)}
- placeholder={t("notes.actions.descriptionPlaceholder")}
- disabled={isSaving}
- />
- <textarea
- value={prompt}
- onChange={(e) => setPrompt(e.target.value)}
- placeholder={t("notes.actions.promptPlaceholder")}
- rows={3}
- disabled={isSaving}
- className={cn(
- "flex min-h-20 w-full rounded border border-border/70 bg-input px-3 py-2.5 text-sm text-foreground transition-colors duration-200 outline-none resize-y",
- "placeholder:text-muted-foreground/40",
- "hover:border-border-hover",
- "focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary/10",
- "dark:bg-surface-1 dark:border-border-subtle/50",
- "dark:focus-visible:border-border-active dark:focus-visible:ring-ring/10",
- "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-muted"
- )}
- />
- <div className="flex items-center justify-end gap-2">
- {editingId !== null && (
- <Button variant="ghost" size="sm" onClick={resetForm} disabled={isSaving}>
- {t("notes.actions.cancel")}
- </Button>
- )}
- <Button
- size="sm"
- onClick={handleSave}
- disabled={isSaving || !name.trim() || !prompt.trim()}
- >
- {isSaving ? (
- <Loader2 size={12} className="animate-spin" />
- ) : editingId !== null ? (
- t("notes.actions.update")
- ) : (
- t("notes.actions.save")
- )}
- </Button>
- </div>
- </div>
+ <DialogContent className="sm:max-w-3xl p-0 gap-0 overflow-hidden">
+ {/* Hidden accessible title */}
+ <DialogTitle className="sr-only">{t("notes.actions.manageTitle")}</DialogTitle>
- <div className="border-t border-border/20 dark:border-white/4 pt-2.5">
- {actions.length === 0 ? (
- <p className="text-xs text-muted-foreground/40 text-center py-4">
- {t("notes.actions.noActions")}
- </p>
- ) : (
- <div className="space-y-0.5 max-h-52 overflow-y-auto">
- {actions.map((action) => (
- <div
- key={action.id}
- className={cn(
- "flex items-center gap-2.5 px-2.5 py-2 rounded-md group",
- "hover:bg-foreground/3 dark:hover:bg-white/3",
- "transition-colors duration-150"
- )}
- >
- <Sparkles size={12} className="text-accent/40 shrink-0" />
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-1.5">
- <span className="text-xs font-medium truncate">
- {getActionName(action, t)}
- </span>
- {action.is_builtin === 1 && (
- <span className="text-xs font-medium px-1.5 py-0.5 rounded bg-foreground/5 dark:bg-white/6 text-muted-foreground/50 shrink-0">
- {t("notes.actions.builtIn")}
- </span>
- )}
- </div>
- {action.description && (
- <p className="text-xs text-muted-foreground/40 truncate">
- {getActionDescription(action, t)}
- </p>
- )}
- </div>
- <div className="flex items-center gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity duration-150 shrink-0">
- <button
- onClick={() => handleEdit(action)}
- aria-label={t("notes.actions.editAction")}
+ <div className="flex h-120">
+ {/* Left panel — action list */}
+ <div className="w-56 shrink-0 border-r border-border/15 dark:border-white/4 flex flex-col bg-card/50 dark:bg-surface-1/30">
+ {/* List header */}
+ <div className="flex items-center justify-between px-3 pt-3.5 pb-2">
+ <span className="text-xs font-semibold tracking-tight text-foreground/70">
+ {t("notes.actions.manageTitle")}
+ </span>
+ <button
+ onClick={handleNewAction}
+ className={cn(
+ "p-1 rounded-md",
+ "text-muted-foreground/50 hover:text-foreground/70",
+ "hover:bg-foreground/5 dark:hover:bg-white/6",
+ "active:bg-foreground/8 dark:active:bg-white/8",
+ "transition-colors duration-150"
+ )}
+ aria-label={t("notes.actions.addAction")}
+ >
+ <Plus size={13} />
+ </button>
+ </div>
+
+ {/* Action list */}
+ <div className="flex-1 overflow-y-auto px-1.5 pb-2">
+ {actions.length === 0 && !isCreating ? (
+ <div className="flex flex-col items-center justify-center h-full px-4 text-center">
+ <Zap size={20} className="text-muted-foreground/20 mb-2" />
+ <p className="text-xs text-muted-foreground/40 leading-relaxed">
+ {t("notes.actions.noActions")}
+ </p>
+ <button
+ onClick={handleNewAction}
+ className="text-xs text-accent/60 hover:text-accent/80 mt-2 transition-colors duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30 rounded"
+ >
+ {t("notes.actions.addAction")}
+ </button>
+ </div>
+ ) : (
+ <div className="space-y-0.5">
+ {actions.map((action) => (
+ <div
+ key={action.id}
+ onClick={() => handleSelectAction(action)}
className={cn(
- "p-1.5 rounded-md",
- "text-muted-foreground/40 hover:text-foreground/70",
- "hover:bg-foreground/5 dark:hover:bg-white/6",
- "active:bg-foreground/8 dark:active:bg-white/8",
- "transition-colors duration-150"
+ "flex items-center gap-2 w-full px-2.5 py-2 rounded-md text-left group cursor-pointer",
+ "transition-colors duration-150",
+ selectedId === action.id && !isCreating
+ ? "bg-accent/8 dark:bg-accent/10"
+ : "hover:bg-foreground/3 dark:hover:bg-white/3"
)}
>
- <Pencil size={11} />
- </button>
- {action.is_builtin !== 1 && (
- <button
- onClick={() => handleDelete(action.id)}
- aria-label={t("notes.context.delete")}
+ <Sparkles
+ size={12}
className={cn(
- "p-1.5 rounded-md",
- "text-muted-foreground/40 hover:text-destructive/70",
- "hover:bg-destructive/5 active:bg-destructive/8",
- "transition-colors duration-150"
+ "shrink-0 transition-colors duration-150",
+ selectedId === action.id && !isCreating
+ ? "text-accent/60"
+ : "text-muted-foreground/30"
)}
+ />
+ <div className="flex-1 min-w-0">
+ <div className="flex items-center gap-1.5">
+ <span
+ className={cn(
+ "text-xs font-medium truncate",
+ selectedId === action.id && !isCreating
+ ? "text-foreground"
+ : "text-foreground/70"
+ )}
+ >
+ {getActionName(action, t)}
+ </span>
+ {action.is_builtin === 1 && (
+ <span className="text-[10px] font-medium px-1 py-px rounded bg-foreground/5 dark:bg-white/6 text-muted-foreground/40 shrink-0">
+ {t("notes.actions.builtIn")}
+ </span>
+ )}
+ </div>
+ </div>
+ {action.is_builtin !== 1 && (
+ <button
+ onClick={(e) => {
+ e.stopPropagation();
+ handleDelete(action.id);
+ }}
+ aria-label={t("notes.context.delete")}
+ className={cn(
+ "p-1 rounded-md shrink-0",
+ "text-muted-foreground/0 group-hover:text-muted-foreground/30",
+ "hover:text-destructive/60! hover:bg-destructive/5",
+ "active:bg-destructive/8",
+ "transition-all duration-150"
+ )}
+ >
+ <Trash2 size={11} />
+ </button>
+ )}
+ </div>
+ ))}
+ </div>
+ )}
+ </div>
+ </div>
+
+ {/* Right panel — editor */}
+ <div className="flex-1 flex flex-col min-w-0">
+ {showEditor ? (
+ <>
+ {/* Editor header — pr-12 clears the dialog close X button */}
+ <div className="flex items-center justify-between pl-5 pr-12 pt-4 pb-3 border-b border-border/10 dark:border-white/3">
+ <span className="text-xs font-medium text-muted-foreground/50">
+ {isCreating ? t("notes.actions.addAction") : t("notes.actions.editAction")}
+ </span>
+ <div className="flex items-center gap-2">
+ {isCreating && (
+ <Button
+ variant="ghost"
+ size="sm"
+ onClick={() => {
+ setIsCreating(false);
+ resetForm();
+ // Re-select first action if available
+ if (actions.length > 0) handleSelectAction(actions[0]);
+ }}
+ disabled={isSaving}
+ className="h-7 text-xs"
>
- <Trash2 size={11} />
- </button>
+ {t("notes.actions.cancel")}
+ </Button>
)}
+ <Button
+ size="sm"
+ onClick={handleSave}
+ disabled={isSaving || !name.trim() || !prompt.trim() || !hasUnsavedChanges}
+ className="h-7 text-xs"
+ >
+ {isSaving ? (
+ <Loader2 size={12} className="animate-spin" />
+ ) : isCreating ? (
+ t("notes.actions.save")
+ ) : (
+ t("notes.actions.update")
+ )}
+ </Button>
</div>
</div>
- ))}
- </div>
- )}
+
+ {/* Editor form */}
+ <div className="flex-1 overflow-y-auto px-5 py-4 space-y-3">
+ <Input
+ ref={nameInputRef}
+ value={name}
+ onChange={(e) => setName(e.target.value)}
+ placeholder={t("notes.actions.namePlaceholder")}
+ disabled={isSaving}
+ className="h-9"
+ />
+ <Input
+ value={description}
+ onChange={(e) => setDescription(e.target.value)}
+ placeholder={t("notes.actions.descriptionPlaceholder")}
+ disabled={isSaving}
+ className="h-9"
+ />
+
+ {/* Prompt — the star of the show */}
+ <div className="flex flex-col flex-1 space-y-1.5 min-h-0">
+ <label className="text-xs font-medium text-foreground/50">
+ {t("notes.actions.promptLabel", { defaultValue: "Prompt" })}
+ </label>
+ <textarea
+ value={prompt}
+ onChange={(e) => setPrompt(e.target.value)}
+ placeholder={t("notes.actions.promptPlaceholder")}
+ disabled={isSaving}
+ className={cn(
+ "flex-1 min-h-50 w-full rounded border border-border/70 bg-input px-3.5 py-3 text-sm text-foreground leading-relaxed transition-colors duration-200 outline-none resize-none",
+ "placeholder:text-muted-foreground/40",
+ "hover:border-border-hover",
+ "focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary/10",
+ "dark:bg-surface-1 dark:border-border-subtle/50",
+ "dark:focus-visible:border-border-active dark:focus-visible:ring-ring/10",
+ "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-muted",
+ "font-mono text-[13px]"
+ )}
+ />
+ </div>
+ </div>
+ </>
+ ) : (
+ /* Empty state — no action selected */
+ <div className="flex-1 flex flex-col items-center justify-center text-center px-8">
+ <div className="w-10 h-10 rounded-xl bg-accent/5 dark:bg-accent/8 flex items-center justify-center mb-3">
+ <Sparkles size={18} className="text-accent/30" />
+ </div>
+ <p className="text-sm font-medium text-foreground/40 mb-1">
+ {t("notes.actions.emptyEditorTitle", { defaultValue: "Select an action" })}
+ </p>
+ <p className="text-xs text-muted-foreground/30 mb-4 max-w-52 leading-relaxed">
+ {t("notes.actions.emptyEditorDescription", {
+ defaultValue: "Choose an action from the list or create a new one",
+ })}
+ </p>
+ <Button
+ variant="outline-flat"
+ size="sm"
+ onClick={handleNewAction}
+ className="h-7 text-xs gap-1.5"
+ >
+ <Plus size={12} />
+ {t("notes.actions.addAction")}
+ </Button>
+ </div>
+ )}
+ </div>
</div>
</DialogContent>
</Dialog>
diff --git a/src/components/notes/PersonalNotesView.tsx b/src/components/notes/PersonalNotesView.tsx
index 11164bb0c..37c0deb5d 100644
--- a/src/components/notes/PersonalNotesView.tsx
+++ b/src/components/notes/PersonalNotesView.tsx
@@ -10,6 +10,7 @@ import {
Check,
SquarePen,
Search,
+ Sparkles,
} from "lucide-react";
import { Button } from "../ui/button";
import {
@@ -533,6 +534,18 @@ export default function PersonalNotesView({
{t("notes.sidebar.searchNotes")}
</button>
)}
+ <button
+ onClick={() => setShowActionManager(true)}
+ className={cn(
+ "flex items-center gap-2 w-full px-2 py-1.5 rounded-md text-xs",
+ "text-muted-foreground/80 hover:text-foreground hover:bg-foreground/5",
+ "transition-colors duration-150",
+ "focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30"
+ )}
+ >
+ <Sparkles size={14} className="shrink-0" />
+ {t("notes.sidebar.actions")}
+ </button>
</div>
{/* Folders */}
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index 8d4a32924..a42b338c7 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -1534,7 +1534,8 @@
"notes": {
"sidebar": {
"newNote": "Neue Notiz",
- "searchNotes": "Notizen suchen"
+ "searchNotes": "Notizen suchen",
+ "actions": "Aktionen"
},
"folders": {
"title": "Ordner",
@@ -1647,6 +1648,9 @@
"update": "Aktualisieren",
"cancel": "Abbrechen",
"noActions": "Noch keine benutzerdefinierten Aktionen",
+ "promptLabel": "Anweisung",
+ "emptyEditorTitle": "Aktion auswählen",
+ "emptyEditorDescription": "Wählen Sie eine Aktion aus der Liste oder erstellen Sie eine neue",
"runAction": "{{name}} ausführen",
"selectAction": "Aktion auswählen",
"done": "Fertig",
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index c500081ee..81a09df1b 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -1643,7 +1643,8 @@
"notes": {
"sidebar": {
"newNote": "New note",
- "searchNotes": "Search notes"
+ "searchNotes": "Search notes",
+ "actions": "Actions"
},
"folders": {
"title": "Folders",
@@ -1773,6 +1774,9 @@
"update": "Update",
"cancel": "Cancel",
"noActions": "No custom actions yet",
+ "promptLabel": "Prompt",
+ "emptyEditorTitle": "Select an action",
+ "emptyEditorDescription": "Choose an action from the list or create a new one",
"runAction": "Run {{name}}",
"selectAction": "Select action",
"builtin": {
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index dc068419a..2ed52f30c 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -1534,7 +1534,8 @@
"notes": {
"sidebar": {
"newNote": "Nueva nota",
- "searchNotes": "Buscar notas"
+ "searchNotes": "Buscar notas",
+ "actions": "Acciones"
},
"folders": {
"title": "Carpetas",
@@ -1647,6 +1648,9 @@
"update": "Actualizar",
"cancel": "Cancelar",
"noActions": "Aún no hay acciones personalizadas",
+ "promptLabel": "Instrucción",
+ "emptyEditorTitle": "Seleccionar acción",
+ "emptyEditorDescription": "Elige una acción de la lista o crea una nueva",
"runAction": "Ejecutar {{name}}",
"selectAction": "Seleccionar acción",
"done": "Listo",
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index e57250ad6..472884836 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -1595,7 +1595,8 @@
"notes": {
"sidebar": {
"newNote": "Nouvelle note",
- "searchNotes": "Rechercher des notes"
+ "searchNotes": "Rechercher des notes",
+ "actions": "Actions"
},
"folders": {
"title": "Dossiers",
@@ -1725,6 +1726,9 @@
"update": "Mettre à jour",
"cancel": "Annuler",
"noActions": "Aucune action personnalisée pour l'instant",
+ "promptLabel": "Instruction",
+ "emptyEditorTitle": "Sélectionner une action",
+ "emptyEditorDescription": "Choisissez une action dans la liste ou créez-en une nouvelle",
"runAction": "Exécuter {{name}}",
"selectAction": "Sélectionner l'action",
"builtin": {
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index 031542d5c..a20d9aa6a 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -1534,7 +1534,8 @@
"notes": {
"sidebar": {
"newNote": "Nuova nota",
- "searchNotes": "Cerca note"
+ "searchNotes": "Cerca note",
+ "actions": "Azioni"
},
"folders": {
"title": "Cartelle",
@@ -1647,6 +1648,9 @@
"update": "Aggiorna",
"cancel": "Annulla",
"noActions": "Nessuna azione personalizzata ancora",
+ "promptLabel": "Istruzione",
+ "emptyEditorTitle": "Seleziona un'azione",
+ "emptyEditorDescription": "Scegli un'azione dall'elenco o creane una nuova",
"runAction": "Esegui {{name}}",
"selectAction": "Seleziona azione",
"done": "Fatto",
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index ff69ed46c..969da0af7 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -1462,7 +1462,8 @@
"notes": {
"sidebar": {
"newNote": "新しいノート",
- "searchNotes": "ノートを検索"
+ "searchNotes": "ノートを検索",
+ "actions": "アクション"
},
"editor": {
"transcribe": "文字起こし",
@@ -1507,6 +1508,9 @@
"update": "更新",
"cancel": "キャンセル",
"noActions": "カスタムアクションはまだありません",
+ "promptLabel": "プロンプト",
+ "emptyEditorTitle": "アクションを選択",
+ "emptyEditorDescription": "リストからアクションを選択するか、新しく作成してください",
"runAction": "{{name}} を実行",
"selectAction": "アクションを選択",
"done": "完了",
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index 851cac1d4..50810f60d 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -1534,7 +1534,8 @@
"notes": {
"sidebar": {
"newNote": "Nova nota",
- "searchNotes": "Pesquisar notas"
+ "searchNotes": "Pesquisar notas",
+ "actions": "Ações"
},
"folders": {
"title": "Pastas",
@@ -1647,6 +1648,9 @@
"update": "Atualizar",
"cancel": "Cancelar",
"noActions": "Nenhuma ação personalizada ainda",
+ "promptLabel": "Instrução",
+ "emptyEditorTitle": "Selecionar ação",
+ "emptyEditorDescription": "Escolha uma ação da lista ou crie uma nova",
"runAction": "Executar {{name}}",
"selectAction": "Selecionar ação",
"done": "Concluído",
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index 75a1dd4f5..03add03ea 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -1534,7 +1534,8 @@
"notes": {
"sidebar": {
"newNote": "Новая заметка",
- "searchNotes": "Поиск заметок"
+ "searchNotes": "Поиск заметок",
+ "actions": "Действия"
},
"folders": {
"title": "Папки",
@@ -1647,6 +1648,9 @@
"update": "Обновить",
"cancel": "Отмена",
"noActions": "Пользовательских действий пока нет",
+ "promptLabel": "Инструкция",
+ "emptyEditorTitle": "Выберите действие",
+ "emptyEditorDescription": "Выберите действие из списка или создайте новое",
"runAction": "Запустить {{name}}",
"selectAction": "Выбрать действие",
"done": "Готово",
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index e01fa9768..67536bbeb 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -1529,7 +1529,8 @@
"notes": {
"sidebar": {
"newNote": "新建笔记",
- "searchNotes": "搜索笔记"
+ "searchNotes": "搜索笔记",
+ "actions": "操作"
},
"folders": {
"title": "文件夹",
@@ -1642,6 +1643,9 @@
"update": "更新",
"cancel": "取消",
"noActions": "暂无自定义操作",
+ "promptLabel": "提示词",
+ "emptyEditorTitle": "选择操作",
+ "emptyEditorDescription": "从列表中选择一个操作或创建新操作",
"runAction": "运行 {{name}}",
"selectAction": "选择操作",
"done": "完成",
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index 1285dabc9..5c025e4e5 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -1529,7 +1529,8 @@
"notes": {
"sidebar": {
"newNote": "新增筆記",
- "searchNotes": "搜尋筆記"
+ "searchNotes": "搜尋筆記",
+ "actions": "動作"
},
"folders": {
"title": "資料夾",
@@ -1642,6 +1643,9 @@
"update": "更新",
"cancel": "取消",
"noActions": "尚無自訂動作",
+ "promptLabel": "提示詞",
+ "emptyEditorTitle": "選擇動作",
+ "emptyEditorDescription": "從列表中選擇一個動作或建立新動作",
"runAction": "執行 {{name}}",
"selectAction": "選擇動作",
"done": "完成",