From 6f8fb561c607f7ce754d57668538d12a3ec0b9d9 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 7 Dec 2025 23:26:28 +0100 Subject: [PATCH] ui: tidy tables, links, and hide redundant voice wake forwarder --- .../Clawdis/Resources/WebChat/webchat.bundle.js | 2 +- apps/macos/Sources/Clawdis/SessionsSettings.swift | 10 ++++++---- apps/macos/Sources/Clawdis/ToolsSettings.swift | 10 ++++++++-- apps/macos/Sources/Clawdis/VoiceWakeSettings.swift | 14 -------------- 4 files changed, 15 insertions(+), 21 deletions(-) diff --git a/apps/macos/Sources/Clawdis/Resources/WebChat/webchat.bundle.js b/apps/macos/Sources/Clawdis/Resources/WebChat/webchat.bundle.js index 73a902648..9fe72d028 100644 --- a/apps/macos/Sources/Clawdis/Resources/WebChat/webchat.bundle.js +++ b/apps/macos/Sources/Clawdis/Resources/WebChat/webchat.bundle.js @@ -135676,7 +135676,7 @@ var init_katex = __esmMin((() => { })); //#endregion -//#region node_modules/.pnpm/marked@16.4.2/node_modules/marked/lib/marked.esm.js +//#region node_modules/.pnpm/@mariozechner+mini-lit@0.2.1_lit@3.3.1_tailwindcss@4.1.17/node_modules/@mariozechner/mini-lit/node_modules/marked/lib/marked.esm.js /** * marked v16.4.2 - a markdown parser * Copyright (c) 2018-2025, MarkedJS. (MIT License) diff --git a/apps/macos/Sources/Clawdis/SessionsSettings.swift b/apps/macos/Sources/Clawdis/SessionsSettings.swift index e3721c3df..c61694b1d 100644 --- a/apps/macos/Sources/Clawdis/SessionsSettings.swift +++ b/apps/macos/Sources/Clawdis/SessionsSettings.swift @@ -101,7 +101,9 @@ struct SessionsSettings: View { Text(row.key) .font(.body.weight(.semibold)) HStack(spacing: 6) { - SessionKindBadge(kind: row.kind) + if row.kind != .direct { + SessionKindBadge(kind: row.kind) + } if !row.flagLabels.isEmpty { ForEach(row.flagLabels, id: \.self) { flag in Badge(text: flag) @@ -110,17 +112,17 @@ struct SessionsSettings: View { } } } - .width(170) + .width(220) TableColumn("Updated", value: \.ageText) - .width(80) + .width(70) TableColumn("Tokens") { row in Text(row.tokens.summary) .font(.caption) .foregroundStyle(.secondary) } - .width(210) + .width(170) TableColumn("Model") { row in Text(row.model ?? "—") diff --git a/apps/macos/Sources/Clawdis/ToolsSettings.swift b/apps/macos/Sources/Clawdis/ToolsSettings.swift index 69479673f..83cbf89cc 100644 --- a/apps/macos/Sources/Clawdis/ToolsSettings.swift +++ b/apps/macos/Sources/Clawdis/ToolsSettings.swift @@ -204,6 +204,7 @@ private struct ToolRow: View { let tool: ToolEntry @State private var state: InstallState = .checking @State private var statusMessage: String? + @State private var linkHovering = false private enum Layout { // Ensure progress indicators and buttons occupy the same space so the row doesn't shift. @@ -214,8 +215,13 @@ private struct ToolRow: View { VStack(alignment: .leading, spacing: 6) { HStack(alignment: .top, spacing: 10) { VStack(alignment: .leading, spacing: 4) { - Link(self.tool.name, destination: self.tool.url) - .font(.headline) + Link(destination: self.tool.url) { + Text(self.tool.name) + .font(.headline) + .underline(self.linkHovering, color: .accentColor) + } + .foregroundColor(.accentColor) + .onHover { self.linkHovering = $0 } Text(self.tool.description) .font(.subheadline) .foregroundStyle(.secondary) diff --git a/apps/macos/Sources/Clawdis/VoiceWakeSettings.swift b/apps/macos/Sources/Clawdis/VoiceWakeSettings.swift index c57fb0a92..f06831ad2 100644 --- a/apps/macos/Sources/Clawdis/VoiceWakeSettings.swift +++ b/apps/macos/Sources/Clawdis/VoiceWakeSettings.swift @@ -60,20 +60,6 @@ struct VoiceWakeSettings: View { self.micPicker self.levelMeter - if self.state.connectionMode == .remote { - VoiceWakeForwardSection( - enabled: Binding.constant(true), - target: self.$state.remoteTarget, - identity: self.$state.remoteIdentity, - command: self.$state.voiceWakeForwardCommand, - showAdvanced: self.$showForwardAdvanced, - status: self.$forwardStatus, - onTest: { Task { await self.checkForwardConnection() } }, - onChange: self.forwardConfigChanged, - showToggle: false, - title: "Voice Wake uses remote host", - subtitle: "SSH uses your remote Clawdis settings.") - } VoiceWakeTestCard( testState: self.$testState,