wip
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
This document explains how tasks are categorized into kanban columns in the Casera application.
|
||||
|
||||
> Note: The categorization chain still computes `cancelled_tasks`, but the kanban board response
|
||||
> intentionally hides cancelled/archived tasks and returns only 5 visible columns.
|
||||
|
||||
## Overview
|
||||
|
||||
The task categorization system uses the **Chain of Responsibility** design pattern to determine which kanban column a task belongs to. Each handler in the chain evaluates the task against specific criteria, and if matched, returns the appropriate column. If not matched, the task is passed to the next handler.
|
||||
|
||||
@@ -2,9 +2,12 @@
|
||||
|
||||
This document describes how tasks are categorized into kanban columns for display in the Casera mobile app.
|
||||
|
||||
> Important: The board intentionally returns **5 visible columns**. Cancelled and archived tasks are
|
||||
> hidden from board responses (though task-level `kanban_column` may still be `cancelled_tasks`).
|
||||
|
||||
## Overview
|
||||
|
||||
Tasks are organized into 6 kanban columns based on their state and due date. The categorization logic is implemented in `internal/repositories/task_repo.go` in the `GetKanbanData` and `GetKanbanDataForMultipleResidences` functions.
|
||||
Tasks are organized into 5 visible kanban columns based on their state and due date. The categorization logic is implemented in `internal/repositories/task_repo.go` in the `GetKanbanData` and `GetKanbanDataForMultipleResidences` functions.
|
||||
|
||||
## Columns Summary
|
||||
|
||||
@@ -15,7 +18,6 @@ Tasks are organized into 6 kanban columns based on their state and due date. The
|
||||
| 3 | **Upcoming** | `#007AFF` (Blue) | edit, complete, cancel, mark_in_progress | Tasks due beyond the threshold or with no due date |
|
||||
| 4 | **In Progress** | `#5856D6` (Purple) | edit, complete, cancel | Tasks with status "In Progress" |
|
||||
| 5 | **Completed** | `#34C759` (Green) | view | Tasks with at least one completion record |
|
||||
| 6 | **Cancelled** | `#8E8E93` (Gray) | uncancel, delete | Tasks marked as cancelled |
|
||||
|
||||
## Categorization Flow
|
||||
|
||||
|
||||
Reference in New Issue
Block a user