Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
feat(api-keys): add developer API docs link to API keys section
Gabriel Steineec1568520be
diff --git a/src/components/ApiKeysSection.tsx b/src/components/ApiKeysSection.tsxindex fc0986e7f..84cd79f6e 100644--- a/src/components/ApiKeysSection.tsx+++ b/src/components/ApiKeysSection.tsx@@ -1,6 +1,6 @@import { useState, useEffect, useCallback } from "react";import { useTranslation } from "react-i18next";-import { Key, Copy, Check, Trash2, Plus, Shield, AlertTriangle } from "lucide-react";+import { Key, Copy, Check, Trash2, Plus, Shield, AlertTriangle, ExternalLink } from "lucide-react";import { Button } from "./ui/button";import { Input } from "./ui/input";import { Badge } from "./ui/badge";@@ -89,10 +89,25 @@ export default function ApiKeysSection() {return (<div className="space-y-4"><div className="flex items-center justify-between">- <SectionHeader- title={t("apiKeysSection.title")}- description={t("apiKeysSection.description")}- />+ <div className="mb-3">+ <h3 className="text-xs font-semibold text-foreground tracking-tight">+ {t("apiKeysSection.title")}+ </h3>+ <p className="text-xs text-muted-foreground/80 mt-0.5 leading-relaxed">+ {t("apiKeysSection.description")}+ <span className="mx-1.5 text-muted-foreground/30">·</span>+ <button+ type="button"+ className="inline-flex items-center gap-1 text-primary/80 hover:text-primary transition-colors"+ onClick={() =>+ window.electronAPI?.openExternal?.("https://docs.openwhispr.com/api/overview")+ }+ >+ {t("apiKeysSection.docsLink")}+ <ExternalLink className="h-2.5 w-2.5" />+ </button>+ </p>+ </div>{!isLoading && keys.length > 0 && keys.length < MAX_API_KEYS && (<Button variant="outline" size="sm" onClick={() => setCreateOpen(true)}><Plus className="h-3.5 w-3.5 mr-1.5" />diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex baa02b100..3e5a8dc19 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -2210,6 +2210,7 @@"apiKeysSection": {"title": "API-Schlüssel","description": "Erstellen Sie Schlüssel für den programmatischen Zugriff auf die OpenWhispr-API.",+ "docsLink": "API-Dokumentation","empty": "Noch keine API-Schlüssel","createButton": "API-Schlüssel erstellen","create": {diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex dbbcdc410..a853468f7 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -662,6 +662,7 @@"apiKeysSection": {"title": "API Keys","description": "Create keys to access the OpenWhispr API programmatically.",+ "docsLink": "API Docs","empty": "No API keys yet","createButton": "Create API Key","create": {diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex 4251fa819..1ae220153 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -614,6 +614,7 @@"apiKeysSection": {"title": "Claves API","description": "Crea claves para acceder a la API de OpenWhispr de forma programática.",+ "docsLink": "Docs de la API","empty": "Aún no hay claves API","createButton": "Crear clave API","create": {diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex 1e91fb543..c4c0dc3b9 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -614,6 +614,7 @@"apiKeysSection": {"title": "Clés API","description": "Créez des clés pour accéder à l'API OpenWhispr de manière programmatique.",+ "docsLink": "Docs de l'API","empty": "Aucune clé API pour le moment","createButton": "Créer une clé API","create": {diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex b44e8ef87..bf5f6e81e 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -2210,6 +2210,7 @@"apiKeysSection": {"title": "Chiavi API","description": "Crea chiavi per accedere all'API di OpenWhispr in modo programmatico.",+ "docsLink": "Docs API","empty": "Nessuna chiave API ancora","createButton": "Crea chiave API","create": {diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex c7af4782a..3bdbebee3 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -2210,6 +2210,7 @@"apiKeysSection": {"title": "APIキー","description": "アカウントへのプログラムアクセス用のキーを管理",+ "docsLink": "APIドキュメント","empty": "APIキーはまだありません","createButton": "キーを作成","create": {diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex c541b710e..cc4035f15 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -2210,6 +2210,7 @@"apiKeysSection": {"title": "Chaves API","description": "Crie chaves para acessar a API do OpenWhispr programaticamente.",+ "docsLink": "Docs da API","empty": "Nenhuma chave API ainda","createButton": "Criar chave API","create": {diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex afb9b3a57..0838d5f50 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -2210,6 +2210,7 @@"apiKeysSection": {"title": "API-ключи","description": "Создавайте ключи для программного доступа к API OpenWhispr.",+ "docsLink": "Документация API","empty": "API-ключей пока нет","createButton": "Создать API-ключ","create": {diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex 91b536c38..e78930e75 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -2205,6 +2205,7 @@"apiKeysSection": {"title": "API 密钥","description": "创建密钥以编程方式访问 OpenWhispr API。",+ "docsLink": "API 文档","empty": "暂无 API 密钥","createButton": "创建 API 密钥","create": {diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex 017d1dae2..dc21154f8 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -2205,6 +2205,7 @@"apiKeysSection": {"title": "API 金鑰","description": "建立金鑰以程式化方式存取 OpenWhispr API。",+ "docsLink": "API 文件","empty": "尚無 API 金鑰","createButton": "建立 API 金鑰","create": {