Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

feat(kit): give bot settings and details the Settings layout

leepokai458d96841c9f
diff --git a/docs/design/ui-conventions.md b/docs/design/ui-conventions.md
index 6516635b..7523ed9b 100644
--- a/docs/design/ui-conventions.md
+++ b/docs/design/ui-conventions.md
@@ -64,7 +64,7 @@ Model discovery keeps loading and refresh in one fixed-size slot beside the Mode
## macOS conversation details
-The details inspector uses a compact device summary instead of an empty screen preview. Keep the computer name, remote-screen state, and iPhone hint together; show the hint only when screen capture is ready. Use 16-point horizontal insets, 28-point section gaps, and 12-point corner radii on flat surfaces, without borders.
+The details inspector uses a compact device summary instead of an empty screen preview. Keep the computer name, remote-screen state, and iPhone hint together; show the hint only when screen capture is ready. Use 16-point horizontal insets and 28-point section gaps. Its sections (computer, Routines, Agent) and the Settings tab (`BotSettingsForm`: Profile, Agent, Activity, Connectors, Skills, Memory) use the `CardSection` look: filled 16-point groups without borders, hairline-split rows, a note under each option.
Routines are a compact grouped list: name, a one-line schedule (or the live run state), and an on/off switch per row; tapping a row opens the same form as +, filled in, with delete and test run beside Save. On the Mac the form card fits its content. The header's chat button asks the bot (puts "I want a routine that " in the composer); + opens the form, where When to run is a type choice and cron is typed directly. The empty state is one line of text. A saved webhook routine's form shows the public URL and key as filled monospaced rows with copy, show/hide and replace-key (confirmed) icon buttons, and one caption on how to send and that deliveries pass through the Codync cloud. Agent metadata uses Runtime and Workspace labels for personal bots, or Project folder for explicitly configured projects; project paths remain selectable and wrap. Personal workspace paths stay out of the default details UI. Keep status and section headings readable in both appearances through `Palette`.
diff --git a/kit/Sources/CodyncUI/Bots/AgentModelPicker.swift b/kit/Sources/CodyncUI/Bots/AgentModelPicker.swift
index 3afa9288..4cbef2a5 100644
--- a/kit/Sources/CodyncUI/Bots/AgentModelPicker.swift
+++ b/kit/Sources/CodyncUI/Bots/AgentModelPicker.swift
@@ -57,9 +57,9 @@ struct AgentModelPicker: View {
.multilineTextAlignment(.trailing)
.textFieldStyle(.plain)
.frame(minWidth: 0, maxWidth: InterfaceMetrics.value(mac: 160, mobile: 180))
- .pill()
+ .outlinedPill()
} else {
- ChoicePicker(selection: value, options: options, fill: Palette.background, fitsAvailableWidth: true)
+ ChoicePicker(selection: value, options: options, fitsAvailableWidth: true)
}
}
}
diff --git a/kit/Sources/CodyncUI/Bots/BotEditorView.swift b/kit/Sources/CodyncUI/Bots/BotEditorView.swift
index 5909fada..5e1d1003 100644
--- a/kit/Sources/CodyncUI/Bots/BotEditorView.swift
+++ b/kit/Sources/CodyncUI/Bots/BotEditorView.swift
@@ -103,7 +103,7 @@ public struct BotSettingsPanel: View {
}
}
-/// Grok Bot-style bot settings: a big avatar, labeled fields, and one card of options.
+/// Bot settings: a big avatar (Grok Bot's), then sections in the Settings style (`CardSection`).
struct BotSettingsForm: View {
@Binding var draft: BotDraft
let error: String?
@@ -117,7 +117,7 @@ struct BotSettingsForm: View {
var body: some View {
ScrollView {
- VStack(alignment: .leading, spacing: InterfaceMetrics.value(mac: 12, mobile: 18)) {
+ VStack(alignment: .leading, spacing: InterfaceMetrics.value(mac: 24, mobile: 30)) {
VStack(spacing: InterfaceMetrics.value(mac: 12, mobile: 16)) {
#if os(macOS)
Button { pickingAvatar.toggle() } label: {
@@ -145,55 +145,55 @@ struct BotSettingsForm: View {
}
.frame(maxWidth: .infinity)
- // A new bot is named from its first conversations (Grok Bot's flow); rename it any time after.
- if draft.id != nil {
- Field("Name") {
- TextField("Name", text: $draft.name).fieldBox()
+ CardSection("Profile") {
+ // A new bot is named from its first conversations (Grok Bot's flow); rename it any time after.
+ if draft.id != nil {
+ Field("Name") {
+ TextField("Name", text: $draft.name).fieldBox()
+ }
+ }
+ Field("Standing instructions", detail: "Rules that always apply. Put task-specific requests in the chat instead.") {
+ TextField("e.g. Reviews PRs. Never pushes without asking.", text: $draft.description, axis: .vertical)
+ .lineLimit(3...8)
+ .fieldBox()
}
- }
- Field("Standing instructions") {
- TextField("e.g. Reviews PRs. Never pushes without asking.", text: $draft.description, axis: .vertical)
- .lineLimit(3...8)
- .fieldBox()
- Text("Rules that always apply. Put task-specific requests in the chat instead.")
- .appFont(.caption)
- .foregroundStyle(Palette.tertiary)
}
- // Grok-style option card: no dividers, values in outlined pills.
- VStack(alignment: .leading, spacing: InterfaceMetrics.value(mac: 12, mobile: 20)) {
- OptionRow("Computer") {
- if let computer {
- ChoicePicker(selection: computer, options: computers, fill: Palette.background,
- fitsAvailableWidth: true)
- .accessibilityLabel("Computer")
- } else {
- Text(model.hostName)
- .lineLimit(1)
- .foregroundStyle(Palette.secondary)
+ CardSection("Agent") {
+ VStack(alignment: .leading, spacing: 6) {
+ ValueRow("Computer") {
+ if let computer {
+ ChoicePicker(selection: computer, options: computers, fitsAvailableWidth: true)
+ .accessibilityLabel("Computer")
+ } else {
+ Text(model.hostName).lineLimit(1)
+ }
+ }
+ if computer != nil, model.connection != .online {
+ Text("Connect this computer to create the bot, or choose another computer.")
+ .appFont(.caption).foregroundStyle(Palette.warning)
}
}
- if computer != nil, model.connection != .online {
- Text("Connect this computer to create the bot, or choose another computer.")
- .appFont(.caption).foregroundStyle(Palette.warning)
- }
- OptionRow("Agent") {
- ChoicePicker(selection: $draft.backend,
- options: (model.hello?.backends ?? []).map { ($0.id, $0.available ? $0.name : "\($0.name) (not installed)") } + [("custom", "Custom command")],
- fill: Palette.background)
- }
- if let b = model.hello?.backends.first(where: { $0.id == draft.backend }), !b.available {
- Text(b.installHint).appFont(.caption).foregroundStyle(Palette.warning)
- .frame(maxWidth: .infinity, alignment: .leading)
- }
- if draft.backend == "custom" {
- TextField("ACP command, e.g. my-agent --acp", text: Binding(get: { draft.command ?? "" }, set: { draft.command = $0.isEmpty ? nil : $0 }))
- .appFont(.callout.monospaced())
- .plainTextInput()
- .fieldBox()
+ VStack(alignment: .leading, spacing: 8) {
+ ValueRow("Agent") {
+ ChoicePicker(selection: $draft.backend,
+ options: (model.hello?.backends ?? []).map { ($0.id, $0.available ? $0.name : "\($0.name) (not installed)") } + [("custom", "Custom command")])
+ }
+ if let b = model.hello?.backends.first(where: { $0.id == draft.backend }), !b.available {
+ Text(b.installHint).appFont(.caption).foregroundStyle(Palette.warning)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ }
+ if draft.backend == "custom" {
+ TextField("ACP command, e.g. my-agent --acp", text: Binding(get: { draft.command ?? "" }, set: { draft.command = $0.isEmpty ? nil : $0 }))
+ .appFont(.callout.monospaced())
+ .plainTextInput()
+ .fieldBox()
+ }
}
AgentModelPicker(backend: draft.backend, selection: $draft.model)
- OptionRow("Workspace") {
+ ValueRow("Workspace", detail: draft.cwd.isEmpty
+ ? "This bot has its own space for files. It can work in other folders when you ask."
+ : "This project is the default starting folder. The bot can work elsewhere when you ask.") {
DropdownMenu {
[
MenuItem("Personal workspace", selected: draft.cwd.isEmpty) {
@@ -206,44 +206,30 @@ struct BotSettingsForm: View {
} label: {
HStack(spacing: 6) {
Text(draft.cwd.isEmpty ? "Personal" : (draft.cwd as NSString).lastPathComponent).lineLimit(1)
- Image(systemName: "chevron.down").appFont(.caption2.weight(.semibold))
+ Image(systemName: "chevron.down").appFont(.caption2.weight(.semibold)).foregroundStyle(Palette.secondary)
}
- .pill()
+ .foregroundStyle(Palette.text)
+ .outlinedPill()
}
.help(draft.cwd.isEmpty ? "A persistent workspace allocated for this bot" : draft.cwd)
}
- Text(draft.cwd.isEmpty
- ? "This bot has its own space for files. It can work in other folders when you ask."
- : "This project is the default starting folder. The bot can work elsewhere when you ask.")
- .appFont(.caption)
- .foregroundStyle(Palette.secondary)
- OptionRow("Permissions") {
- ChoicePicker(selection: $draft.permission, options: [("ask", "Ask me"), ("auto", "Approve automatically")],
- fill: Palette.background)
+ ValueRow("Permissions", detail: draft.permission == "auto"
+ ? "Tool requests are approved automatically. Your agent's own settings (like Claude Code's permission rules) still apply."
+ : "You'll get an approval card and a notification whenever the agent asks.") {
+ ChoicePicker(selection: $draft.permission, options: [("ask", "Ask me"), ("auto", "Approve automatically")])
}
- Toggle(isOn: Binding(get: { draft.notify ?? true }, set: { draft.notify = $0 })) {
- VStack(alignment: .leading, spacing: 3) {
- Text("Notifications").foregroundStyle(Palette.text)
- Text("Get notified when this bot finishes or needs you").appFont(AppFont.compactSecondary).foregroundStyle(Palette.secondary)
- }
- }
- .toggleStyle(.codync)
+ }
+
+ CardSection("Activity") {
+ SwitchRow("Notifications", detail: "Get notified when this bot finishes or needs you",
+ isOn: Binding(get: { draft.notify ?? true }, set: { draft.notify = $0 }))
if model.screen != nil {
- Toggle(isOn: Binding(get: { draft.computer ?? false }, set: { draft.computer = $0 })) {
- VStack(alignment: .leading, spacing: 3) {
- Text("Use the computer").foregroundStyle(Palette.text)
- Text(model.screen?.enabled == true
- ? "Let this bot see the screen and use the mouse and keyboard. You can watch and take over from your phone."
- : "Let this bot see the screen and use the mouse and keyboard. Turn on Remote screen in Codync's menu on the computer first.")
- .appFont(AppFont.compactSecondary).foregroundStyle(Palette.secondary)
- }
- }
- .toggleStyle(.codync)
+ SwitchRow("Use the computer", detail: model.screen?.enabled == true
+ ? "Let this bot see the screen and use the mouse and keyboard. You can watch and take over from your phone."
+ : "Let this bot see the screen and use the mouse and keyboard. Turn on Remote screen in Codync's menu on the computer first.",
+ isOn: Binding(get: { draft.computer ?? false }, set: { draft.computer = $0 }))
}
}
- .padding(.horizontal, InterfaceMetrics.value(mac: 12, mobile: 18))
- .padding(.vertical, InterfaceMetrics.value(mac: 14, mobile: 20))
- .background(Palette.bubbleAgent, in: RoundedRectangle(cornerRadius: 18, style: .continuous))
PluginToggles(
title: "Connectors",
@@ -261,12 +247,6 @@ struct BotSettingsForm: View {
MemoryCard(botId: id)
}
- Text(draft.permission == "auto"
- ? "Tool requests are approved automatically. Your agent's own settings (like Claude Code's permission rules) still apply."
- : "You'll get an approval card and a notification whenever the agent asks.")
- .appFont(.caption)
- .foregroundStyle(Palette.tertiary)
-
if let error {
Text(error).appFont(.footnote).foregroundStyle(Palette.danger)
}
@@ -292,38 +272,55 @@ struct BotSettingsForm: View {
}
}
+/// A labeled input inside a section row: label (and an optional note) over the field.
struct Field<Content: View>: View {
let label: String
+ var detail: String?
@ViewBuilder let content: Content
- init(_ label: String, @ViewBuilder content: () -> Content) {
+ init(_ label: String, detail: String? = nil, @ViewBuilder content: () -> Content) {
self.label = label
+ self.detail = detail
self.content = content()
}
var body: some View {
- VStack(alignment: .leading, spacing: 6) {
- Text(label).appFont(AppFont.compactSecondary).foregroundStyle(Palette.secondary).padding(.leading, 4)
+ VStack(alignment: .leading, spacing: 8) {
+ VStack(alignment: .leading, spacing: 3) {
+ Text(label).foregroundStyle(Palette.text)
+ if let detail {
+ Text(detail).appFont(.caption).foregroundStyle(Palette.secondary).lineSpacing(2)
+ .fixedSize(horizontal: false, vertical: true)
+ }
+ }
content
}
}
}
-struct OptionRow<Content: View>: View {
- let label: String
- @ViewBuilder let content: Content
+/// An on/off row: title and a short note, the switch on the right.
+struct SwitchRow: View {
+ let title: String
+ var detail: String?
+ @Binding var isOn: Bool
- init(_ label: String, @ViewBuilder content: () -> Content) {
- self.label = label
- self.content = content()
+ init(_ title: String, detail: String? = nil, isOn: Binding<Bool>) {
+ self.title = title
+ self.detail = detail
+ _isOn = isOn
}
var body: some View {
- HStack {
- Text(label).foregroundStyle(Palette.text)
- Spacer(minLength: 12)
- content
+ Toggle(isOn: $isOn) {
+ VStack(alignment: .leading, spacing: 3) {
+ Text(title).foregroundStyle(Palette.text)
+ if let detail {
+ Text(detail).appFont(.caption).foregroundStyle(Palette.secondary).lineSpacing(2)
+ .fixedSize(horizontal: false, vertical: true)
+ }
+ }
}
+ .toggleStyle(.codync)
}
}
@@ -335,33 +332,19 @@ private struct PluginToggles: View {
@Binding var selection: [String]
var body: some View {
- VStack(alignment: .leading, spacing: 6) {
- Text(title).appFont(AppFont.compactSecondary).foregroundStyle(Palette.secondary).padding(.leading, 4)
- VStack(alignment: .leading, spacing: InterfaceMetrics.value(mac: 12, mobile: 16)) {
- if items.isEmpty {
- Text(empty).appFont(AppFont.compactSecondary).foregroundStyle(Palette.secondary)
- }
- ForEach(items, id: \.id) { item in
- Toggle(isOn: Binding(
- get: { selection.contains(item.id) },
- set: { on in
- selection.removeAll { $0 == item.id }
- if on { selection.append(item.id) }
- }
- )) {
- VStack(alignment: .leading, spacing: 2) {
- Text(item.name).foregroundStyle(Palette.text)
- if !item.detail.isEmpty {
- Text(item.detail).appFont(.caption).foregroundStyle(Palette.secondary).lineLimit(2)
- }
- }
+ CardSection(title) {
+ if items.isEmpty {
+ Text(empty).foregroundStyle(Palette.secondary)
+ }
+ ForEach(items, id: \.id) { item in
+ SwitchRow(item.name, detail: item.detail.isEmpty ? nil : item.detail, isOn: Binding(
+ get: { selection.contains(item.id) },
+ set: { on in
+ selection.removeAll { $0 == item.id }
+ if on { selection.append(item.id) }
}
- .toggleStyle(.codync)
- }
+ ))
}
- .padding(InterfaceMetrics.value(mac: 12, mobile: 18))
- .frame(maxWidth: .infinity, alignment: .leading)
- .background(Palette.bubbleAgent, in: RoundedRectangle(cornerRadius: 18, style: .continuous))
}
}
}
diff --git a/kit/Sources/CodyncUI/Bots/MemoryView.swift b/kit/Sources/CodyncUI/Bots/MemoryView.swift
index 3c97a736..e3a12942 100644
--- a/kit/Sources/CodyncUI/Bots/MemoryView.swift
+++ b/kit/Sources/CodyncUI/Bots/MemoryView.swift
@@ -42,48 +42,38 @@ struct MemoryCard: View {
@State private var confirmClear = false
var body: some View {
- VStack(alignment: .leading, spacing: 6) {
- HStack {
- Text("Memory").appFont(AppFont.compactSecondary).foregroundStyle(Palette.secondary).padding(.leading, 4)
- Spacer()
- if !facts.isEmpty {
- Button("Forget everything", systemImage: "trash") { confirmClear = true }
+ CardSection("Memory") {
+ if facts.isEmpty {
+ Text(loaded
+ ? "Nothing yet. The bot remembers who you are and what you work on as you chat."
+ : "Loading…")
+ .foregroundStyle(Palette.secondary)
+ }
+ ForEach(facts) { fact in
+ HStack(alignment: .firstTextBaseline, spacing: 10) {
+ Image(systemName: fact.kind == "profile" ? "person" : "clock")
+ .appFont(.caption)
+ .foregroundStyle(Palette.tertiary)
+ .help(fact.kind == "profile" ? "About you" : "History")
+ Text(fact.content)
+ .foregroundStyle(Palette.text)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ Button("Forget", systemImage: "xmark") { forget(fact) }
.labelStyle(.iconOnly)
.buttonStyle(.plain)
- .foregroundStyle(Palette.secondary)
- .help("Forget everything")
+ .appFont(.caption)
+ .foregroundStyle(Palette.tertiary)
+ .help("Forget")
}
}
- VStack(alignment: .leading, spacing: InterfaceMetrics.value(mac: 10, mobile: 14)) {
- if facts.isEmpty {
- Text(loaded
- ? "Nothing yet. The bot remembers who you are and what you work on as you chat."
- : "Loading…")
- .appFont(AppFont.compactSecondary)
- .foregroundStyle(Palette.secondary)
- }
- ForEach(facts) { fact in
- HStack(alignment: .firstTextBaseline, spacing: 10) {
- Image(systemName: fact.kind == "profile" ? "person" : "clock")
- .appFont(.caption)
- .foregroundStyle(Palette.tertiary)
- .help(fact.kind == "profile" ? "About you" : "History")
- Text(fact.content)
- .foregroundStyle(Palette.text)
- .frame(maxWidth: .infinity, alignment: .leading)
- Button("Forget", systemImage: "xmark") { forget(fact) }
- .labelStyle(.iconOnly)
- .buttonStyle(.plain)
- .appFont(.caption)
- .foregroundStyle(Palette.tertiary)
- .help("Forget")
- }
- }
+ } accessory: {
+ if !facts.isEmpty {
+ Button("Forget everything", systemImage: "trash") { confirmClear = true }
+ .labelStyle(.iconOnly)
+ .buttonStyle(.plain)
+ .foregroundStyle(Palette.secondary)
+ .help("Forget everything")
}
- .padding(.horizontal, InterfaceMetrics.value(mac: 12, mobile: 18))
- .padding(.vertical, InterfaceMetrics.value(mac: 12, mobile: 16))
- .frame(maxWidth: .infinity, alignment: .leading)
- .background(Palette.bubbleAgent, in: RoundedRectangle(cornerRadius: 18, style: .continuous))
}
.task(id: botId) { await load() }
.codyncDialog("Forget everything this bot remembers?", isPresented: $confirmClear) {
diff --git a/kit/Sources/CodyncUI/Controls.swift b/kit/Sources/CodyncUI/Controls.swift
index 9926dd2a..00217bbd 100644
--- a/kit/Sources/CodyncUI/Controls.swift
+++ b/kit/Sources/CodyncUI/Controls.swift
@@ -511,10 +511,7 @@ public struct ChoicePicker<ID: Hashable>: View {
.foregroundStyle(Palette.text)
.pill(fill: fill)
.overlay {
- // Unfilled, it's outlined like ChatGPT's settings dropdowns (outline or fill, never both).
- if fill == .clear {
- RoundedRectangle(cornerRadius: 10, style: .continuous).strokeBorder(Palette.border)
- }
+ if fill == .clear { RoundedRectangle(cornerRadius: 10, style: .continuous).strokeBorder(Palette.border) }
}
}
.fixedSize(horizontal: !fitsAvailableWidth, vertical: true)
@@ -624,25 +621,33 @@ public struct CardForm<Content: View>: View {
/// A titled group of rows: the replacement for `Section`. Modeled on ChatGPT's desktop settings:
/// a small bold heading over a filled, rounded group whose rows are split by inset hairlines
/// (references in `docs/design/reference/`).
-public struct CardSection<Content: View>: View {
+public struct CardSection<Content: View, Accessory: View>: View {
let title: String?
let footer: String?
let content: Content
+ /// Trailing controls on the heading's line (add, refresh, clear).
+ let accessory: Accessory
- public init(_ title: String? = nil, footer: String? = nil, @ViewBuilder content: () -> Content) {
+ public init(_ title: String? = nil, footer: String? = nil, @ViewBuilder content: () -> Content,
+ @ViewBuilder accessory: () -> Accessory) {
self.title = title
self.footer = footer
self.content = content()
+ self.accessory = accessory()
}
public var body: some View {
VStack(alignment: .leading, spacing: InterfaceMetrics.value(mac: 10, mobile: 10)) {
if let title {
- Text(title)
- .appFont(.system(size: InterfaceMetrics.value(mac: 13, mobile: 15), weight: .semibold))
- .foregroundStyle(Palette.text)
- .padding(.leading, 2)
- .accessibilityAddTraits(.isHeader)
+ HStack(spacing: 8) {
+ Text(title)
+ .appFont(.system(size: InterfaceMetrics.value(mac: 13, mobile: 15), weight: .semibold))
+ .foregroundStyle(Palette.text)
+ .accessibilityAddTraits(.isHeader)
+ Spacer(minLength: 0)
+ accessory
+ }
+ .padding(.leading, 2)
}
VStack(alignment: .leading, spacing: 0) {
_VariadicView.Tree(HairlineRows()) { content }
@@ -662,6 +667,12 @@ public struct CardSection<Content: View>: View {
}
}
+public extension CardSection where Accessory == EmptyView {
+ init(_ title: String? = nil, footer: String? = nil, @ViewBuilder content: () -> Content) {
+ self.init(title, footer: footer, content: content) { EmptyView() }
+ }
+}
+
/// A 1-pixel separator line in the border color.
public struct Hairline: View {
@Environment(\.displayScale) private var scale
@@ -920,6 +931,12 @@ private struct DialogButtonStyle: ButtonStyle {
extension View {
/// The value pill: a filled rounded box, no border.
+ /// A value in an outlined pill, like ChatGPT's settings dropdowns (outline or fill, never both).
+ func outlinedPill() -> some View {
+ pill(fill: .clear)
+ .overlay(RoundedRectangle(cornerRadius: 10, style: .continuous).strokeBorder(Palette.border))
+ }
+
func pill(fill: Color = Palette.background) -> some View {
padding(.horizontal, InterfaceMetrics.value(mac: 9, mobile: 12))
.padding(.vertical, InterfaceMetrics.value(mac: 5, mobile: 7))
diff --git a/kit/Sources/CodyncUI/Routines/RoutinesView.swift b/kit/Sources/CodyncUI/Routines/RoutinesView.swift
index 330eb4b9..0d764de6 100644
--- a/kit/Sources/CodyncUI/Routines/RoutinesView.swift
+++ b/kit/Sources/CodyncUI/Routines/RoutinesView.swift
@@ -20,10 +20,10 @@ struct RoutinesView: View {
var body: some View {
VStack(alignment: .leading, spacing: close == nil ? 10 : 16) {
HStack {
- // In the Mac inspector it's a quiet section label like the rest of the panel (Grok's style).
Text("Routines")
- .appFont(.system(size: 13, weight: close == nil ? .medium : .semibold))
- .foregroundStyle(close == nil ? Palette.secondary : Palette.text)
+ .appFont(.system(size: 13, weight: .semibold))
+ .foregroundStyle(Palette.text)
+ .padding(.leading, 2)
Spacer(minLength: 0)
askInChat
IconButton("Set up a routine", systemImage: "plus") { open(nil) }
@@ -75,16 +75,16 @@ struct RoutinesView: View {
.fixedSize(horizontal: false, vertical: true)
.frame(maxWidth: .infinity, alignment: .leading)
.padding(14)
- .overlay(RoundedRectangle(cornerRadius: 16, style: .continuous).strokeBorder(Palette.border))
+ .background(Palette.surface, in: RoundedRectangle(cornerRadius: 16, style: .continuous))
} else {
VStack(spacing: 0) {
ForEach(routines) { routine in
- if routine.id != routines.first?.id { Divider() }
+ if routine.id != routines.first?.id { Hairline() }
row(routine)
}
}
.padding(.horizontal, 14)
- .background(Palette.surface, in: RoundedRectangle(cornerRadius: 12))
+ .background(Palette.surface, in: RoundedRectangle(cornerRadius: 16, style: .continuous))
}
}
}
diff --git a/kit/Sources/CodyncUI/Thread/ThreadView.swift b/kit/Sources/CodyncUI/Thread/ThreadView.swift
index af24d125..d4f0ffce 100644
--- a/kit/Sources/CodyncUI/Thread/ThreadView.swift
+++ b/kit/Sources/CodyncUI/Thread/ThreadView.swift
@@ -682,13 +682,6 @@ private struct DetailsPanel: View {
.padding(.leading, 4)
}
- /// Grok's section label: a quiet heading above its rows.
- private func sectionLabel(_ title: String) -> some View {
- Text(title)
- .appFont(.system(size: 13, weight: .medium))
- .foregroundStyle(Palette.secondary)
- }
-
/// A round action in the panel's header, frosted like the chat's title pill (Grok's style).
private func roundButton(_ label: String, _ symbol: String, action: @escaping () -> Void) -> some View {
Button(action: action) {
@@ -748,37 +741,24 @@ private struct DetailsPanel: View {
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(16)
- // Grok's cards are outlined, not filled.
- .overlay(RoundedRectangle(cornerRadius: 16, style: .continuous).strokeBorder(Palette.border))
+ .background(Palette.surface, in: RoundedRectangle(cornerRadius: 16, style: .continuous))
}
private func agentSummary(_ bot: Bot) -> some View {
- VStack(alignment: .leading, spacing: 10) {
- sectionLabel("Agent")
- VStack(spacing: 12) {
- infoRow("Runtime") {
- HStack(spacing: 6) {
- AgentIcon(registry: model.hello?.backends.first { $0.id == bot.backend }?.registry, size: 14)
- Text(model.backendName(bot.backend))
- }
- }
- infoRow(bot.managedWorkspace ? "Workspace" : "Folder") {
- Text(bot.managedWorkspace ? "Personal" : bot.folderName)
- .truncationMode(.middle)
- .help(bot.managedWorkspace ? "Personal workspace, managed by Codync" : bot.cwd)
- }
- if let chosen = bot.model, !chosen.isEmpty {
- infoRow("Model") { Text(chosen).truncationMode(.middle) }
+ CardSection("Agent", footer: bot.description.isEmpty ? nil : bot.description) {
+ infoRow("Runtime") {
+ HStack(spacing: 6) {
+ AgentIcon(registry: model.hello?.backends.first { $0.id == bot.backend }?.registry, size: 14)
+ Text(model.backendName(bot.backend))
}
}
- .padding(14)
- .overlay(RoundedRectangle(cornerRadius: 16, style: .continuous).strokeBorder(Palette.border))
- if !bot.description.isEmpty {
- Text(bot.description)
- .appFont(.system(size: 12))
- .lineSpacing(3)
- .foregroundStyle(Palette.secondary)
- .fixedSize(horizontal: false, vertical: true)
+ infoRow(bot.managedWorkspace ? "Workspace" : "Folder") {
+ Text(bot.managedWorkspace ? "Personal" : bot.folderName)
+ .truncationMode(.middle)
+ .help(bot.managedWorkspace ? "Personal workspace, managed by Codync" : bot.cwd)
+ }
+ if let chosen = bot.model, !chosen.isEmpty {
+ infoRow("Model") { Text(chosen).truncationMode(.middle) }
}
}
}