feat(workflow): orchestrate resumable dataflow handoffs

This commit is contained in:
2026-07-30 03:11:56 +02:00
parent a1654e70cf
commit a6e0e89829
18 changed files with 3938 additions and 27 deletions
+273
View File
@@ -656,6 +656,255 @@
padding: 7px 10px;
}
.workflow-runs-dialog {
width: min(1120px, calc(100vw - 32px));
height: min(760px, calc(100vh - 32px));
}
.workflow-runs-dialog-body {
display: flex;
min-height: 0;
flex-direction: column;
gap: 10px;
overflow: hidden;
padding: 0;
}
.workflow-runs-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex: 0 0 auto;
min-height: 56px;
border-bottom: var(--border-line);
padding: 9px 12px;
}
.workflow-runs-toolbar > span {
display: flex;
align-items: center;
gap: 7px;
}
.workflow-runs-toolbar > span:first-child {
display: grid;
gap: 2px;
}
.workflow-runs-toolbar small {
color: var(--muted);
font-size: 11px;
}
.workflow-runs-frame,
.workflow-runs-layout,
.workflow-run-list,
.workflow-run-detail {
min-width: 0;
min-height: 0;
}
.workflow-runs-frame {
flex: 1 1 auto;
overflow: hidden;
}
.workflow-runs-layout {
display: grid;
grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
height: 100%;
overflow: hidden;
}
.workflow-run-list {
overflow: auto;
border-right: var(--border-line);
background: var(--panel-soft);
padding: 6px;
}
.workflow-run-list > button {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
width: 100%;
min-height: 54px;
border: 0;
border-radius: var(--radius-sm);
background: transparent;
color: var(--text);
cursor: pointer;
padding: 8px 9px;
text-align: left;
}
.workflow-run-list > button:hover,
.workflow-run-list > button:focus-visible {
background: var(--primary-soft);
outline: none;
}
.workflow-run-list > button.is-selected {
background: var(--primary-soft-strong);
box-shadow: inset 3px 0 0 var(--accent);
}
.workflow-run-list strong,
.workflow-run-list small {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.workflow-run-list strong {
color: var(--text-strong);
font-size: 12px;
}
.workflow-run-list small {
margin-top: 4px;
color: var(--muted);
font-size: 10px;
}
.workflow-run-detail {
display: flex;
flex-direction: column;
overflow: auto;
}
.workflow-run-detail > header,
.workflow-run-handoff > div:first-child {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.workflow-run-detail > header {
position: sticky;
z-index: 2;
top: 0;
min-height: 56px;
border-bottom: var(--border-line);
background: var(--panel);
padding: 9px 12px;
}
.workflow-run-detail > header > span {
display: flex;
align-items: center;
gap: 7px;
}
.workflow-run-detail > header > span:first-child {
display: grid;
min-width: 0;
gap: 2px;
}
.workflow-run-detail > header strong,
.workflow-run-detail > header small {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.workflow-run-detail > header small {
color: var(--muted);
font-size: 10px;
}
.workflow-run-handoff,
.workflow-run-history,
.workflow-run-events {
display: grid;
gap: 10px;
border-bottom: var(--border-line);
padding: 12px;
}
.workflow-run-handoff p {
margin: 0;
color: var(--muted);
font-size: 12px;
line-height: 1.45;
}
.workflow-run-handoff a {
display: inline-flex;
align-items: center;
gap: 5px;
width: fit-content;
color: var(--accent);
font-size: 12px;
}
.workflow-run-action-form {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.workflow-run-action-form textarea {
width: 100%;
resize: vertical;
}
.workflow-run-actions {
display: flex;
grid-column: 1 / -1;
flex-wrap: wrap;
gap: 7px;
}
.workflow-run-actions .btn {
display: inline-flex;
align-items: center;
gap: 5px;
}
.workflow-run-history h3,
.workflow-run-events h3 {
margin: 0;
color: var(--text-strong);
font-size: 12px;
}
.workflow-run-history > div,
.workflow-run-events > div {
display: grid;
}
.workflow-run-history > div > span,
.workflow-run-events > div > span {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(160px, auto) auto;
align-items: center;
gap: 9px;
min-height: 38px;
border-top: var(--border-line);
padding: 6px 2px;
}
.workflow-run-history small,
.workflow-run-events small {
color: var(--muted);
font-size: 10px;
}
.workflow-run-empty {
display: grid;
min-height: 120px;
place-items: center;
color: var(--muted);
font-size: 12px;
text-align: center;
}
@media (max-width: 1180px) {
.workflow-shell {
grid-template-columns: 240px minmax(0, 1fr);
@@ -749,4 +998,28 @@
.workflow-palette-items button {
min-width: 128px;
}
.workflow-runs-layout {
grid-template-columns: 1fr;
grid-template-rows: minmax(120px, 28%) minmax(0, 1fr);
}
.workflow-run-list {
border-right: 0;
border-bottom: var(--border-line);
}
.workflow-run-action-form {
grid-template-columns: 1fr;
}
.workflow-run-history > div > span,
.workflow-run-events > div > span {
grid-template-columns: minmax(0, 1fr) auto;
}
.workflow-run-history > div > span small,
.workflow-run-events > div > span small {
grid-column: 1 / -1;
}
}