Wire 'Move to Backlog' button in task selection modal #12

Closed
opened 2026-07-05 20:02:17 -07:00 by pyr0ball · 1 comment
Collaborator

Context

Part of #7. task_selection_modal.dart has a bare "Backlog" _ActionButton with no callback param, while the backend command V1ApplicationCommandUseCases.moveFlexibleToBacklog is implemented and tested.

Scope

  • Add an onMoveToBacklog callback param to the modal's action button
  • Wire it to call moveFlexibleToBacklog and refresh Today state

Out of scope

Timeline card quick-action icon (tracked in #13).

Acceptance criteria

Tapping "Backlog" in the task modal moves the task to backlog and updates the timeline.

#7

## Context Part of #7. `task_selection_modal.dart` has a bare "Backlog" `_ActionButton` with no callback param, while the backend command `V1ApplicationCommandUseCases.moveFlexibleToBacklog` is implemented and tested. ## Scope - [ ] Add an `onMoveToBacklog` callback param to the modal's action button - [ ] Wire it to call `moveFlexibleToBacklog` and refresh Today state ## Out of scope Timeline card quick-action icon (tracked in #13). ## Acceptance criteria Tapping "Backlog" in the task modal moves the task to backlog and updates the timeline. ## Related #7
pyr0ball added this to the FocusFlow V1 — Feature Complete milestone 2026-07-05 20:02:17 -07:00
pyr0ball added the
type:feature
priority:blocking-v1
area:flutter-ui
labels 2026-07-05 20:02:17 -07:00
pyr0ball added a new dependency 2026-07-05 20:04:17 -07:00
Author
Collaborator

Implemented, and simpler than the original scope suggested. On inspection, pushTaskToBacklog (already wired into the modal's Push dropdown as "Push to backlog") already calls commands.moveFlexibleToBacklog — the exact backend command this issue named. The standalone "Backlog" quick-action button is a duplicate entry point to the same action, so it now just reuses the existing onPushToBacklog callback already threaded through the modal — no new plumbing needed.

Widget tests pass, flutter analyze clean.

Implemented, and simpler than the original scope suggested. On inspection, `pushTaskToBacklog` (already wired into the modal's Push dropdown as "Push to backlog") already calls `commands.moveFlexibleToBacklog` — the exact backend command this issue named. The standalone "Backlog" quick-action button is a duplicate entry point to the same action, so it now just reuses the existing `onPushToBacklog` callback already threaded through the modal — no new plumbing needed. Widget tests pass, `flutter analyze` clean.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: eva/focus-flow#12
No description provided.