refactor(workflow): stop assuming a human decides
An approval, ask or park can be resolved by an operator, a rule, a classifier or automatically, so the vocabulary stops naming a person: - step type human.approve -> workflow.approve - park class needs_human -> needs_decision (ParkNeedsDecision) - event kinds human_* -> operator_* - alert kind task.needs_human -> task.needs_decision - status grouping "needs you" -> "needs attention" 0061 rewrites the stored values, including the approval step type in the workflow-definitions resource and each task's pinned definition, with the digest recomputed so resumed tasks still match.
This commit is contained in:
1 parent
fc609171ca
commit
f2b8681611
76 files changed
+373
-329
No files matched your search
@@ -117,7 +117,7 @@ onUnmounted(() => document.removeEventListener("keydown", onGlobalKeydown));
|
||||
</CommandGroup>
|
||||
<CommandGroup heading="Views">
|
||||
<CommandItem value="Tasks in progress" @select="go('/tasks?status=running')">Tasks in progress</CommandItem>
|
||||
<CommandItem value="Tasks needing attention" @select="go('/tasks?status=needs_you')">Tasks needing attention</CommandItem>
|
||||
<CommandItem value="Tasks needing attention" @select="go('/tasks?status=needs_attention')">Tasks needing attention</CommandItem>
|
||||
</CommandGroup>
|
||||
<CommandGroup heading="Pages">
|
||||
<CommandItem
|
||||
|
||||
@@ -18,7 +18,7 @@ export const buttonVariants = cva(
|
||||
destructive:
|
||||
"bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",
|
||||
link: "text-primary underline-offset-4 hover:underline",
|
||||
// An action that exists because something needs a human has to look
|
||||
// An action that exists because something needs attention has to look
|
||||
// unlike one that is always present. `destructive` would overstate it:
|
||||
// nothing is broken, it is waiting.
|
||||
attention:
|
||||
|
||||
Reference in new issue
Block a user