@zeniai/client-epic-state 5.1.18-betaDI6 → 5.1.18-betaDI7
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.
|
@@ -400,9 +400,14 @@ const taskList = createSlice({
|
|
|
400
400
|
// moves to the Completed tab without waiting for the next
|
|
401
401
|
// fetch. Mirrors backend split in task_handler.py: only
|
|
402
402
|
// `resolved` counts as completed; `done` stays Active.
|
|
403
|
+
//
|
|
404
|
+
// Subtasks travel with their parent — they appear nested under
|
|
405
|
+
// the parent row, not as standalone entries in byTab.taskIds.
|
|
406
|
+
// So we only rebucket parent tasks (tasks with no parentTaskId).
|
|
407
|
+
const isParent = task.parentTaskId == null;
|
|
403
408
|
const wasCompleted = prevStatusCode === 'resolved';
|
|
404
409
|
const isCompleted = newStatusCode === 'resolved';
|
|
405
|
-
if (wasCompleted !== isCompleted) {
|
|
410
|
+
if (isParent && wasCompleted !== isCompleted) {
|
|
406
411
|
const from = isCompleted ? 'live' : 'completed';
|
|
407
412
|
const to = isCompleted ? 'completed' : 'live';
|
|
408
413
|
removeIdsFromTabData(draft.byTab[from], [taskId]);
|
|
@@ -404,9 +404,14 @@ const taskList = (0, toolkit_1.createSlice)({
|
|
|
404
404
|
// moves to the Completed tab without waiting for the next
|
|
405
405
|
// fetch. Mirrors backend split in task_handler.py: only
|
|
406
406
|
// `resolved` counts as completed; `done` stays Active.
|
|
407
|
+
//
|
|
408
|
+
// Subtasks travel with their parent — they appear nested under
|
|
409
|
+
// the parent row, not as standalone entries in byTab.taskIds.
|
|
410
|
+
// So we only rebucket parent tasks (tasks with no parentTaskId).
|
|
411
|
+
const isParent = task.parentTaskId == null;
|
|
407
412
|
const wasCompleted = prevStatusCode === 'resolved';
|
|
408
413
|
const isCompleted = newStatusCode === 'resolved';
|
|
409
|
-
if (wasCompleted !== isCompleted) {
|
|
414
|
+
if (isParent && wasCompleted !== isCompleted) {
|
|
410
415
|
const from = isCompleted ? 'live' : 'completed';
|
|
411
416
|
const to = isCompleted ? 'completed' : 'live';
|
|
412
417
|
removeIdsFromTabData(draft.byTab[from], [taskId]);
|
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-betaDI7",
|
|
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",
|