feat: Ton/Vorlage-Trennung im Compose-Fenster (Paket J) - #26
Merged
Conversation
…t J) Macht die bislang unsichtbare Ton-/Vorlagen-Logik im Compose-Fenster sichtbar und trennt sie sauber: - Tonfall-Selektor (locker/neutral/professionell) direkt im Compose-Fenster. Aktiv nur bei Blitztext+ + Vorlage "Standard"; bei E-Mail/Spezial/Eigener Vorlage sichtbar, aber ausgegraut (Tooltip erklaert die Ueberschreibung); bei Dampf/Emoji ausgeblendet. Default aus config.text_improver_tone. - Ton + Freitext-Prompt werden ueber rewrite_text(tone=None, custom_prompt=None) durchgereicht; vollstaendig rueckwaertskompatibel (None -> bisheriges Verhalten). - Anzeige "professionell" statt "formal" ueber neue i18n-Ton-Labels; interner Wert bleibt "formal" (VALID_TONES unveraendert, keine Config-Migration). Settings-Ton-Combo nutzt jetzt ebenfalls die Labels via currentData(). - Neue Vorlage "Eigene Vorlage..." (freier Prompt) im Compose-Preset-Dropdown plus Config-Feld compose_custom_preset_text, editierbar im Einstellungen-Dialog. - Nur das Compose-Fenster betroffen; Hauptfenster/Tray unveraendert. Tests: Tonfall-Sichtbarkeit/-Aktivierung je Workflow+Vorlage, Default aus Config, Label-Mapping professionell->formal, Durchreichung an den Worker, Freitext-Prompt, i18n DE+EN-Paritaet, Config-Persistenz und Settings-Speicherung. Compose-Tests erhalten eine HOME-Isolations-Fixture, damit die lokale User-Config (Signatur) nicht mehr in die Assertions leckt (CI war bereits sauber). QT_QPA_PLATFORM=offscreen WHISPER_GUI_TESTS=1 pytest: 371 passed.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ziel (Roadmap-Paket J)
Ton und Schreibstil-Vorlage im Compose-Fenster sauber trennen und sichtbar machen. Bisher lag die Ton-Logik versteckt im Einstellungen-Dialog und wirkte zufällig (Ton griff nur bei Blitztext+ und Vorlage „Standard"; jede andere Vorlage überschrieb ihn still).
Änderungen
config.text_improver_tonerewrite_text(..., tone=None, custom_prompt=None)+_ComposeWorkererweitert — vollständig rückwärtskompatibel (None→ bisheriges Verhalten).formal(VALID_TONESunverändert, keine Config-Migration). Settings-Ton-Combo nutzt jetzt ebenfalls die Labels viacurrentData().compose_custom_preset_text, editierbar im Einstellungen-Dialog.Tests
professionell→formal, Durchreichung an den Worker, Freitext-Prompt-Plumbing, i18n DE+EN-Parität, Config-Persistenz, Settings-Speicherung.Test plan
QT_QPA_PLATFORM=offscreen WHISPER_GUI_TESTS=1 python -m pytest -q→ 371 passed (347 Baseline + 24 neu)🤖 Generated with Claude Code