Fix: Don't persist task data to localStorage, always load from server

This commit is contained in:
OpenClaw Bot 2026-02-19 19:53:41 -06:00
parent 1420a1ed43
commit 50164ac95a
2 changed files with 9 additions and 29 deletions

View File

@ -449,40 +449,14 @@
}, },
{ {
"id": "15", "id": "15",
"priority": "urgent",
"title": "Add Sprint functionality to Gantt Board", "title": "Add Sprint functionality to Gantt Board",
"description": "Implement sprint-based project management similar to JIRA. Add sprint planning, sprint boards with To Do/In Progress/Done columns, backlog grooming with sprint assignments, and sprint workflows. Reference comps in /comps/ directory showing: 01-statuses.png (sprint workflow), 02-workflow.png (issue flow), 03-gannt-board.png (sprint board with swimlanes), 04-backlog-screen.png (sprint planning). This will allow organizing tasks into 2-week sprints with clear status tracking.",
"type": "task",
"status": "in-progress",
"priority": "high",
"projectId": "2", "projectId": "2",
"sprintId": "sprint-1", "sprintId": "sprint-1",
"createdAt": "2026-02-19T13:45:00.000Z", "updatedAt": "2026-02-20T01:52:57.259Z"
"updatedAt": "2026-02-19T13:45:00.000Z",
"comments": [
{
"id": "c70",
"text": "User provided comps showing JIRA-style sprint board with swimlanes and workflow",
"createdAt": "2026-02-19T13:45:00.000Z",
"author": "assistant"
},
{
"id": "c71",
"text": "Features needed: Sprint planning, sprint boards, backlog grooming, sprint assignments",
"createdAt": "2026-02-19T13:45:00.000Z",
"author": "assistant"
}
],
"tags": [
"sprint",
"kanban",
"ui",
"jira",
"workflow",
"backlog"
]
} }
], ],
"lastUpdated": 1771552039142, "lastUpdated": 1771552377259,
"sprints": [ "sprints": [
{ {
"name": "Sprint 1", "name": "Sprint 1",

View File

@ -598,6 +598,12 @@ export const useTaskStore = create<TaskStore>()(
}), }),
{ {
name: 'task-store', name: 'task-store',
partialize: (state) => ({
// Only persist UI state, not data
selectedProjectId: state.selectedProjectId,
selectedTaskId: state.selectedTaskId,
selectedSprintId: state.selectedSprintId,
}),
} }
) )
) )