diff --git a/desktop/core/src/whats_new.rs b/desktop/core/src/whats_new.rs index b5fda8c..bf70b01 100644 --- a/desktop/core/src/whats_new.rs +++ b/desktop/core/src/whats_new.rs @@ -16,6 +16,12 @@ pub struct Release { /// Highlights per release, newest first (German source strings, translated by `l!`). fn notes() -> Vec<(&'static str, Vec)> { vec![ + ( + "1.5.8", + vec![ + l!("Neues Design: ruhigere Farben, größere Schaltflächen und Eingabefelder, je Ansicht eine klare Hauptaktion; die Aktionen an Projekten sind jetzt immer sichtbar."), + ], + ), ( "1.5.7", vec![ diff --git a/desktop/locales/en.json b/desktop/locales/en.json index 7fbd379..7a53e35 100644 --- a/desktop/locales/en.json +++ b/desktop/locales/en.json @@ -432,6 +432,7 @@ "Neuer Schalter „Beta-Versionen“ in der Seitenleiste: Ist er an, bietet die Update-Suche auch Beta-Versionen an.": "New “Beta versions” switch in the sidebar: when it is on, the update check offers beta versions too.", "Neuer Server": "New server", "Neues Design: Seitenleiste, Budgetbalken mit Ampel, Projektstatus auf einen Blick mit „Alle reparieren“ – und Projektordner einfach auf ein Profil ziehen.": "New design: sidebar, budget bars with traffic-light colors, project status at a glance with “Repair all” – and project folders simply dragged onto a profile.", + "Neues Design: ruhigere Farben, größere Schaltflächen und Eingabefelder, je Ansicht eine klare Hauptaktion; die Aktionen an Projekten sind jetzt immer sichtbar.": "New design: calmer colours, larger buttons and fields, one clear main action per view; project actions are now always visible.", "Neues Profil": "New profile", "Nicht angemeldet": "Not signed in", "Nicht angemeldet – Claude-Anfragen schlagen fehl. Beim Profil „Anmelden“ wählen.": "Not signed in – Claude requests will fail. Choose “Sign in” on the profile.", diff --git a/desktop/ui/app.js b/desktop/ui/app.js index 93a5c44..2937465 100644 --- a/desktop/ui/app.js +++ b/desktop/ui/app.js @@ -434,7 +434,7 @@ function summaryBar() { attention > 0 && h('span', { class: 'orange' }, ` · ${attention === 1 ? t('1 braucht Aufmerksamkeit') : t('%@ brauchen Aufmerksamkeit', attention)}`)), h('span', { class: 'spacer' }), repairable.length > 0 && button(repairable.length === 1 ? t('Reparieren') : t('Alle reparieren'), - () => call('reapply_many', { bindingIds: repairable.map((b) => b.id) }), { iconName: 'rotate', cls: 'primary' })); + () => call('reapply_many', { bindingIds: repairable.map((b) => b.id) }), { iconName: 'rotate' })); } // MARK: Profiles @@ -601,8 +601,8 @@ function credentialRow(profile, testConnection, check) { h('span', { class: 'spacer' }), ok && button(check.checking ? t('Wird geprüft …') : t('Verbindung prüfen'), testConnection, { iconName: 'activity', disabled: check.checking }), !ok && !profile.subscription && (profile.sso - ? button(t('Anmelden'), () => call('sso_login', { profileId: profile.id }), { iconName: 'key', cls: 'primary', disabled: profile.ssoLoggingIn }) - : button(t('Key hinterlegen'), () => replaceKeyDialog(profile), { iconName: 'key', cls: 'primary' }))); + ? button(t('Anmelden'), () => call('sso_login', { profileId: profile.id }), { iconName: 'key', disabled: profile.ssoLoggingIn }) + : button(t('Key hinterlegen'), () => replaceKeyDialog(profile), { iconName: 'key' }))); } const OFFICE_APP_NAMES = { excel: 'Excel', word: 'Word', powerpoint: 'PowerPoint' }; @@ -639,7 +639,7 @@ function profileCard(profile) { h('div', { class: 'card-head' }, h('span', { class: 'avatar', 'aria-hidden': 'true' }, initials(profile.name)), h('div', { class: 'card-title' }, - h('h2', null, profile.name, profile.sso && h('span', { class: 'badge' }, 'SSO'), profile.subscription && h('span', { class: 'badge' }, t('Claude-Abo')), + h('h2', null, profile.name, !profile.sso && !profile.subscription && h('span', { class: 'badge' }, t('Key')), profile.sso && h('span', { class: 'badge' }, 'SSO'), profile.subscription && h('span', { class: 'badge' }, t('Claude-Abo')), profile.managed && h('span', { class: 'badge' }, t('Von der IT vorgegeben'))), h('div', { class: 'muted small selectable' }, (profile.subscription ? t('Anmeldung von Claude Code') : profile.endpoint) + (profile.modelAlias ? t(' · Modell %@', profile.modelAlias) : '')), @@ -817,7 +817,7 @@ function settingsPage() { icon(health.state === 'active' ? 'check' : 'warning'), healthText), h('div', { class: 'line' }, h('span', { class: 'spacer' }), button(t('Übernehmen'), async () => { if (!selected || await ensureLogin(selected)) call('set_global_profile', { profileId: selected || null }); }, - { cls: 'primary', disabled: unchanged || (!selected && !view.globalProfileId) || view.disabled })), + { disabled: unchanged || (!selected && !view.globalProfileId) || view.disabled })), h('div', { class: 'section-note' }, t('Trägt das Profil in ~/.claude/settings.json ein. Claude Code nutzt es in allen Ordnern ohne eigene Zuordnung, statt auf einen Klartext-Key oder die normale Anmeldung zurückzufallen. Zugeordnete Projekte behalten ihr eigenes Profil.'))), ]; } @@ -1522,7 +1522,7 @@ function toolCard(info, status, ...extra) { h('span', { class: 'avatar', style: `--profile: ${info.color}`, 'aria-hidden': 'true' }, icon(info.symbol)), h('div', { class: 'card-title' }, h('h2', null, info.title), h('div', { class: 'muted small' }, info.subtitle)), status && !installed && status.hostFound && button(installing ? t('Wird installiert …') : t('Installieren'), - () => call('install_tool', { tool: info.tool }), { iconName: 'download', cls: 'primary', disabled: !!view.installingTool })), + () => call('install_tool', { tool: info.tool }), { iconName: 'download', disabled: !!view.installingTool })), h('div', { class: `finding ${installed ? 'green' : 'muted'}` }, icon(installed ? 'check' : 'info'), text, installing && h('span', { class: 'spinner', role: 'status', 'aria-label': t('Wird installiert …') })), extra); @@ -1551,7 +1551,7 @@ function claudeDesktopSettings() { button(t('Übernehmen'), async () => { const signsInItself = view.profiles.find((p) => p.id === selected)?.claudeDesktop; if (!selected || signsInItself || await ensureLogin(selected)) call('set_claude_desktop_profile', { profileId: selected || null }); - }, { cls: 'primary', disabled: (selected === current && (!selected || view.claudeDesktop.applied)) || (!!selected && view.claudeDesktop.managed) })), + }, { disabled: (selected === current && (!selected || view.claudeDesktop.applied)) || (!!selected && view.claudeDesktop.managed) })), h('div', { class: 'section-note' }, t('KeyZapper legt dafür eine Konfigurationsdatei für den Drittanbieter-Modus von Claude Desktop an: Anfragen gehen an das Gateway des Profils, Key oder SSO-Token holt Claude Desktop über den Helper – wie Claude Code –, oder es meldet sich selbst an, wenn das Profil „Claude Desktop (SSO)“ eingerichtet hat. Danach Claude Desktop beenden, neu öffnen und auf dem Anmeldebildschirm den Start mit dieser Konfiguration wählen.'))); } diff --git a/desktop/ui/style.css b/desktop/ui/style.css index feaab6c..1464e20 100644 --- a/desktop/ui/style.css +++ b/desktop/ui/style.css @@ -1,29 +1,33 @@ +/* Studio design: semantic tokens for both themes; the accent is KeyZapper's. */ :root { color-scheme: light dark; - --bg: #f7f7f9; - --sidebar: #ececf1; + --bg: #fcfcfe; + --sidebar: #f3f4f8; --surface: #ffffff; - --surface-2: #f9f9fb; - --text: #18181b; - --muted: #6b6b76; - --border: rgb(0 0 0 / 0.08); - --border-strong: rgb(0 0 0 / 0.15); - --accent: #5b54f0; - --accent-soft: rgb(91 84 240 / 0.11); - --accent-fill: #5b54f0; - --green: #1f8a3c; - --red: #c9302c; - --orange: #b85c00; - --orange-soft: rgb(230 130 0 / 0.13); - --button: rgb(0 0 0 / 0.05); - --button-hover: rgb(0 0 0 / 0.09); - --nav-active: rgb(0 0 0 / 0.07); - --row-hover: rgb(0 0 0 / 0.025); - --track: rgb(0 0 0 / 0.08); - --switch-off: rgb(0 0 0 / 0.18); - --toast: #1f1f24; - --toast-text: #f5f5f7; - --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 1px 3px rgb(0 0 0 / 0.04); + --surface-2: #f7f8fb; + --text: #1b2032; + --muted: #656b7c; + --border: #e3e6ee; + --border-strong: #cbcfda; + --hover: #eceef5; + --accent: #6551dd; + --accent-ink: #ffffff; + --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--bg)); + --accent-fill: var(--accent); + --green: #18785b; + --red: #b53b47; + --orange: #9c5d05; + --orange-soft: color-mix(in srgb, var(--orange) 11%, var(--bg)); + --button: var(--surface); + --button-hover: var(--hover); + --nav-active: var(--accent-soft); + --row-hover: color-mix(in srgb, var(--hover) 45%, transparent); + --track: var(--hover); + --switch-off: #c3c7d3; + --toast: #1b2032; + --toast-text: #f0f2f9; + --shadow: 0 1px 2px rgb(20 26 50 / 0.05); + --shadow-float: 0 14px 40px rgb(20 26 50 / 0.16); --radius: 12px; --titlebar: 0px; --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; @@ -31,30 +35,26 @@ @media (prefers-color-scheme: dark) { :root { - --bg: #1b1b1f; - --sidebar: #232328; - --surface: #26262b; - --surface-2: #2b2b31; - --text: #f2f2f4; - --muted: #a1a1ab; - --border: rgb(255 255 255 / 0.08); - --border-strong: rgb(255 255 255 / 0.16); - --accent: #8b85ff; - --accent-soft: rgb(139 133 255 / 0.16); + --bg: #17191f; + --sidebar: #111319; + --surface: #20232c; + --surface-2: #1b1e25; + --text: #f0f2f9; + --muted: #a3aabc; + --border: #303440; + --border-strong: #454a58; + --hover: #292d39; + --accent: #b2a0ff; + --accent-ink: #17112f; --accent-fill: #6a62f2; - --green: #4cc46b; - --red: #ff6961; - --orange: #ffa94d; - --orange-soft: rgb(255 169 77 / 0.13); - --button: rgb(255 255 255 / 0.08); - --button-hover: rgb(255 255 255 / 0.13); - --nav-active: rgb(255 255 255 / 0.1); - --row-hover: rgb(255 255 255 / 0.03); - --track: rgb(255 255 255 / 0.1); - --switch-off: rgb(255 255 255 / 0.2); - --toast: #3a3a42; - --toast-text: #f5f5f7; + --green: #6bd4a7; + --red: #f09096; + --orange: #edbf6b; + --switch-off: #4a4f5e; + --toast: #2c303c; + --toast-text: #f0f2f9; --shadow: 0 1px 2px rgb(0 0 0 / 0.3); + --shadow-float: 0 18px 48px rgb(0 0 0 / 0.45); } } @@ -67,11 +67,11 @@ html, body { height: 100%; } body { margin: 0; display: grid; - grid-template-columns: 224px minmax(0, 1fr); + grid-template-columns: 200px minmax(0, 1fr); overflow: hidden; background: var(--bg); color: var(--text); - font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; + font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; -webkit-user-select: none; user-select: none; cursor: default; @@ -90,135 +90,144 @@ html.vibrancy body { background: transparent; } .spacer { flex: 1; } [hidden] { display: none !important; } -svg.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; } +svg.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; } -/* Buttons */ +/* Buttons: neutral surface with a hairline; one accent primary per view. */ button, select, input, textarea { font: inherit; color: inherit; } button { - display: inline-flex; align-items: center; justify-content: center; gap: 6px; - padding: 5px 11px; min-height: 28px; - border: none; border-radius: 7px; - background: var(--button); font-weight: 500; cursor: pointer; white-space: nowrap; - transition: background .12s, color .12s, box-shadow .12s; + display: inline-flex; align-items: center; justify-content: center; gap: 7px; + padding: 7px 14px; min-height: 36px; + border: 1px solid var(--border-strong); border-radius: 8px; + background: var(--button); font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap; + transition: background .12s, color .12s, border-color .12s, box-shadow .12s; } button:hover:not(:disabled) { background: var(--button-hover); } -button:disabled { opacity: 0.45; cursor: default; } -button.primary { background: var(--accent-fill); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .18), inset 0 1px 0 rgb(255 255 255 / .15); } -button.primary:hover:not(:disabled) { background: var(--accent-fill); filter: brightness(1.08); } +button:disabled { opacity: 0.5; cursor: default; } +button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .1); } +button.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, var(--text)); border-color: transparent; } button.danger { color: var(--red); } -button.primary.danger { background: var(--red); color: #fff; } -button.link { background: none; padding: 0; min-height: 0; color: var(--accent); font-weight: 400; } +button.primary.danger { background: var(--red); border-color: var(--red); color: var(--accent-ink); } +button.primary.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--red) 88%, var(--text)); } +button.link { background: none; border: none; padding: 0; min-height: 0; color: var(--accent); font-weight: 500; } button.link:hover:not(:disabled) { background: none; text-decoration: underline; } -button.icon-only { padding: 5px; min-width: 28px; background: transparent; color: var(--muted); } -button.icon-only:hover:not(:disabled) { background: var(--button-hover); color: var(--text); } +button.icon-only { padding: 6px; min-width: 32px; min-height: 32px; border-color: transparent; background: transparent; color: var(--muted); } +button.icon-only:hover:not(:disabled) { background: var(--hover); color: var(--text); } button.icon-only.danger:hover:not(:disabled) { color: var(--red); } -button.plain { background: none; padding: 2px; min-height: 0; } +button.plain { background: none; border: none; padding: 2px; min-height: 0; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } input[type=text], input[type=password], input:not([type]), select, textarea { - border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); padding: 5px 8px; min-height: 28px; + border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); padding: 7px 10px; min-height: 36px; +} +input[type=text]:focus-visible, input[type=password]:focus-visible, input:not([type]):focus-visible, select:focus-visible, textarea:focus-visible { + outline-offset: 0; border-color: var(--accent); } select { padding-right: 6px; } -textarea { width: 100%; min-height: 64px; font-family: var(--mono); font-size: 12px; resize: vertical; } -input:disabled, select:disabled, textarea:disabled { opacity: 0.55; } +textarea { width: 100%; min-height: 72px; font-family: var(--mono); font-size: 12px; line-height: 1.55; resize: vertical; } +input:disabled, select:disabled, textarea:disabled { opacity: 0.6; } /* Switches */ input[type=checkbox][role=switch] { --on: var(--accent); - appearance: none; flex: none; width: 32px; height: 18px; border-radius: 9px; background: var(--switch-off); + appearance: none; flex: none; width: 34px; height: 20px; border-radius: 10px; background: var(--switch-off); position: relative; margin: 0; cursor: pointer; transition: background .15s; } input[type=checkbox][role=switch]::after { - content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; + content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .15s; } input[type=checkbox][role=switch]:checked { background: var(--on); } input[type=checkbox][role=switch]:checked::after { transform: translateX(14px); } input[type=checkbox][role=switch]:disabled { cursor: default; } -.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; color: var(--text); } +.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 500; color: var(--text); } .switch input[role=switch] { --on: var(--green); } /* Sidebar */ .sidebar { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow: auto; - padding: calc(var(--titlebar) + 10px) 10px 12px; + padding: calc(var(--titlebar) + 14px) 12px 14px; background: var(--sidebar); } html.vibrancy .sidebar { background: transparent; } -.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; } +.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; font-size: 15px; font-weight: 680; letter-spacing: -0.02em; } .logo { - flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; - background: linear-gradient(135deg, #06b6d4, #635bff); color: #fff; box-shadow: 0 2px 8px rgb(99 91 255 / .35); + flex: none; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; + background: linear-gradient(135deg, #06b6d4, #635bff); color: #fff; box-shadow: 0 1px 3px rgb(40 34 120 / .25); } .logo svg.icon { width: 16px; height: 16px; fill: #fff; stroke: none; } -.logo.big { width: 56px; height: 56px; border-radius: 16px; } +.logo.big { width: 56px; height: 56px; border-radius: 15px; } .logo.big svg.icon { width: 30px; height: 30px; } -.nav-item { justify-content: flex-start; width: 100%; gap: 10px; padding: 6px 10px; background: transparent; color: var(--text); } +.nav-item { + justify-content: flex-start; width: 100%; gap: 9px; padding: 7px 9px; min-height: 36px; + border-color: transparent; background: transparent; color: var(--text); font-weight: 500; text-align: left; +} +.nav-item > span:not(.nav-badge) { white-space: normal; overflow-wrap: anywhere; } .nav-item svg.icon { color: var(--muted); } -.nav-item:hover:not(:disabled) { background: var(--button); } -.nav-item.active, .nav-item.active:hover:not(:disabled) { background: var(--nav-active); } +.nav-item:hover:not(:disabled) { background: var(--hover); } +.nav-item.active, .nav-item.active:hover:not(:disabled) { background: var(--nav-active); color: var(--accent); font-weight: 650; } .nav-item.active svg.icon { color: var(--accent); } -.nav-badge { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--muted); } -.nav-badge.warning { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #fff; text-align: center; } -.sidebar-footer { margin-top: auto; padding: 12px 8px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; } -.sidebar-footer button.link { color: var(--muted); } +.nav-badge { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); } +.nav-badge.warning { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--accent-ink); text-align: center; font-weight: 650; } +.sidebar-footer { margin-top: auto; padding: 14px 8px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 13px; } +.sidebar-footer button.link { color: var(--muted); font-size: 13px; } .sidebar-footer button.link:hover { color: var(--text); } -.version { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 11px; color: var(--muted); } -.version button.link { font-size: 11px; } +.version { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 12px; color: var(--muted); } +.version button.link { font-size: 12px; } /* Content */ .content { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); border-left: 1px solid var(--border); } .drag-strip { flex: none; height: var(--titlebar); } -main { flex: 1; min-height: 0; overflow: auto; padding: 4px 28px 32px; display: flex; flex-direction: column; gap: 14px; } +main { flex: 1; min-height: 0; overflow: auto; padding: 8px 28px 32px; display: flex; flex-direction: column; gap: 16px; } -.page-header { display: flex; align-items: flex-end; gap: 12px; padding: 14px 0 2px; } -.page-title { flex: 1; min-width: 0; } -.page-header h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; } -.page-header p { margin: 3px 0 0; color: var(--muted); max-width: 620px; } -.page-actions { display: flex; align-items: center; gap: 6px; } +.page-header { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 16px; padding: 16px 0 8px; } +.page-title { flex: 1 1 320px; min-width: 0; } +.page-header h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 680; letter-spacing: -0.025em; } +.page-header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; max-width: 640px; } +.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } /* Banners */ -.banner { display: flex; align-items: center; gap: 10px; padding: 9px 28px; border-bottom: 1px solid var(--border); background: var(--accent-soft); } +.banner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 28px; border-bottom: 1px solid var(--border); background: var(--accent-soft); } .banner.warning { background: var(--orange-soft); } .banner.warning > svg { color: var(--orange); } .banner > svg { color: var(--accent); } -.banner-text { flex: 1; } -.banner-title.warning { font-weight: 600; } -.banner .detail { color: var(--muted); } +.banner-text { flex: 1 1 280px; min-width: 0; } +.banner-title { font-weight: 600; } +.banner .detail { color: var(--muted); font-size: 13px; } +.banner.warning .detail { color: color-mix(in srgb, var(--muted) 80%, var(--text)); } /* Empty states */ .empty { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; } -.empty.compact { min-height: 0; padding: 48px 0; border: 1px dashed var(--border-strong); border-radius: var(--radius); } +.empty.compact { min-height: 0; padding: 48px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius); } .empty > svg.icon { width: 36px; height: 36px; color: var(--muted); stroke-width: 1.5; } -.empty h2 { margin: 0; font-size: 18px; } -.empty p { margin: 0; color: var(--muted); max-width: 420px; } +.empty h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; } +.empty p { margin: 0; color: var(--muted); max-width: 440px; } /* Cards */ .card { - background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); - padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; + background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); + padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; } -.card h2 { margin: 0; font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; } +.card h2 { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 650; letter-spacing: -0.01em; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; } .card-head { display: flex; align-items: flex-start; gap: 12px; } -.card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } +.card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .card-title .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.badge { font-size: 11px; font-weight: 500; color: var(--muted); background: var(--button); border-radius: 999px; padding: 1px 7px; } +.badge { font-size: 11px; font-weight: 550; letter-spacing: 0; color: var(--muted); background: var(--hover); border-radius: 6px; padding: 1px 7px; } .avatar { flex: none; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; - background: var(--profile, var(--accent)); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; + background: var(--profile, var(--accent-fill)); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); } .key-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } -.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 7px; } -.chip.ok { color: var(--green); background: color-mix(in srgb, var(--green) 11%, transparent); } -.chip.missing { color: var(--red); background: color-mix(in srgb, var(--red) 11%, transparent); } +.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 10px; border-radius: 8px; } +.chip.ok { color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface)); } +.chip.missing { color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--surface)); } .chip span { color: var(--text); } -.line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } +.line { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; } .check-result { display: flex; gap: 6px; align-items: baseline; } /* Budget */ .budget { display: flex; flex-direction: column; gap: 6px; } -.budget-text { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; } +.budget-text { display: flex; align-items: baseline; gap: 4px 6px; flex-wrap: wrap; } .meter { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; } .meter-fill { height: 100%; border-radius: inherit; background: var(--tone); transition: width .4s ease; } .meter-fill.green { --tone: var(--green); } @@ -227,30 +236,31 @@ main { flex: 1; min-height: 0; overflow: auto; padding: 4px 28px 32px; display: /* Summary */ .summary { - display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; min-height: 46px; - background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); + display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 8px 10px 8px 16px; min-height: 52px; + background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); } -.summary.attention { background: color-mix(in srgb, var(--orange) 7%, var(--surface)); border-color: color-mix(in srgb, var(--orange) 28%, transparent); } +.summary.attention { background: color-mix(in srgb, var(--orange) 7%, var(--surface)); border-color: color-mix(in srgb, var(--orange) 30%, var(--border)); } -/* Projects */ -.projects { display: flex; flex-direction: column; gap: 8px; } +/* Projects: rows with calm separators; the profile color marks the row's edge. */ +.projects { display: flex; flex-direction: column; gap: 10px; } .project-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); overflow: hidden; } -.project-list.standalone { background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); } -.project { position: relative; padding: 9px 10px 9px 16px; display: flex; flex-direction: column; gap: 4px; } -.project::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--profile, var(--border-strong)); } +.profile-card .project-list { margin: 0 -20px; border-width: 1px 0; border-radius: 0; background: transparent; } +.project-list.standalone { background: var(--surface); border-radius: var(--radius); } +.project { position: relative; padding: 11px 12px 11px 20px; display: flex; flex-direction: column; gap: 4px; } +.profile-card .project { padding-left: 24px; padding-right: 16px; } +.project::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--profile, var(--border-strong)); } .project + .project { border-top: 1px solid var(--border); } .project:hover { background: var(--row-hover); } .project-main { display: flex; align-items: center; gap: 10px; } -.project-name { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; } +.project-name { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; } .project-name .mono { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; } -.project select { max-width: 220px; } -.row-actions { display: flex; gap: 1px; opacity: 0; transition: opacity .12s; } -.project:hover .row-actions, .project:focus-within .row-actions { opacity: 1; } +.project select { max-width: 200px; min-width: 0; } +.row-actions { display: flex; gap: 0; } .pill { - display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; border-radius: 999px; - font-size: 11px; font-weight: 600; line-height: 16px; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); + display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; border-radius: 6px; + font-size: 12px; font-weight: 600; line-height: 18px; color: var(--tone); background: color-mix(in srgb, var(--tone) 11%, var(--surface)); } -.pill svg.icon { width: 12px; height: 12px; vertical-align: 0; } +.pill svg.icon { width: 13px; height: 13px; vertical-align: 0; } .pill.green { --tone: var(--green); } .pill.orange { --tone: var(--orange); } .pill.red { --tone: var(--red); } @@ -259,9 +269,9 @@ main { flex: 1; min-height: 0; overflow: auto; padding: 4px 28px 32px; display: .note svg.icon { width: 13px; height: 13px; vertical-align: -2px; } .add-row { width: 100%; padding: 8px; gap: 8px; border: 1px dashed var(--border-strong); background: transparent; - color: var(--muted); font-weight: 400; + color: var(--muted); font-weight: 500; } -.add-row:hover:not(:disabled) { color: var(--text); border-color: var(--accent); background: var(--accent-soft); } +.add-row:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); } /* Drag & drop of folders */ body.dragging .profile-card { outline: 2px dashed color-mix(in srgb, var(--profile) 55%, transparent); outline-offset: 2px; } @@ -273,102 +283,116 @@ body.dragging .project-list.standalone, body.dragging .empty.compact { outline: /* MCP */ .toggle-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .toggle-chip { - display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; + display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 11px 4px 6px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 12px; cursor: pointer; } -.toggle-chip input[type=checkbox][role=switch] { width: 26px; height: 15px; } -.toggle-chip input[type=checkbox][role=switch]::after { width: 11px; height: 11px; } -.toggle-chip input[type=checkbox][role=switch]:checked::after { transform: translateX(11px); } +.toggle-chip input[type=checkbox][role=switch] { width: 26px; height: 16px; } +.toggle-chip input[type=checkbox][role=switch]::after { width: 12px; height: 12px; } +.toggle-chip input[type=checkbox][role=switch]:checked::after { transform: translateX(10px); } .toggle-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--profile, var(--muted)); } .toggle-chip.on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); } .toggle-chip.disabled { opacity: .5; cursor: default; } -.templates h3 { margin: 6px 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; } +.templates h3 { margin: 8px 0 10px; font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; } .template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; } .template { - justify-content: flex-start; gap: 12px; padding: 12px; text-align: left; font-weight: 400; white-space: normal; - background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); + justify-content: flex-start; gap: 12px; padding: 12px 14px; text-align: left; font-size: 14px; font-weight: 400; white-space: normal; + background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); } -.template:hover:not(:disabled) { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 45%, transparent); } +.template:hover:not(:disabled) { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); } .template .avatar { width: 32px; height: 32px; border-radius: 9px; } .template-text { display: flex; flex-direction: column; min-width: 0; flex: 1; } -.switch-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; } -.switch-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; } +.switch-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } +.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; } .switch-row + .switch-row { border-top: 1px solid var(--border); } +.switch-row:hover { background: var(--row-hover); } .switch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .switch-text strong { display: flex; align-items: center; gap: 6px; } .switch-text .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Backup */ -.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; } +.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; } .tile { align-items: flex-start; } +.tile h2 { font-size: 18px; } .tile p { margin: 0; flex: 1; } -.tile-icon { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); } +.tile-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); } .tile-icon svg.icon { width: 20px; height: 20px; } /* Menus */ .menu { - position: fixed; inset: auto; margin: 0; min-width: 210px; padding: 5px; - border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); - box-shadow: 0 12px 32px rgb(0 0 0 / .2); + position: fixed; inset: auto; margin: 0; min-width: 220px; padding: 6px; + border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); + box-shadow: var(--shadow-float); } -.menu button { display: flex; width: 100%; justify-content: flex-start; gap: 8px; padding: 5px 8px; background: none; font-weight: 400; border-radius: 6px; } +.menu button { display: flex; width: 100%; min-height: 32px; justify-content: flex-start; gap: 9px; padding: 6px 9px; border: none; background: none; font-weight: 450; border-radius: 6px; } .menu button svg.icon { color: var(--muted); } -.menu button:hover:not(:disabled), .menu button:focus-visible { background: var(--accent-fill); color: #fff; outline: none; } -.menu button:hover:not(:disabled) svg.icon, .menu button:focus-visible svg.icon { color: #fff; } -.menu button.danger:hover:not(:disabled), .menu button.danger:focus-visible { background: var(--red); } -.menu-separator { height: 1px; margin: 4px 6px; background: var(--border); } +.menu button:hover:not(:disabled), .menu button:focus-visible { background: var(--hover); outline: none; } +.menu button:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); } +.menu button.danger svg.icon { color: var(--red); } +.menu button.danger:hover:not(:disabled), .menu button.danger:focus-visible { background: color-mix(in srgb, var(--red) 10%, var(--surface)); } +.menu-separator { height: 1px; margin: 5px 6px; background: var(--border); } /* Toasts */ .toasts { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: flex; flex-direction: column; gap: 8px; max-width: min(440px, calc(100vw - 40px)); } .toast { - display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px 10px 14px; border-radius: 12px; - background: var(--toast); color: var(--toast-text); box-shadow: 0 12px 32px rgb(0 0 0 / .28); animation: toast-in .22s ease-out; + display: flex; align-items: flex-start; gap: 10px; padding: 11px 8px 11px 14px; border-radius: 12px; + background: var(--toast); color: var(--toast-text); box-shadow: var(--shadow-float); animation: toast-in .22s ease-out; } -.toast > svg.icon { margin-top: 2px; } +.toast > svg.icon { margin-top: 3px; } +.toast > svg.icon.green { color: #6bd4a7; } .toast-text { flex: 1; padding-top: 1px; } -.toast button.icon-only { color: inherit; opacity: .7; min-width: 22px; min-height: 22px; padding: 3px; } +.toast button.icon-only { color: inherit; opacity: .7; min-width: 26px; min-height: 26px; padding: 4px; } .toast button.icon-only:hover:not(:disabled) { background: rgb(255 255 255 / .12); color: inherit; opacity: 1; } @keyframes toast-in { from { transform: translateY(10px); opacity: 0; } } /* Dialogs */ dialog { - padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); - width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 24px 64px rgb(0 0 0 / .3); + padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); + width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-float); } -dialog::backdrop { background: rgb(0 0 0 / .28); } +dialog::backdrop { background: rgb(10 12 24 / .32); } dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 50px); } -.dialog-body { padding: 20px 22px; overflow: auto; display: flex; flex-direction: column; gap: 14px; } -.dialog-body h2 { margin: 0; font-size: 17px; } -.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--border); background: var(--surface-2); } +.dialog-body { padding: 22px 24px; overflow: auto; display: flex; flex-direction: column; gap: 16px; } +.dialog-body h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -0.015em; } +.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface); } .dialog-actions .left { margin-right: auto; } -fieldset { border: 1px solid var(--border); border-radius: 10px; margin: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; } -legend { font-weight: 600; padding: 0 4px; } -.field { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 8px; } +fieldset { border: 1px solid var(--border); border-radius: var(--radius); margin: 0; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; } +legend { font-weight: 650; padding: 0 6px; } +.field { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 10px; } .field > label { color: var(--muted); } .field input, .field select { width: 100%; } -.field-note { margin-left: 148px; font-size: 12px; } -.field textarea { min-height: 48px; } +.field-note { margin-left: 160px; font-size: 12px; } +.field textarea { min-height: 52px; } .check { display: flex; gap: 8px; align-items: baseline; cursor: pointer; } -.section-note { font-size: 12px; color: var(--muted); } -.error-text { color: var(--red); font-size: 12px; } +.section-note { font-size: 12px; line-height: 1.55; color: var(--muted); } +.error-text { color: var(--red); font-size: 12px; font-weight: 500; } .alert-message { white-space: pre-wrap; } .flow { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; } -.flow-node { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; padding: 8px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 12px; } +.flow-node { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; padding: 10px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 12px; } .flow-node svg.icon { width: 20px; height: 20px; color: var(--accent); } .flow-node .mono { font-size: 11px; color: var(--muted); } .step { display: flex; gap: 10px; align-items: baseline; } -.step-number { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-fill); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; } +.step-number { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; } .finding { display: flex; gap: 6px; align-items: baseline; } .whats-new { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; } .goal { display: flex; gap: 8px; align-items: baseline; cursor: pointer; } -.goal input { margin: 0; flex: none; } -.recommendations { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 12px; align-items: baseline; } +.goal input { margin: 0; flex: none; accent-color: var(--accent); } +.recommendations { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 12px; align-items: baseline; } textarea.document { min-height: 300px; } +/* Narrow windows and dialogs: tighter margins, labels above their fields. */ +@media (max-width: 940px) { + main { padding: 4px 20px 24px; } + .banner { padding: 10px 20px; } +} +@media (max-width: 600px) { + .field { grid-template-columns: minmax(0, 1fr); gap: 4px; } + .field-note { margin-left: 0; } +} + .tooltip { - position: fixed; inset: auto; margin: 0; max-width: 300px; padding: 4px 8px; border: none; border-radius: 6px; - background: var(--text); color: var(--surface); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; + position: fixed; inset: auto; margin: 0; max-width: 300px; padding: 5px 9px; border: none; border-radius: 6px; + background: var(--text); color: var(--surface); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; pointer-events: none; box-shadow: 0 4px 12px rgb(0 0 0 / .2); } @@ -376,20 +400,25 @@ textarea.document { min-height: 300px; } @keyframes spin { to { transform: rotate(360deg); } } /* Tray popover (usage.html): as high as its content, the middle scrolls beyond the window's maximum. */ -body.popover-window { display: block; border-radius: 10px; border: 1px solid var(--border-strong); overflow: hidden; } -html.vibrancy body.popover-window { border: none; } +body.popover-window { display: block; font-size: 13px; background: var(--bg); border-radius: 12px; border: 1px solid var(--border-strong); overflow: hidden; } +html.vibrancy body.popover-window { border: none; background: transparent; } .popover { display: flex; flex-direction: column; max-height: 100%; } .popover-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 14px; font-size: 14px; } .popover-head .logo { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; } .popover-head .logo svg.icon { width: 13px; height: 13px; } .popover-body { flex: 0 1 auto; overflow-y: auto; padding: 0 12px 2px; display: flex; flex-direction: column; gap: 10px; } -.popover-section { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); } +.popover-section { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); } html.vibrancy .popover-section { background: color-mix(in srgb, var(--surface) 55%, transparent); } -.popover-title { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); } +.popover-title { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .popover-title .badge { text-transform: none; letter-spacing: 0; color: var(--accent); background: var(--accent-soft); } .popover-row { display: flex; flex-direction: column; gap: 4px; } .popover-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; } .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; } -.popover-attention { justify-content: flex-start; width: 100%; gap: 8px; text-align: left; background: var(--orange-soft); } +.popover-attention { justify-content: flex-start; width: 100%; gap: 8px; text-align: left; border-color: color-mix(in srgb, var(--orange) 30%, var(--border)); background: var(--orange-soft); } .popover-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px 12px; } .spinning svg.icon { animation: spin 0.8s linear infinite; } + +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; } + .spinner, .spinning svg.icon { animation-duration: 2.4s !important; } +} diff --git a/docs/design/claude-desktop-studio.md b/docs/design/claude-desktop-studio.md new file mode 100644 index 0000000..c95b764 --- /dev/null +++ b/docs/design/claude-desktop-studio.md @@ -0,0 +1,123 @@ +# Claude-Auftrag: Studio-Design für ClaudeKeyZapper + +Stand: 7. November 2026 · Umsetzungsvorgabe für dieses Repository + +## Auftrag und Umfang + +Setze die Desktop-Oberfläche dieses Repositories nach der gemeinsamen Designrichtung **Studio – modern & markant** um. Ziel ist eine hochwertige Produktfamilie aus Weave, OpenVizPilot, KeyZapper, OpenReleasePilot und OpenSitePilot: gleiche gestalterische Regeln, aber aufgabengerechte Ansichten pro App. Arbeite ausschließlich im unten genannten Repository und erhalte dessen vollständigen aktuellen Funktionsumfang. + +Dies ist ein konkreter UI-Implementierungsauftrag, keine Aufforderung zu einem weiteren Konzeptpapier. Lies zuerst die geltenden Repository-Anweisungen, prüfe Branch und Arbeitsbaum und erhalte fremde Änderungen. Verwende das vorhandene Tauri-2-/HTML-/CSS-/JavaScript-System. Kein Frameworkwechsel, keine neue Build-Kette, kein gemeinsames Monorepo und kein neues UI-Paket. Gemeinsame Regeln werden lokal umgesetzt; keine Imports aus Geschwister-Repositories. Backend- oder native Änderungen nur, soweit sie für die konkrete Darstellung/Fenstergröße erforderlich sind. + +Die Aufgabe endet mit lokal geprüfter Umsetzung und einem knappen Ergebnisbericht. Commit, Push, PR-Veröffentlichung, Release, Installation oder produktive externe Aktionen sind durch diese Anleitung nicht zusätzlich beauftragt. Bereits separat erteilte Freigaben gelten weiter. + +## Visuelle Referenz und ihre Grenzen + +Zusätzliche lokale Referenz: [Klickbarer Studio-Entwurf](/Users/matze/.codex/visualizations/2026/11/07/01a1b59c-f00f-78b2-99cc-17498d931bc5/desktop-studio.html). Darin die unten genannte App auswählen und beide Erscheinungsbilder sowie die passenden Ansichten ansehen. Die Datei ist ein HTML-Fragment für die Chat-Vorschau, keine startfertige Anwendung. Die Spezifikation in dieser Markdown-Datei ist auch ohne Zugriff auf die Vorschau vollständig genug zur Umsetzung. + +**Übernimm die Gestaltung, nicht die Demo-Implementierung.** Insbesondere: + +- Die obere App-Auswahl, „Desktop Studio“, „Designkonzept“, Beschreibungen außerhalb des Fensters und der Vorschau-Schalter Hell/Dunkel gehören nicht in die App. Keine neue App-übergreifende Navigation bauen. +- Gezeichnete macOS-Fensterknöpfe sind Vorschau-Chrome. In der App native Titelleiste/Buttons und vorhandene Drag-Regionen respektieren; keine zweite Titelleiste oder nachgebauten Traffic Lights hinzufügen. +- Beispielnamen, Fragen, Antworten, Versionen, Budgetwerte, URLs, Konten, Statuswerte, Quellen und Freigaben dürfen nicht fest in Produktansichten übernommen werden. Echte Daten und bestehende Zustandsmodelle verwenden. +- Die kleinen Mockup-Dialoge vereinfachen den Funktionsumfang. Aktuelle Felder, Optionen, Validierungen, Aktionen, Plattformunterschiede und verwaltete Vorgaben vollständig erhalten, auch wenn sie in der Vorschau fehlen. +- Keine Simulation, Timer-Erfolgsmeldung, optimistische „fertig“-Markierung oder lokale Demo-Zustandsmaschine anstelle realer Rückmeldungen übernehmen. Kein externes Icon-CDN, keine Vorschau-Hilfen wie `Tweak`/`window.openai`, keine Aufweichung von CSP/Capabilities. +- Der aktuelle Produktcode und dokumentierte Verträge bestimmen Funktionen und Berechtigungen. Die Referenz bestimmt Hierarchie, Abstände, Flächen, Typografie und Gewichtung. Bei einem Konflikt die Gestaltung an den echten Funktionsumfang anpassen. + +## Gemeinsame Designvorgaben + +### Flächen und Farben + +Semantische CSS-Variablen verwenden und vorhandene Tokens weiterentwickeln. Die Namen unten sind Rollen, keine Pflicht zum Umbenennen bestehender Variablen. Systemdarstellung bzw. vorhandene Theme-Einstellung beibehalten; beide Themes gleichwertig gestalten. Keine zusätzliche Theme-Einstellung nur deshalb einführen, weil die Vorschau einen Umschalter enthält. + +| Rolle | Hell | Dunkel | +|---|---|---| +| Hauptfläche | `#fcfcfe` | `#17191f` | +| Sidebar / zurückgesetzte Fläche | `#f3f4f8` | `#111319` | +| Karten / Eingaben / Dialoge | `#ffffff` | `#20232c` | +| Primärer Text | `#1b2032` | `#f0f2f9` | +| Sekundärer Text | `#656b7c` | `#a3aabc` | +| Trennlinien | `#e3e6ee` | `#303440` | +| Hover / neutrale Hervorhebung | `#eceef5` | `#292d39` | +| Erfolg | `#18785b` | `#6bd4a7` | +| Hinweis / Aufmerksamkeit | `#9c5d05` | `#edbf6b` | +| Fehler | `#b53b47` | `#f09096` | + +App-Akzent siehe unten. Aktive Navigation und dezente Hervorhebungen erhalten etwa 10 % Akzent auf der jeweiligen Fläche. Primärbuttons nutzen den vollen Akzent, mit weißer Beschriftung im hellen Theme und sehr dunkler Beschriftung auf dem helleren Dunkelmodus-Akzent; Kontrast am tatsächlichen Hintergrund prüfen. Farben ergänzen Text und Symbole, ersetzen sie nicht. Keine großflächigen dekorativen Verläufe oder neue Markenlogos; vorhandene Produktassets weiterverwenden. + +### Typografie und Geometrie + +- Systemschrift: `-apple-system`, `BlinkMacSystemFont`, `Segoe UI`, `system-ui`, `sans-serif`; keine Webfont-Abhängigkeit. +- Fließtext 14 px, längere Antworten 14–15 px mit etwa 1,65 Zeilenhöhe. Sekundärtext 12 px; 11 px nur für wenig wichtige Metadaten, nicht für zentrale Aktionen oder Fehlermeldungen. +- Seitentitel 26–29 px, Gewicht etwa 650–700, dezentes negatives Letterspacing; Abschnittstitel 18 px, Elementüberschriften 14 px/600–650. Keine große Marketingüberschrift zulasten von Inhalt; Seitentitel bleiben fachlich verständlich. +- Abstandsraster 4/8/12/16/24/32 px. Inhaltsränder meist 24–28 px, auf schmalen Fenstern 16 px. Verwandte Elemente enger gruppieren als unabhängige Abschnitte. +- Buttons und Eingaben Radius 8 px; Karten 12 px; Composer und Dialoge 12–16 px. Fensterrahmen bleiben nativ. Schatten sparsam für schwebende Flächen und Dialoge, keine Schattenkachel um jeden Inhalt. +- Reguläre Controls ungefähr 36 px hoch; verständliche Beschriftungen, ausreichende Klickflächen und sichtbarer Tastaturfokus. Wichtige Aktionen nicht ausschließlich als unbeschriftete Icons anbieten. +- Eine dominante Primäraktion pro Ansicht. Nebenaktionen als neutrale Buttons oder beschriftetes Menü; destruktive Aktionen eindeutig unterscheiden. Kontextaktionen beim betroffenen Objekt halten. +- Tabellen mit ruhigen horizontalen Trennlinien und klaren Zeilen; keine unnötigen Dashboard-Kennzahlen. Lange Namen und Pfade dürfen Aktionen nicht verdrängen. + +### Verhalten, Zugänglichkeit und Qualität + +Alle bestehenden Zustände gestalten: Einrichtung, Anmeldung/Abmeldung, leer, lädt, erfolgreich, fehlgeschlagen, abgebrochen, gesperrt/verwaltet und veraltete/unbekannte Daten. Bei deaktivierten wichtigen Aktionen den Grund zugänglich erklären. Wesentliche Information nicht in reine Hover-Tooltips verschieben. + +Native Controls, sinnvolle Labels, Fokusreihenfolge, Escape und Fokus-Rückgabe bei Dialogen erhalten. Statuswechsel angemessen ankündigen; nicht jedes gestreamte Token vorlesen. Reduzierte Bewegung respektieren. Bestehende Sprachen und Übersetzungsmechanismen vollständig mitziehen. + +Inhalt bleibt bei Fensteränderungen stabil: keine verlorene Eingabe, springende Textauswahl, gestohlener Fokus, neu startende Animation oder verlorene Scrollposition durch unnötigen DOM-Neuaufbau. Gestreamte Antworten und Logausgaben dürfen die Oberfläche nicht blockieren. Desktop-Fenster bei Standard- und Mindestgröße sowie vergrößerter Schrift prüfen; nicht das Vorschau-Layout starr skalieren. + +## ClaudeKeyZapper: konkrete Umsetzung + +**Zielrepo:** `ClaudeKeyZapper`, aktuelle Desktop-Oberfläche in `desktop/ui/`. Produktname in der UI bleibt **KeyZapper**. **Referenzansichten:** KeyZapper → Profile, Projekte, weitere bestehende Seiten und Dialoge. **Akzent:** hell `#6551dd`, dunkel `#b2a0ff`. Vorhandenes Markenasset `Resources/AppIcon.svg` bzw. dessen bereits verwendete Ableitung weiterverwenden. + +### Einstieg und betroffene Dateien + +| Zuständigkeit | Datei | +|---|---| +| Aktuelles Verhalten und Regeln | [README](../../README.md), [AGENTS](../../AGENTS.md) | +| Navigation, Karten, Projekte, Dialoge | [app.js](../../desktop/ui/app.js), [index.html](../../desktop/ui/index.html) | +| Gemeinsame Darstellung | [style.css](../../desktop/ui/style.css) | +| Separates Nutzungsfenster | [usage.html](../../desktop/ui/usage.html) | +| Englische Übersetzung / Prüfer | [en.json](../../desktop/locales/en.json), [l10n_check.py](../../desktop/scripts/l10n_check.py) | +| Natives Verhalten und Tests | [Desktop-Workspace](../../desktop/Cargo.toml), `desktop/core/`, `desktop/src-tauri/` | + +1. **App-Rahmen:** bestehende Sidebar mit „Profile“, „Projekte“, „MCP-Server“, „Claude-Tools“, „Claude-Einstellungen“ und „Backup“ übernehmen, einschließlich policyabhängiger Sichtbarkeit. Aktivierung, Updates und sonstige aktuelle Fußzeilenaktionen weiterhin erreichbar halten; nicht durch die vereinfachte Mockup-Fußzeile ersetzen. Breite grob 180–200 px, deutlicher aktiver Eintrag, kompakte Nebenaktionen. Auf schmalen unterstützten Fenstern keine Labels oder Aktionen abschneiden. +2. **Profile:** eine zusammengehörige Karte pro Zugang. Reihenfolge: Name und Zugangsart → echter Verbindungs-/Anmeldezustand → passende Zugangsinformationen und tatsächliches Budget/Nutzung → zugeordnete Projekte. Fehlende Budgets nicht durch 0 oder Demo-Zahlen ersetzen. Vorhandene Account-/Office-/Modell-/Reset-/Poolinformationen erhalten, wo sie zur jeweiligen Zugangsart gehören. „Neues Profil“ als Primäraktion, „Projekt zuordnen“ klar sichtbar als Nebenaktion. +3. **Projekte:** Zuordnung und Zustandsprobleme direkt an der Projektzeile zeigen. Lange Ordnerpfade sekundär darstellen und zugänglich vollständig lesbar halten. Reparatur, Zuordnung, Entfernen und bestehende Projektaktionen bleiben erreichbar. Nach einer Änderung tatsächlichen Backend-Zustand neu lesen; kein verschwundener Fehler nur wegen Klick auf „Reparieren“. +4. **Drei Zugangsarten:** LiteLLM-/Gateway-Schlüssel, SSO und Claude-Abonnement visuell gleichwertig, fachlich unterscheidbar. Keine identischen Pflichtfelder für alle drei. Bei SSO keine Schlüsselkopie oder Poolaktionen vortäuschen. Das Abonnementprofil nicht als API-Schlüsselprofil darstellen. Bestehende Prüfungen und Profil-Menüs vollständig erhalten. +5. **Weitere Seiten:** MCP-Server, Claude-Tools, Claude-Einstellungen und Backup sowie alle vorhandenen Unterdialoge mit denselben Controls, Flächen, Tabellen-/Zeilenregeln und Zustandsmustern gestalten. Der Mockup enthält dort nur repräsentative Ausschnitte; keine vorhandenen Funktionen entfernen oder durch statische „Öffnen“-Platzhalter ersetzen. Kataloge, Projektzuordnungen, Import-/Exportoptionen und Verwaltungsbeschränkungen aus dem aktuellen Code übernehmen. +6. **Dialoge:** klare Titel, korrekte Felder je Profiltyp, verständliche Validierungsfehler und eindeutige Aktion. Bestehende Lösch-/Import-/Export-/Ersetzen-Bestätigungen erhalten. Eingabe und Cursor bei Live-Aktualisierungen stabil halten. Änderungen an Profilen oder Projektbindungen müssen die vorhandenen Hinweise zum Neustart einer Claude-Sitzung weiter vermitteln. +7. **Zusätzliche Fenster / Tray:** `usage.html`, Tray-Aktionen und bestehende native Fensterbehandlung mit berücksichtigen. Gemeinsames CSS darf das Nutzungsfenster nicht versehentlich im Hauptfensterlayout darstellen. + +### Unverhandelbare Funktionsgrenzen + +- Credentials bleiben in vorhandenen sicheren Speichern und Rust-/Core-Abläufen. Keine echten Schlüssel in UI-Demos, Logs, Screenshots, Fixtures oder JavaScript-Persistenz. In Ansichten nur vorhandene sichere Maskierung verwenden. +- Profilzuordnung, Credential-Routing, Pool-/Budgetregeln, verwaltete Werte, erlaubte Hosts und vorhandene Sperren bleiben unverändert. Fehler bei einem Zugang dürfen keinen stillen Fallback auf einen anderen auslösen. +- German-source `t(...)` und gegebenenfalls Rust-`l!(...)` weiter nutzen; englische Übersetzungen in `desktop/locales/en.json` und `%@`-Platzhalter konsistent halten. Nicht einfach Mockup-Texte ohne Übersetzung einfügen. +- Kein echter Keychain-Umbau, Login, Profilwechsel für reale Arbeitsprojekte, Import oder Export privater Konfiguration als gewöhnlicher UI-Test. Testzustände synthetisch und isoliert anlegen. +- Benutzer-, IT- und Zugangsart-Beschränkungen dürfen durch neue Menüs, vereinfachte Dialoge oder ausgeblendete Detailbereiche nicht umgangen werden. + +### Prüfen und abnehmen + +Vorhandenes Setup verwenden. Vom Repository-Root: + +```sh +node --input-type=module --check < desktop/ui/app.js +``` + +Bei geänderten Texten den bestehenden Lokalisierungscheck aus `desktop/` ausführen: + +```sh +python3 scripts/l10n_check.py +``` + +Die App aus `desktop/` mit `npm run dev` starten. Nur wenn Core-/Rust-Verhalten betroffen ist, passende Tests aus `desktop/` verwenden, z. B. `cargo test --locked -p keyzapper-core `. Kein pauschaler Paketbau für CSS; bei notwendiger Paketvalidierung die aktuellen CI-/Build-Skripte verwenden. Kein nicht vorhandenes `npm test`-/Lint-/Typecheck-Skript erfinden. + +Abnahme: alle aktuellen Navigationsbereiche und relevante Dialoge in Hell/Dunkel, Standard-/Mindestfenstergröße aus aktueller Tauri-Konfiguration, Deutsch/Englisch, lange Namen/Pfade, viele/keine Profile, alle drei Zugangsarten, fehlender Schlüssel/Ordner, abgelaufene Anmeldung, Budget unbekannt/erreicht, verwaltete Profile, policybedingt verborgene Funktionen, Tastatur/Modalfokus und Nutzungsfenster. macOS und Windows sind Zielplattformen. Native Checks nur für tatsächlich verfügbare Systeme behaupten. + +## Arbeitsfolge und Fertigkriterien + +1. Aktuellen UI-Zustand und native Fenstergrenzen anhand der genannten Dateien erfassen. Die Referenz mit realen Funktionen abgleichen; keine erneute Vollrepo-Analyse oder Roadmap anlegen. +2. Lokale Designtokens und bestehende Controls anpassen, dann die spezifischen Hauptansichten, Nebenansichten und vollständigen Dialoge. Bestehende Daten-/Command-Schnittstellen verwenden. Falls nur die Darstellung betroffen ist, Rust unverändert lassen. +3. Relevante Zustände, Interaktionen und beide Themes prüfen. Für tatsächliche Verhaltensänderungen fokussierte Regressionstests hinzufügen; keine Tests, die nur CSS-Werte oder diese Anleitung nacherzählen. Syntaxprüfung und Mockup-Screenshots sind kein Nachweis nativer Funktion. +4. Den finalen Diff auf unbeabsichtigte Funktionsverluste und abgeschwächte Guards prüfen. Nur wenn die Umsetzung dokumentiertes Verhalten verändert, bestehende passende Dokumentation aktualisieren. +5. Knapp berichten: umgesetzte Ansichten, wichtige Dateien, tatsächlich geprüfte Plattformen/Interaktionen, relevante Screenshots und verbleibende Blocker. Ungeprüfte native Integration ausdrücklich von geprüftem Browser-Rendering unterscheiden. Keine Umsetzung als fertig melden, wenn wichtige vorhandene Dialoge oder Zustände nur Platzhalter sind. + +**Fertig ist die Aufgabe, wenn** die betroffenen vollständigen Oberflächen erkennbar der Studio-Familie entsprechen, alle bisherigen Funktionen und Schutzmechanismen erhalten sind, zentrale Abläufe und Fehlerzustände geprüft wurden und die Umsetzung mit einem fokussierten Diff reviewbar ist. Danach stoppen; kein anschließendes Refactoring oder weiterer Produktumfang.