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.

fix(ios): fit the routine editor to larger text sizes

leepokaia4e110fe3858
diff --git a/docs/design/ui-conventions.md b/docs/design/ui-conventions.md
index 73db85bf..5cee8116 100644
--- a/docs/design/ui-conventions.md
+++ b/docs/design/ui-conventions.md
@@ -56,6 +56,8 @@ The details inspector uses a compact device summary instead of an empty screen p
Routines use a short empty state with one setup action and an icon action for asking in chat. Populated lists move the add action into the section header. 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`.
+On iPhone, the routine editor uses a single column of trigger choices so titles and descriptions can wrap at larger text sizes. Keep the execution environment note in the scrollable form and the full-width save action in a fixed footer on the sheet background. When required fields are empty, the footer explains why saving is unavailable.
+
New bots use automatically allocated personal workspaces. Settings offer Personal or an optional project folder; see [bot workspaces](../features/bot-workspaces.md).
Shared `.codyncMenu` lists scroll vertically when their content exceeds 420 points or the available space beside the trigger. Menus open toward the side with more vertical room; short lists keep their content height. Menu width is capped at 320 points and constrained to the window, and long option titles remain available through help text. This applies to Agent, Model, and other shared choice menus on macOS. On iOS, `DropdownMenu` and `ChoicePicker` present the native `Menu` instead (choices as checkmarked toggles), because an overlay anchored by global frame lands in the wrong place inside `.codyncSheet` and scroll views. Each computer has its own marketplace; its header names the computer and, with several online, switches between them. A new bot's editor on iPhone has a Computer dropdown listing every computer in the current account, including computers hidden by the roster filter and offline computers. It remains a dropdown with one computer. Offline choices stay selectable and are labeled; creation waits until the selected computer is online. Switching computers resets the folder, model and connectors that belonged to the old computer.
diff --git a/kit/Sources/CodyncUI/Routines/RoutineEditorView.swift b/kit/Sources/CodyncUI/Routines/RoutineEditorView.swift
index d42bbdc5..243a0534 100644
--- a/kit/Sources/CodyncUI/Routines/RoutineEditorView.swift
+++ b/kit/Sources/CodyncUI/Routines/RoutineEditorView.swift
@@ -51,9 +51,7 @@ struct RoutineEditorView: View {
}
VStack(alignment: .leading, spacing: 14) {
Text("When to run").font(.subheadline.weight(.semibold))
- LazyVGrid(columns: [GridItem(.adaptive(minimum: 180), spacing: 8)], spacing: 8) {
- ForEach(options, id: \.0) { option in triggerChoice(option) }
- }
+ triggerChoices
if loaded { triggerFields }
else { Label("Loading schedule…", systemImage: "clock").foregroundStyle(Palette.secondary) }
}
@@ -77,6 +75,9 @@ struct RoutineEditorView: View {
.font(.caption).foregroundStyle(Palette.secondary)
}
}
+ #if os(iOS)
+ executionNote
+ #endif
}
.padding(20)
.frame(maxWidth: .infinity, alignment: .leading)
@@ -147,6 +148,18 @@ struct RoutineEditorView: View {
}
}
+ @ViewBuilder private var triggerChoices: some View {
+ #if os(iOS)
+ VStack(spacing: 8) {
+ ForEach(options, id: \.0) { option in triggerChoice(option) }
+ }
+ #else
+ LazyVGrid(columns: [GridItem(.adaptive(minimum: 180), spacing: 8)], spacing: 8) {
+ ForEach(options, id: \.0) { option in triggerChoice(option) }
+ }
+ #endif
+ }
+
private func triggerChoice(_ option: (String, String)) -> some View {
let selected = schedule.kind == option.0
let symbols = ["interval": "arrow.clockwise", "cron": "calendar",
@@ -164,6 +177,7 @@ struct RoutineEditorView: View {
Text(option.1).font(.subheadline.weight(.medium))
Text(details[option.0] ?? "").font(.caption).foregroundStyle(selected ? Palette.text.opacity(0.75) : Palette.secondary)
}
+ .fixedSize(horizontal: false, vertical: true)
.frame(maxWidth: .infinity, alignment: .leading)
Image(systemName: "checkmark").font(.caption.weight(.semibold)).opacity(selected ? 1 : 0)
}
@@ -227,13 +241,29 @@ struct RoutineEditorView: View {
Label("Connect to this computer to save your routine.", systemImage: "wifi.slash")
.font(.caption).foregroundStyle(Palette.danger)
}
+ #if os(iOS)
+ if loaded, !model.isOffline,
+ name.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty ||
+ instruction.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
+ Text("Enter a name and instruction above to save.")
+ .font(.caption).foregroundStyle(Palette.secondary)
+ }
+ saveButton
+ #else
ViewThatFits(in: .horizontal) {
HStack(spacing: 16) { executionNote; Spacer(minLength: 0); saveButton }
VStack(alignment: .leading, spacing: 12) { executionNote; saveButton }
}
+ #endif
}
.padding(20)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ #if os(iOS)
+ .padding(.bottom, 16)
+ .background(Palette.background)
+ #else
.background(Palette.bubbleAgent)
+ #endif
}
private var executionNote: some View {
@@ -249,8 +279,11 @@ struct RoutineEditorView: View {
HStack(spacing: 8) {
if busy { Spinner() }
Text(busy ? "Saving…" : routine == nil ? "Create routine" : "Save changes")
- .fixedSize(horizontal: true, vertical: false)
+ .fixedSize(horizontal: false, vertical: true)
}
+ #if os(iOS)
+ .frame(maxWidth: .infinity, minHeight: 26)
+ #endif
}
.buttonStyle(.primary)
.disabled(!canSave)