macOS client parity review

This commit is contained in:
Ian Gulliver
2026-10-17 10:54:06 -07:00
parent b85de9a2d0
commit 31037e1c9f
24 changed files with 651 additions and 225 deletions
+16 -12
View File
@@ -75,9 +75,7 @@ struct WorkflowView: View {
let task = store.selectedTaskId.flatMap { store.findTask($0) }
VStack(spacing: 0) {
if let task, let runId = task.workflowRun {
if !error.isEmpty {
EmptyText(text: error, error: true)
} else if let run, run.run == runId {
if let run, run.run == runId {
HStack(alignment: .firstTextBaseline, spacing: 10) {
Text(run.name).font(Fonts.font(13, weight: 700))
Text(run.title).foregroundStyle(Palette.muted)
@@ -90,22 +88,28 @@ struct WorkflowView: View {
VStack(alignment: .leading, spacing: 12) {
FlowchartCanvas(layout: layoutFlowchart(stageGraph(run)))
.frame(maxWidth: .infinity, alignment: .leading)
if !trimmed(run.brief).isEmpty {
DetailsBox(boxed: false) {
Text("Brief").foregroundStyle(Palette.muted)
} content: {
MarkdownView(blocks: parseMarkdown(run.brief), ctx: MDContext(taskId: task.id))
.padding(.top, 6)
if !error.isEmpty {
EmptyText(text: error, error: true)
} else {
if !trimmed(run.brief).isEmpty {
DetailsBox(boxed: false) {
Text("Brief").foregroundStyle(Palette.muted)
} content: {
MarkdownView(blocks: parseMarkdown(run.brief), ctx: MDContext(taskId: task.id))
.padding(.top, 6)
}
}
ForEach(run.stages, id: \.name) { s in
StageCard(run: run, stage: s)
}
}
ForEach(run.stages, id: \.name) { s in
StageCard(run: run, stage: s)
}
}
.padding(.horizontal, 16)
.padding(.top, 8)
.padding(.bottom, 16)
}
} else if !error.isEmpty {
EmptyText(text: error, error: true)
} else {
EmptyText(text: "Loading…")
}