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:
@@ -7,7 +7,17 @@ class BoardRepository {
|
||||
BoardRepository({required BoardService boardService})
|
||||
: _boardService = boardService;
|
||||
|
||||
Future<Result<BoardResponse>> getBoard() async {
|
||||
return _boardService.getBoard();
|
||||
Future<Result<BoardResponse>> getBoard() => _boardService.getBoard();
|
||||
|
||||
Future<Result<MoveCardResponse>> moveCard({
|
||||
required String cardId,
|
||||
required String columnId,
|
||||
required int newOrder,
|
||||
}) {
|
||||
return _boardService.moveCard(
|
||||
cardId: cardId,
|
||||
columnId: columnId,
|
||||
newOrder: newOrder,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user