macOS client parity review
This commit is contained in:
@@ -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…")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user