@linxin666/dsh-client-ui-task-board 0.3.19 → 0.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.i18n.yaml +2 -2
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/lib/client.js +186 -52
- package/lib/client.js.map +1 -1
- package/lib/index.js +17 -7
- package/lib/types/client/body-mutations.d.ts +45 -0
- package/lib/types/client/panel-mount-core.d.ts +1 -1
- package/lib/types/client/sidebar-entry-core.d.ts +0 -15
- package/lib/types/core/controller.d.ts +2 -3
- package/lib/types/core/tasks.d.ts +6 -1
- package/lib/types/core/use-cases/task-archive.d.ts +6 -6
- package/package.json +19 -19
- package/src/client/board/TaskDetail.tsx +4 -2
- package/src/client/body-mutations.ts +133 -0
- package/src/client/index.ts +52 -20
- package/src/client/panel-mount-core.ts +21 -13
- package/src/client/sidebar-entry-core.ts +10 -7
- package/src/core/controller.ts +2 -3
- package/src/core/schedule.ts +4 -1
- package/src/core/tasks.ts +7 -2
- package/src/core/use-cases/task-archive.ts +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Archive/restore task use case: move a
|
|
3
|
-
*
|
|
2
|
+
* Archive/restore task use case: move a task off the main board and back,
|
|
3
|
+
* whatever its status but `running`. The task keeps its status, execution history, and
|
|
4
4
|
* transcript references, while archiving disarms any schedule so it cannot
|
|
5
5
|
* create more execution records until the user restores and re-enables it.
|
|
6
6
|
*/
|
|
@@ -16,10 +16,10 @@ export interface ArchiveTaskResult {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* Archive one task: only
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
19
|
+
* Archive one task: only a `running` task stays on the board (its runner
|
|
20
|
+
* still owns its lifecycle until the execution settles); every other status
|
|
21
|
+
* can be archived. Archiving disarms a schedule; already-archived tasks are
|
|
22
|
+
* a no-op.
|
|
23
23
|
*/
|
|
24
24
|
export function applyArchiveTask(
|
|
25
25
|
tasks: readonly TaskRecord[],
|