Commit Graph
4 Commits
Author SHA1 Message Date
schihei f8064ac430 fix(panel): keep source available after it is collapsed
Render the source disclosure whenever the source-preview setting is enabled, instead of hiding it when its expanded state is false. The collapsed label becomes 'Show source' with a matching tooltip and localized English/German strings, so the source can be reopened.

Verified: make verify green.
2026-11-26 14:47:04 +01:00
schihei f466e6dd1c fix(panel): enlarge drag surface to the header block
The 18x28 grip was too small. Wrap the grip, icon, title and language subtitle in a 44 pt-high native performDrag area; the SwiftUI content is hit-testing-disabled so the whole left header block starts a window drag. Make the grip a visible 24x32 capsule with an open-hand cursor and a localized tooltip.

Verified: make verify green; a synthetic drag starting on the title area moved the panel by the full delta, and the panel screenshot confirms the larger grip and 17 pt translation text.
2026-11-26 14:42:58 +01:00
schihei 40733473c5 fix(panel): draggable header and configurable translation text size
Add a native AppKit drag grip to the non-activating panel header; it accepts the first mouse and calls performDrag, so the panel can be moved before it becomes key. Keep a moved position while the panel stays visible and only recenter near the cursor when it is shown again (DeepL-like transient position).

Add persisted translationFontSize (default 17 pt, range 12–28) to AppSettings and PanelConfiguration, apply it to the translation text, and expose a native Settings stepper. Add English/German strings and AppSettings clamp/round-trip tests.

Verified: make verify green; synthetic double-copy opened the panel, dragging the grip moved the window, and a 22 pt capture showed the larger translation text.
2026-11-26 14:35:34 +01:00
schihei a78572adc3 feat(m4-m6): session, panel, Replace, settings and onboarding
M4: TranslationSession actor with epochs/one-in-flight streaming, PanelViewModel, non-activating NSPanel, streaming panel UI, searchable/recent target languages, warnings/errors and Copy/Retry/Replace actions.

M5: InsertionCoordinator with target capture, AX direct replacement, secure-field/own-PID refusal, frontmost and selected-text verification, snapshot/⌘V/restore fallback, cancellation-safe restore and blocking-warning gate.

M6: versioned AppSettings/SettingsStore, onboarding for Ollama/model/target/Accessibility, General/Model/Translation/Privacy/Diagnostics settings, launch-at-login via SMAppService, status menu (target, copy/replace last, setup, diagnostics, about), text-free diagnostics and first-run setup.

Docs: PROGRESS M4–M6, ARCHITECTURE §10–§12, ADR-019/020, SELECTION_AND_CLIPBOARD and TESTING. Manual 10-app matrices, real AX/paste delivery, VoiceOver and focus checks remain open.

Verified: make verify green (format, strict lint, scripts, privacy, Debug+Release signatures, 217 package tests); app launches and a two-copy clipboard smoke test opens the panel.
2026-11-26 14:03:16 +01:00