From 7682a3842dec43166caf8736a89228c630cdd97b Mon Sep 17 00:00:00 2001 From: "smart-ssh-coder[bot]" <338317697+smart-ssh-coder[bot]@users.noreply.github.com> Date: Sat, 5 Dec 2026 02:18:38 +0000 Subject: [PATCH 1/4] =?UTF-8?q?docs(frontend):=20correct=20comments=20and?= =?UTF-8?q?=20tidy=20App=20=E2=80=A6=20FilterRulesView=20(#1680)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- apps/smart-ssh-community/frontend/src/App.tsx | 25 ++---- .../frontend/src/api/api.ts | 6 +- .../frontend/src/api/errorCodes.ts | 77 +++++++++---------- .../frontend/src/api/eventNames.ts | 2 +- .../frontend/src/api/events.ts | 16 ++-- .../frontend/src/api/fileDialog.ts | 17 ++-- .../frontend/src/api/types.ts | 44 +---------- .../frontend/src/api/voiceApi.ts | 2 +- .../frontend/src/components/AboutSettings.tsx | 19 ++--- .../src/components/AddAiProviderDialog.tsx | 49 ++++++------ .../src/components/AiProviderSettings.tsx | 34 ++++---- .../frontend/src/components/AppHeader.tsx | 23 +++--- .../src/components/AutoExecRulesLine.tsx | 4 +- .../frontend/src/components/ChatPanel.tsx | 13 +--- .../src/components/ChatRetentionSettings.tsx | 26 ++----- .../src/components/DataPathsSection.tsx | 4 +- .../src/components/DiagnosticsSettings.tsx | 4 +- .../src/components/FileBrowserPanel.tsx | 9 +-- .../src/components/FileTypeSettings.tsx | 13 +--- 19 files changed, 139 insertions(+), 248 deletions(-) diff --git a/apps/smart-ssh-community/frontend/src/App.tsx b/apps/smart-ssh-community/frontend/src/App.tsx index d6881411d..a588c2f05 100644 --- a/apps/smart-ssh-community/frontend/src/App.tsx +++ b/apps/smart-ssh-community/frontend/src/App.tsx @@ -49,9 +49,8 @@ function App() { const openSettings = () => setSettingsShown(true); const narrow = useIsNarrow(); const [hasActiveProvider, setHasActiveProvider] = useState(null); - // Spec 0057, §4.2 (Etappe 4): "Mache ich selbst" springt zur - // Server-Bearbeitung — s. `navigationBus.ts`-Doc-Kommentar. Lebt hier - // (statt in `MainScreen`, das `tab` selbst hält), weil auch + // Spec 0057, §4.2: "Mache ich selbst" springt zur Server-Bearbeitung — + // s. `navigationBus.ts`. Lebt hier (statt in `MainScreen`), weil auch // `activeSessionId` (unten, aus `useSessionTabs`) hier auf `null` gesetzt // werden muss, um überhaupt zu `MainScreen`/`ManagementView` zu wechseln. const [pendingNoteEditSelection, setPendingNoteEditSelection] = useState( @@ -147,17 +146,14 @@ function App() { /** Spec 0069, Teil C1 (BL-0082): "Ersten Server anlegen" im * Einstiegs-Block von `ServerList` — derselbe `pendingNoteEditSelection`- - * Mechanismus wie oben (Spec 0057, §4.2), hier nur mit `newServer` statt + * Mechanismus wie oben (Spec 0057, §4.2), hier mit `newServer` statt * `server`. Kein `switchTo(null)` nötig: `ServerList` ist ohnehin nur - * sichtbar, wenn kein Session-Tab aktiv ist (s. `activeSessionId === null`- - * Zweig unten). - * (Issue #978: das „+" an Gruppenzeilen gibt es nicht mehr.) */ - const handleCreateServerInGroup = (groupId: string | null) => { + * sichtbar, wenn kein Session-Tab aktiv ist. */ + const handleCreateFirstServer = () => { setSettingsShown(false); setTab("manage"); - setPendingNoteEditSelection({ kind: "newServer", groupId }); + setPendingNoteEditSelection({ kind: "newServer", groupId: null }); }; - const handleCreateFirstServer = () => handleCreateServerInGroup(null); const refreshProviderStatus = () => { listAiProviders() @@ -214,12 +210,6 @@ function App() { const serverMarkers = serverSessionMarkers(sessionTabs); return ( - // Spec 0010, Abschnitt 2, Punkt 6: die Benachrichtigung muss auch dann - // noch ankommen, wenn der Nutzer den Session-Screen bereits verlassen - // hat — als einziger, stets gemounteter Listener auf dieser äußersten - // Ebene statt dupliziert an einen der beiden Zweige unten gebunden - // (das würde bei jedem Wechsel zwischen Session-/Tab-Ansicht einen - // unnötigen Remount auslösen). // Bewusst KEIN `select-none` auf dieser Ebene (s. Spec 0016, Abschnitt // 3, Untersuchung Textmarkierung): `user-select: none` vererbt sich auf // alle Kindelemente ohne expliziten Gegen-`select-text` — ein @@ -376,8 +366,7 @@ interface MainScreenProps { tab: Tab; openSettings: () => void; hasActiveProvider: boolean | null; - /** Spec 0057, §4.2 (Etappe 4) — s. `App`s Doc-Kommentar zum - * `navigationBus`. */ + /** Spec 0057, §4.2 — s. `navigationBus.ts`. */ pendingNoteEditSelection: Selection | null; onNoteEditSelectionConsumed: () => void; /** Issue #696. */ diff --git a/apps/smart-ssh-community/frontend/src/api/api.ts b/apps/smart-ssh-community/frontend/src/api/api.ts index e020b6732..f8566a594 100644 --- a/apps/smart-ssh-community/frontend/src/api/api.ts +++ b/apps/smart-ssh-community/frontend/src/api/api.ts @@ -824,8 +824,8 @@ export const writeEditCopyText = (sessionId: string, localPath: string, content: /** Spec 0054, Teil 4, Punkt 6: Watcher beenden + Temp-Datei aufräumen. * `sessionId` schränkt den Befehl auf den Editier-Temp-Ordner GENAU dieser - * Session ein (Spec-Reviewer-Fund: sonst könnte der Befehl jeden - * beliebigen lokalen Pfad löschen). */ + * Session ein, damit der Befehl keinen beliebigen lokalen Pfad löschen + * kann. */ export const closeEditSession = (sessionId: string, localPath: string) => invoke("close_edit_session", { sessionId, localPath }); @@ -850,6 +850,8 @@ export const setMcpServerConfirmTimeoutSecs = (secs: number) => export const getAppInfo = () => invoke("get_app_info"); +// --- Spec 0067: Erhöhter Dateibrowser-Kanal ---------------------------- + /** Spec 0067, A1–A3: erhöhten Dateibrowser-Kanal einschalten (`sudo -n * `). Ein Fehlschlag kommt als `failure`, nicht als Exception. */ export const sftpElevationEnable = ( diff --git a/apps/smart-ssh-community/frontend/src/api/errorCodes.ts b/apps/smart-ssh-community/frontend/src/api/errorCodes.ts index 016b800b6..9cf3bfe91 100644 --- a/apps/smart-ssh-community/frontend/src/api/errorCodes.ts +++ b/apps/smart-ssh-community/frontend/src/api/errorCodes.ts @@ -1,41 +1,14 @@ import { commandErrorCode, commandErrorMessage } from "./api"; import { dynamicKey, type TranslateFn } from "../i18nTypes"; -/** Spec 0024, Abschnitt 5: Mapping von stabilen Backend-`code`s (s. - * `SshError`/`AiError`/`Decision`/`CommandError` in `crates/core`/ - * `crates/app-shell`) auf Übersetzungs-Keys im `errors`-Namespace der - * `locales/*\/common.json`. Jeder bekannte Code übersetzt 1:1 zu - * `errors.` — die Menge hier definiert, welche Codes das Frontend - * kennt; alles andere (unbekannter/zukünftiger Code, oder gar keiner) fällt - * auf den mitgegebenen `fallback`-Text zurück, nie eine leere Anzeige. */ /** Spec 0069, Teil A1: die Codes des Fünf-Minuten-Pfads (Provider * einrichten → Server anlegen → Verbindung testen → verbinden → Frage * stellen) — jeder hier gelistete Code hat DE/EN-Text mit Ursache und - * nächstem Schritt (geprüft von `errorCodes.test.ts`/`spec-reviewer`) UND + * nächstem Schritt (geprüft von `errorCodes.test.ts`) UND * steht in `KNOWN_ERROR_CODES` unten. Bewusst als eigene, geprüfte Liste * statt implizit "alles in `KNOWN_ERROR_CODES`" — die größere Liste * enthält auch Filter-/Formular-Codes außerhalb dieses Pfads, für die die * "Ursache + nächster Schritt"-Anforderung nicht gilt. */ -/** Spec 0101, A20/T14: die Codes der Etappe 3 (Master-Passwort). Eigene, - * geprüfte Liste aus demselben Grund wie [`FIVE_MINUTE_PATH_ERROR_CODES`] — - * `errorCodes.test.ts` prüft für jeden davon, dass er bekannt ist und einen - * eigenen DE- **und** EN-Text hat. Ohne diese Liste wäre ein Code, der in - * `KNOWN_ERROR_CODES` steht und in einer Locale-Datei fehlt, als roher - * Schlüssel (`errors.APP_LOCKED`) sichtbar und von keinem Test gefangen - * (Review-Fund Runde 1 zu Commit 11). */ -export const MASTER_PASSWORD_ERROR_CODES = [ - "WRONG_MASTER_PASSWORD", - "MASTER_PASSWORD_FILE_FAILED", - "MASTER_PASSWORD_FILE_ABSENT", - "MASTER_PASSWORD_REJECTED", - "MASTER_PASSWORD_MODE_MISMATCH", - "MASTER_PASSWORD_WARNING_NOT_CONFIRMED", - "STARTUP_FAILED", - "KEYCHAIN_HOLDS_ANOTHER_KEY", - "KEYCHAIN_KEY_MISMATCH", - "APP_LOCKED", -] as const; - export const FIVE_MINUTE_PATH_ERROR_CODES = [ "AI_AUTH_FAILED", "AI_MODEL_NOT_FOUND", @@ -58,6 +31,32 @@ export const FIVE_MINUTE_PATH_ERROR_CODES = [ "SSH_HOST_KEY_CONFIRM_TIMEOUT", ] as const; +/** Spec 0101, A20/T14: die Codes der Etappe 3 (Master-Passwort). Eigene, + * geprüfte Liste aus demselben Grund wie [`FIVE_MINUTE_PATH_ERROR_CODES`] — + * `errorCodes.test.ts` prüft für jeden davon, dass er bekannt ist und einen + * eigenen DE- **und** EN-Text hat. Ohne diese Liste wäre ein Code, der in + * `KNOWN_ERROR_CODES` steht und in einer Locale-Datei fehlt, als roher + * Schlüssel (`errors.APP_LOCKED`) sichtbar und von keinem Test gefangen. */ +export const MASTER_PASSWORD_ERROR_CODES = [ + "WRONG_MASTER_PASSWORD", + "MASTER_PASSWORD_FILE_FAILED", + "MASTER_PASSWORD_FILE_ABSENT", + "MASTER_PASSWORD_REJECTED", + "MASTER_PASSWORD_MODE_MISMATCH", + "MASTER_PASSWORD_WARNING_NOT_CONFIRMED", + "STARTUP_FAILED", + "KEYCHAIN_HOLDS_ANOTHER_KEY", + "KEYCHAIN_KEY_MISMATCH", + "APP_LOCKED", +] as const; + +/** Spec 0024, Abschnitt 5: Mapping von stabilen Backend-`code`s (s. + * `SshError`/`AiError`/`Decision`/`CommandError` in `crates/core`/ + * `crates/app-shell`) auf Übersetzungs-Keys im `errors`-Namespace der + * `locales/*\/common.json`. Jeder bekannte Code übersetzt 1:1 zu + * `errors.` — die Menge hier definiert, welche Codes das Frontend + * kennt; alles andere (unbekannter/zukünftiger Code, oder gar keiner) fällt + * auf den mitgegebenen `fallback`-Text zurück, nie eine leere Anzeige. */ const KNOWN_ERROR_CODES = new Set([ // SshError (crates/core/src/ssh/error.rs) "SSH_CONNECTION_FAILED", @@ -80,8 +79,8 @@ const KNOWN_ERROR_CODES = new Set([ // Spec 0069, Teil A4: "SSH_HOST_KEY_NOT_TRUSTED", "SSH_HOST_KEY_CONFIRM_TIMEOUT", - // Spec 0069, Teil A5 (spec-reviewer-Fund): dritter Host-Key-Wartestellen- - // Ausgang (Frontend-Reload während offener Abfrage), bisher ohne Code. + // Spec 0069, Teil A5 dritter Host-Key-Wartestellen-Ausgang + // (Frontend-Reload während offener Abfrage). "SSH_CONNECTION_ABANDONED", // Issue #546: the user cancelled a running connect. "SSH_CONNECT_CANCELLED", @@ -102,9 +101,7 @@ const KNOWN_ERROR_CODES = new Set([ // Issue #631: provider usage/spending limit reached. "AI_PROVIDER_USAGE_LIMIT", "AI_PROVIDER_REJECTED_REQUEST", - // Spec 0065, Teil 3 (spec-reviewer-Fund, Review dieses Schritts): fehlte - // hier — die englische UI zeigte bislang den rohen deutschen - // Backend-Text statt einer Übersetzung. + // Spec 0065, Teil 3: response cut off by the token limit. "AI_RESPONSE_TRUNCATED", // Spec 0069, Teil A2: "AI_MODEL_NOT_FOUND", @@ -188,11 +185,8 @@ const KNOWN_ERROR_CODES = new Set([ // Spec 0076, C-6 (ADR 0065 §12): der Rollback der Überführung konnte den // Schlüsselbund nicht zurücksetzen — ein Eintrag ist liegen geblieben. "IDENTITY_FILE_ROLLBACK_LEFT_KEY_BEHIND", - // Unabhängiger Review-Pass, Spec 0031: Code existiert seit dem - // First-Run-Notice-Gate in error.rs (code_tests), war aber nie hier - // eingetragen — ohne diesen Eintrag sah selbst ein Nutzer mit englischer - // UI in dem (seltenen) Fall, dass der Backend-Fehler tatsächlich sichtbar - // wird, den rohen deutschen Text. + // Spec 0031: das First-Run-Notice-Gate lehnt ab, solange der Hinweis nicht + // bestätigt ist; ohne Eintrag sähe der Nutzer den rohen Backend-Text. "FIRST_RUN_NOTICE_NOT_ACKNOWLEDGED", // Spec 0071, A13: Ohne diesen Eintrag zeigte das Frontend den rohen, // englischen `Display`-Text der `keyring`-Crate ("No default store has @@ -233,7 +227,7 @@ const KNOWN_ERROR_CODES = new Set([ // beschädigt ist; die Oberfläche tut in beiden Fällen dasselbe. Der // Unterschied steht im Text, den das Backend mitschickt. "MASTER_PASSWORD_FILE_FAILED", - // review-09 (Runde 2 Teil A, Fund 2 „Rest"): „Neu anfangen" auf eine + // „Neu anfangen“ auf eine // Datenbank **ohne** Datei an diesem Ort — kein Dateifehler, sondern // längst der Schlüsselbund-Modus. Vorher lief das unter // `MASTER_PASSWORD_FILE_FAILED`, und der Text behauptete „gerade nicht @@ -241,7 +235,7 @@ const KNOWN_ERROR_CODES = new Set([ "MASTER_PASSWORD_FILE_ABSENT", // A13: zu kurz oder nicht wiederholt. "MASTER_PASSWORD_REJECTED", - // Review-Fund Runde 1 zu Commit 11: Der Vorgang passt nicht zum aktiven + // Der Vorgang passt nicht zum aktiven // Modus (A18) — kein Dateifehler, und als einer gemeldet behauptete die // Meldung einen Zustand, der nicht vorliegt (Klarstellung 9, Punkt 5). "MASTER_PASSWORD_MODE_MISMATCH", @@ -319,7 +313,8 @@ export function translateErrorCode( if (code === "SSH_NO_COMMON_ALGORITHM" && fallback) { return `${t(dynamicKey(`errors.${code}`), params)} (${fallback})`; } - return t(dynamicKey(`errors.${code}`), params) // code is in KNOWN_ERROR_CODES; + // `code` is in KNOWN_ERROR_CODES, so `errors.` exists in every locale. + return t(dynamicKey(`errors.${code}`), params); } /** The display text for a rejected command: the translated error code, else diff --git a/apps/smart-ssh-community/frontend/src/api/eventNames.ts b/apps/smart-ssh-community/frontend/src/api/eventNames.ts index bf131939b..a8e3fe3ec 100644 --- a/apps/smart-ssh-community/frontend/src/api/eventNames.ts +++ b/apps/smart-ssh-community/frontend/src/api/eventNames.ts @@ -1,5 +1,5 @@ // Names of the backend events the core UI listens to (Issue #918). -// Mirrors `pub mod names` in `crates/app-logic/src/events.rs`; +// Mirrors the constants in `crates/app-logic/src/event_names.rs`; // `npm run check-events` fails when the two drift apart. Listen only through // these constants, never through a string literal. export const EVENT = { diff --git a/apps/smart-ssh-community/frontend/src/api/events.ts b/apps/smart-ssh-community/frontend/src/api/events.ts index c2b16aa8c..bdf17ccd6 100644 --- a/apps/smart-ssh-community/frontend/src/api/events.ts +++ b/apps/smart-ssh-community/frontend/src/api/events.ts @@ -5,10 +5,10 @@ import { listenTyped } from "./listenTyped"; export { listenTyped }; -// Dünne, typisierte Wrapper um `@tauri-apps/api/event`'s `listen()` — ein -// Name pro Event aus Spec 0007 Abschnitt 5, damit Aufrufer nie den -// String-Namen von Hand tippen (Tippfehlerquelle) und die Payload-Form aus -// `types.ts` automatisch mitbekommen. +// Dünne, typisierte Wrapper um `@tauri-apps/api/event`'s `listen()` — einer +// pro Event (Spec 0007 Abschnitt 5), damit Aufrufer nie den String-Namen +// von Hand tippen (Tippfehlerquelle) und die Payload-Form aus +// `EventPayloads` automatisch mitbekommen. /** `listenTyped` for one event name, as a reusable `on…` subscription. */ const typedListener = @@ -139,7 +139,7 @@ export const onChatAutoContinuationStarted = /** Spec 0061, Abschnitt 4 — s. `AiBudgetWaitingEvent`-Doc-Kommentar. */ export const onAiBudgetWaiting = typedListener(EVENT.AI_BUDGET_WAITING); -/** Spec 0010 — bewusst app-weit abonniert (z. B. in `App.tsx`), nicht nur +/** Spec 0010 — bewusst app-weit abonniert (`NoteSuggestionToast`), nicht nur * innerhalb einer offenen `ChatPanel`-Instanz: der Vorschlag kann eintreffen, * nachdem der Nutzer den Session-Screen bereits verlassen hat. */ export const onNoteUpdateSuggested = @@ -165,7 +165,7 @@ export const onNoteShrinkSucceeded = export const onChatDocumentGenerated = typedListener(EVENT.CHAT_DOCUMENT_GENERATED); -/** Issue #545: the AI asked a question with answer options (no UI yet). */ +/** Issue #545: the AI asked a question with answer options (shown as a question card in the chat). */ export const onChatQuestionAsked = typedListener(EVENT.CHAT_QUESTION_ASKED); @@ -206,7 +206,7 @@ export const onMcpActionTabRequested = * **Der Zuhörer muss stehen, bevor das erste Entsperr-Kommando läuft.** * `emit` im Backend liefert `Ok`, auch wenn niemand zuhört: Geht das * Ereignis verloren, läuft die Frage dort in die Zeitgrenze von fünf - * Minuten (s. `crate::window_prompt::PROMPT_TIMEOUT`) und der Start bricht + * Minuten (s. `PROMPT_TIMEOUT` in `crates/app-shell/src/window_prompt.rs`) und der Start bricht * mit „keine Antwort erhalten" ab. */ export const onStartupPrompt = typedListener(EVENT.STARTUP_PROMPT); @@ -214,7 +214,7 @@ export const onStartupPrompt = typedListener(EVENT.STARTUP_PROMPT); export const onStartupUnlocked = (handler: () => void): Promise => listenTyped(EVENT.STARTUP_UNLOCKED, () => handler()); -/** Base64 → `Uint8Array`, für `TerminalOutputEvent.data` (s. `crate::events`). */ +/** Base64 → `Uint8Array`, für `TerminalOutputEvent.data` (s. `crates/app-logic/src/events.rs`). */ export function base64ToBytes(base64: string): Uint8Array { const binary = atob(base64); const bytes = new Uint8Array(binary.length); diff --git a/apps/smart-ssh-community/frontend/src/api/fileDialog.ts b/apps/smart-ssh-community/frontend/src/api/fileDialog.ts index 31f4fbfc2..f9d66df80 100644 --- a/apps/smart-ssh-community/frontend/src/api/fileDialog.ts +++ b/apps/smart-ssh-community/frontend/src/api/fileDialog.ts @@ -2,18 +2,11 @@ import { invoke } from "@tauri-apps/api/core"; import { open } from "@tauri-apps/plugin-dialog"; /** - * Ruft den Backend-Command `read_credential_file` (Spec 0013, SEC-06) auf, - * der den nativen Datei-Dialog SELBST öffnet und nur den Inhalt der - * gewählten Datei zurückliefert — nie einen Pfad. Unabhängiger - * Review-Pass: der Dialog lief zuvor im Webview - * (`@tauri-apps/plugin-dialog`s `open()`), das den gewählten Pfad - * anschließend an `read_credential_file` weiterreichte; jeder andere Code - * im Webview hätte denselben Command genauso gut mit einem - * selbstgewählten Pfad aufrufen können (`invoke("read_credential_file", - * { path: "~/.ssh/id_rsa" })`), da das Backend den Pfad ungeprüft las. - * Nur der Anzeige-`title` geht noch ans Backend, kein Pfad — nur eine - * tatsächliche Interaktion mit dem nativen Dialog liefert einen Pfad. - * `null`, falls der Dialog abgebrochen wurde. + * Calls the backend command `read_credential_file` (Spec 0013, SEC-06). The + * backend opens the native file dialog itself and returns only the content of + * the chosen file, never a path, so no other code in the webview can make it + * read an arbitrary path. Only the display `title` goes to the backend. + * `null` if the dialog was cancelled. */ export async function pickAndReadTextFile(title: string): Promise { return invoke("read_credential_file", { title }); diff --git a/apps/smart-ssh-community/frontend/src/api/types.ts b/apps/smart-ssh-community/frontend/src/api/types.ts index bddbe99fb..3630d5cc7 100644 --- a/apps/smart-ssh-community/frontend/src/api/types.ts +++ b/apps/smart-ssh-community/frontend/src/api/types.ts @@ -130,7 +130,7 @@ export function needsBaseUrl(type: ProviderType): boolean { // `GET {base_url}/v1/models` mit `x-api-key`/`anthropic-version` statt // `Authorization: Bearer` gegen `GET {base_url}/models` bei der // OpenAI-Familie (Pfad und Header vom Backend gewählt, s. -// `crates/ai-providers/src/discovery.rs`, Spec-Reviewer-Fund: Anthropics +// `crates/ai-providers/src/discovery.rs`; Anthropics // `base_url` trägt anders als bei der OpenAI-Familie kein `/v1`-Präfix). // Weiterhin als Funktion (statt schlicht `true` überall zu verwenden) für // den Fall eines künftigen `ProviderType`, der das nicht unterstützt. @@ -338,13 +338,6 @@ export interface AutoExecRule { * beschädigt. */ export type UnusableReason = "unknown_auth_method" | "unreadable_auth_method"; -export type ConnectStepStatus = - | { state: "running" } - | { state: "ok" } - | { state: "skipped" } - | { state: "warning"; code: string } - | { state: "failed"; code: string }; - /** Spec 0050, Teil 3 — s. `crate::commands::TestAiProviderCredentialsResult` * Doc-Kommentar für die Mapping-Entscheidung (`RateLimited`/ * `ProviderUnavailable`/etc. fallen alle unter `unreachable`, nicht nur @@ -360,19 +353,6 @@ export type TestAiProviderCredentialsResult = code?: string | null; }; -// --- Spec 0009: Filter-Regel-Verwaltung --------------------------------- -// -// `Scope`/`RuleAction` (core::filter) tragen wie `Decision` oben kein -// `serde(rename_all)` — Standard-Außen-Tagging, s. Modul-Kommentar am -// Dateianfang. `PatternType` (app-shell-DTO) hat dagegen -// `#[serde(rename_all = "snake_case")]`, also lowercase-Strings. - -// --- Spec 0011: Regel-Schnellvorschlag im Bestätigungsdialog ----------- - -// --- Issue #596: explanation of a pending confirmation ------------------- - -// --- Spec 0012: KI-generierte Dokumente --------------------------------- - // --- Issue #545: KI-Rückfragen mit Antwortoptionen ------------------------ /** One answer option of an AI question. */ @@ -381,8 +361,6 @@ export interface QuestionOption { description: string | null; } -// --- Spec 0017: Multi-Tab-Sessions -------------------------------------- - /** Spec 0104: Kennzeichnung einer MCP-Sitzung (eigener Tab je Server und * MCP-Client). */ export interface McpSessionInfo { @@ -390,11 +368,6 @@ export interface McpSessionInfo { clientName: string | null; } -/** Spec 0034, Abschnitt 6/8: bereits geladene Historie eines Tabs (leer bei - * `connect()`, befüllt nach `resume_chat_session()`), s. - * `get_chat_history`. */ -export type ChatHistoryRole = "user" | "assistant" | "action_result"; - // --- Spec 0020, Abschnitt 5: Manueller Dateibrowser --------------------- /** Issue #128 / Spec 0054, Teil 3: Ordner-Upload. */ @@ -445,19 +418,6 @@ export interface McpServerSettingsDto { confirmTimeoutSecs: number; } -// --- Spec 0052: Versions- & Build-Anzeige --------------------------------- - -// --- Spec 0071: Systemschlüsselbund-Zustand ------------------------------- - -/** Warum der Systemschlüsselbund nicht verfügbar ist — von - * `crate::dto::KeychainUnavailableReasonDto` (Spec 0071, A1). */ -export type KeychainUnavailableReason = - | "no_session_bus" - | "no_secret_service_provider" - | "locked" - | "no_keystore" - | "unknown"; - /** Von `app_logic::data_paths::DataPathEntryDto` (Issue #16): ein * wirksamer Datenpfad der laufenden Instanz. Nur der Pfad, nie Inhalt. */ export interface DataPathEntryDto { @@ -471,8 +431,6 @@ export interface DataPathEntryDto { isDirectory: boolean; } -// --- Spec 0076: Anmeldung mit einer Schlüsseldatei ----------------------- - // --- Spec 0075: Import/Export von OpenSSH-`ssh_config` ------------------- /** Von `crate::ssh_config_apply::OriginDto` — woher ein Feldwert stammt diff --git a/apps/smart-ssh-community/frontend/src/api/voiceApi.ts b/apps/smart-ssh-community/frontend/src/api/voiceApi.ts index 67ff551ab..1c0bc060f 100644 --- a/apps/smart-ssh-community/frontend/src/api/voiceApi.ts +++ b/apps/smart-ssh-community/frontend/src/api/voiceApi.ts @@ -72,5 +72,5 @@ export const onSpeechPartialText = ( export const speechModelSizeMib = (info: SpeechModelInfo): number => Math.ceil(info.total_size / (1024 * 1024)); -/** Display name of a model; Whisper models keep their plain id. */ +/** Id of the Parakeet model; the Whisper models use plain ids (`base`, `small`, …). */ export const SPEECH_MODEL_PARAKEET = "parakeet_v3"; diff --git a/apps/smart-ssh-community/frontend/src/components/AboutSettings.tsx b/apps/smart-ssh-community/frontend/src/components/AboutSettings.tsx index 4bf715d68..17d72267e 100644 --- a/apps/smart-ssh-community/frontend/src/components/AboutSettings.tsx +++ b/apps/smart-ssh-community/frontend/src/components/AboutSettings.tsx @@ -9,18 +9,13 @@ import { Button, Icon } from "./ui"; * (Spec 0050) — Version + Commit-Hash **sichtbar und kopierbar**, damit ein * Tester sie ohne manuelles Abtippen in einen Bug-Report übernehmen kann. * - * Spec-Reviewer-Fund (Spec 0052, Review dieses Schritts): eine frühere - * Fassung legte den Text *in* den Kopieren-Button — ein Mousedown auf - * einem `