@zeniai/client-epic-state 5.1.18-betaDI5 → 5.1.18-betaDI6
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.
|
@@ -396,11 +396,12 @@ const taskList = createSlice({
|
|
|
396
396
|
const newStatusCode = toTaskStatusCodeType(updates.status.code);
|
|
397
397
|
draft.taskIdsByStatus[newStatusCode].push(taskId);
|
|
398
398
|
// Optimistically re-bucket between the live and completed tabs
|
|
399
|
-
// when status transitions
|
|
400
|
-
//
|
|
401
|
-
//
|
|
402
|
-
|
|
403
|
-
const
|
|
399
|
+
// when status transitions in/out of "resolved", so the task
|
|
400
|
+
// moves to the Completed tab without waiting for the next
|
|
401
|
+
// fetch. Mirrors backend split in task_handler.py: only
|
|
402
|
+
// `resolved` counts as completed; `done` stays Active.
|
|
403
|
+
const wasCompleted = prevStatusCode === 'resolved';
|
|
404
|
+
const isCompleted = newStatusCode === 'resolved';
|
|
404
405
|
if (wasCompleted !== isCompleted) {
|
|
405
406
|
const from = isCompleted ? 'live' : 'completed';
|
|
406
407
|
const to = isCompleted ? 'completed' : 'live';
|
|
@@ -400,11 +400,12 @@ const taskList = (0, toolkit_1.createSlice)({
|
|
|
400
400
|
const newStatusCode = (0, taskState_1.toTaskStatusCodeType)(updates.status.code);
|
|
401
401
|
draft.taskIdsByStatus[newStatusCode].push(taskId);
|
|
402
402
|
// Optimistically re-bucket between the live and completed tabs
|
|
403
|
-
// when status transitions
|
|
404
|
-
//
|
|
405
|
-
//
|
|
406
|
-
|
|
407
|
-
const
|
|
403
|
+
// when status transitions in/out of "resolved", so the task
|
|
404
|
+
// moves to the Completed tab without waiting for the next
|
|
405
|
+
// fetch. Mirrors backend split in task_handler.py: only
|
|
406
|
+
// `resolved` counts as completed; `done` stays Active.
|
|
407
|
+
const wasCompleted = prevStatusCode === 'resolved';
|
|
408
|
+
const isCompleted = newStatusCode === 'resolved';
|
|
408
409
|
if (wasCompleted !== isCompleted) {
|
|
409
410
|
const from = isCompleted ? 'live' : 'completed';
|
|
410
411
|
const to = isCompleted ? 'completed' : 'live';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.1.18-
|
|
3
|
+
"version": "5.1.18-betaDI6",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/esm/index.js",
|