Remove TaskStatus enum and related extensions, refactor BoardService and BoardResponse models for improved API integration, and update BoardViewModel to handle card movements between columns. Adjust UI components to reflect these changes and enhance error handling for card operations.

This commit is contained in:
AmirReza Jamali
2026-05-26 10:41:34 +03:30
parent 4b1260a437
commit 02057988dc
10 changed files with 542 additions and 1012 deletions
+3 -7
View File
@@ -2,13 +2,9 @@ class BoardStrings {
BoardStrings._();
static const String boardTitle = 'My Board';
static const String toDo = 'To Do';
static const String inProgress = 'In Progress';
static const String done = 'Done';
static const String emptyListText = 'No tasks found';
static const String deadlineLabel = 'Deadline';
static const String readyLabel = 'Ready';
static const String incompleteLabel = 'Incomplete';
static String taskMovedMessage(String oldStatus, String newStatus) =>
'Task moved from $oldStatus to $newStatus';
static const String moveFailed = 'Could not move card';
static String cardMovedMessage(String fromColumn, String toColumn) =>
'Card moved from $fromColumn to $toColumn';
}