2.3 KiB
2.3 KiB
UI Plan 2 Implementation Notes
Block 01 Baseline Map
- Sidebar and app shell currently render through
apps/focus_flow_flutter/lib/widgets/sidebar.dart,apps/focus_flow_flutter/lib/widgets/app_shell.dart, and theFocusFlowHomeparts underapps/focus_flow_flutter/lib/app/home/. - Navigation state is not implemented yet.
Sidebarhard-codes Today as active, andFocusFlowHomeowns only Today controllers. UI Plan 2 should add app-level section state in the home/composition layer before rendering the Backlog board. - Backlog board data needs new public scheduler application read models. The
current
BacklogQueryResultis list-shaped and returns rawTaskvalues viaBacklogItemReadModel, which is not enough for board columns, summary, detail drawer metadata, or suggested slot previews. - Existing commands include quick capture to backlog, schedule backlog item to next available slot, move flexible tasks to backlog, remove task, and break up task. Push-to-Someday and non-destructive backlog archive still need command-level decisions before the drawer actions can be final.
- UI Plan 1 components to reuse include
FocusFlowTokens, the dark shell, timeline reward icon, difficulty bars, selected overlay patterns, and the top-bar icon/segmented-control styling conventions.
Block 01 Validation
scripts/bootstrap_dev.sh: passed.dart analyze: passed.dart test: passed.flutter analyzeinapps/focus_flow_flutter: passed.flutter testinapps/focus_flow_flutter: passed.
Block 02 Audit
GetBacklogRequest,BacklogQueryResult, andBacklogItemReadModelremain the compatibility path for the existing simple backlog pane.- UI Plan 2 should add board-specific public read models instead of extending
BacklogQueryResult, because the board needs columns, summary distributions, child previews, detail rows, and suggested slots while the current list result intentionally exposes raw tasks plus staleness markers. - The board bucket policy belongs in pure scheduler backlog code under
packages/scheduler_core/lib/src/scheduling/backlog/, with Flutter consuming only publicscheduler_core.dartexports.