Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(transcription): add a Transcription settings page
Elian Dorandac25c22de7d
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex 061194ea0f..62c579372c 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -4623,5 +4623,8 @@"not_enough_space_title": "Not enough free space","failed_title": "Download failed","license": "{{license}} license"+ },+ "transcription_options": {+ "placeholder": "Settings for transcribing meetings will appear here."}}diff --git a/apps/client/src/widgets/type_widgets/ContentWidget.tsx b/apps/client/src/widgets/type_widgets/ContentWidget.tsxindex 50f1724259..5f0cb6bc37 100644--- a/apps/client/src/widgets/type_widgets/ContentWidget.tsx+++ b/apps/client/src/widgets/type_widgets/ContentWidget.tsx@@ -17,13 +17,14 @@ import OtherSettings from "./options/other";import InternationalizationOptions from "./options/i18n";import AdvancedSettings from "./options/advanced";import SecuritySettings from "./options/security";+import TranscriptionSettings from "./options/transcription";import LlmSettings from "./options/llm";import "./ContentWidget.css";import { t } from "../../services/i18n";import BackendLog from "./code/BackendLog";import SpaceUsage from "./space_usage";-export type OptionPages = "_optionsAppearance" | "_optionsShortcuts" | "_optionsTextNotes" | "_optionsCodeNotes" | "_optionsContentManager" | "_optionsMedia" | "_optionsSpellcheck" | "_optionsPassword" | "_optionsEtapi" | "_optionsBackup" | "_optionsDatabase" | "_optionsSync" | "_optionsDesktop" | "_optionsOther" | "_optionsLocalization" | "_optionsSecurity" | "_optionsAdvanced" | "_optionsLlm";+export type OptionPages = "_optionsAppearance" | "_optionsShortcuts" | "_optionsTextNotes" | "_optionsCodeNotes" | "_optionsContentManager" | "_optionsMedia" | "_optionsSpellcheck" | "_optionsTranscription" | "_optionsPassword" | "_optionsEtapi" | "_optionsBackup" | "_optionsDatabase" | "_optionsSync" | "_optionsDesktop" | "_optionsOther" | "_optionsLocalization" | "_optionsSecurity" | "_optionsAdvanced" | "_optionsLlm";/** The page behind each of these notes. Exported for the options search, which renders them all. */export const CONTENT_WIDGETS: Record<OptionPages | "_backendLog" | "_spaceUsage", (props: TypeWidgetProps) => JSX.Element> = {@@ -34,6 +35,7 @@ export const CONTENT_WIDGETS: Record<OptionPages | "_backendLog" | "_spaceUsage"_optionsContentManager: ActiveContentSettings,_optionsMedia: MediaSettings,_optionsSpellcheck: SpellcheckSettings,+ _optionsTranscription: TranscriptionSettings,_optionsPassword: PasswordSettings,_optionsEtapi: EtapiSettings,_optionsBackup: BackupSettings,diff --git a/apps/client/src/widgets/type_widgets/options/transcription.tsx b/apps/client/src/widgets/type_widgets/options/transcription.tsxnew file mode 100644index 0000000000..41aa6f9c60--- /dev/null+++ b/apps/client/src/widgets/type_widgets/options/transcription.tsx@@ -0,0 +1,16 @@+import { t } from "../../../services/i18n";+import { isElectron } from "../../../services/utils";+import NoItems from "../../react/NoItems";+import OptionsPageHeader from "./components/OptionsPageHeader";++export default function TranscriptionSettings() {+ return (+ <>+ <OptionsPageHeader />+ <NoItems+ icon="bx bx-microphone"+ text={isElectron() ? t("transcription_options.placeholder") : t("desktop.web_placeholder")}+ />+ </>+ );+}diff --git a/apps/server/src/assets/translations/en/server.json b/apps/server/src/assets/translations/en/server.jsonindex df4e8ee7e5..d0ba962c0b 100644--- a/apps/server/src/assets/translations/en/server.json+++ b/apps/server/src/assets/translations/en/server.json@@ -330,7 +330,8 @@"inbox-title": "Inbox","tab-switcher-title": "Tab Switcher","sidebar-chat-title": "AI Chat",- "record-meeting-title": "Transcribe meeting"+ "record-meeting-title": "Transcribe meeting",+ "transcription-title": "Transcription"},"notes": {"new-note": "New note",diff --git a/packages/trilium-core/src/services/hidden_subtree.ts b/packages/trilium-core/src/services/hidden_subtree.tsindex 01efbe13e1..6b25c6b11c 100644--- a/packages/trilium-core/src/services/hidden_subtree.ts+++ b/packages/trilium-core/src/services/hidden_subtree.ts@@ -325,6 +325,7 @@ function buildHiddenSubtreeDefinition(helpSubtree: HiddenSubtreeItem[]): HiddenS{ id: "_optionsMedia", title: t("hidden-subtree.images-title"), type: "contentWidget", icon: "bx-image" },{ id: "_optionsContentManager", title: t("hidden-subtree.content-manager-title"), type: "contentWidget", icon: "bx-package" },{ id: "_optionsSpellcheck", title: t("hidden-subtree.spellcheck-title"), type: "contentWidget", icon: "bx-check-double", attributes: [{ type: "label", name: "electronOnly" }] },+ { id: "_optionsTranscription", title: t("hidden-subtree.transcription-title"), type: "contentWidget", icon: "bx-microphone", attributes: [{ type: "label", name: "electronOnly" }] },// Integrations{ id: "_optionsAi", title: "AI Chat", type: "contentWidget", enforceDeleted: true },