Wire top-bar date navigation controls (prev/next/date picker) #10

Closed
opened 2026-07-05 20:01:26 -07:00 by pyr0ball · 1 comment
Collaborator

Context

Part of #6. Top bar date navigation callbacks (onDatePressed/onPreviousDate/onNextDate) are already passed through as named params but not connected to app state. Backend date-scoped queries (GetTodayStateQuery) already support this per MVP-AC-06.

Scope

  • Wire previous/next date buttons to shift the selected date and reload Today state
  • Wire the date-picker button to open a picker and jump to the chosen date

Out of scope

Week/month views (explicitly deferred to V2).

Acceptance criteria

Previous/next/date-picker controls in the top bar change which day's Today state is displayed.

#6

## Context Part of #6. Top bar date navigation callbacks (`onDatePressed`/`onPreviousDate`/`onNextDate`) are already passed through as named params but not connected to app state. Backend date-scoped queries (`GetTodayStateQuery`) already support this per MVP-AC-06. ## Scope - [ ] Wire previous/next date buttons to shift the selected date and reload Today state - [ ] Wire the date-picker button to open a picker and jump to the chosen date ## Out of scope Week/month views (explicitly deferred to V2). ## Acceptance criteria Previous/next/date-picker controls in the top bar change which day's Today state is displayed. ## Related #6
pyr0ball added this to the FocusFlow V1 — Feature Complete milestone 2026-07-05 20:01:26 -07:00
pyr0ball added the
type:feature
priority:blocking-v1
area:flutter-ui
labels 2026-07-05 20:01:26 -07:00
Author
Collaborator

Verified against current code: date navigation is already fully wired end-to-end.

  • FocusFlowHome._selectPreviousDate/_selectNextDate/_chooseDate (lib/app/home/focus_flow_home_state.dart) call into SelectedDateController
  • Passed through _TodayScreenScaffold as onPreviousDate/onNextDate/onChooseDate
  • TopBar (lib/widgets/top_bar.dart) wires all three to real _IconButton/date-picker controls, not no-ops

This is a case where the original UI-completeness audit was stale (likely reflecting an earlier snapshot before this wiring landed). Closing as already-satisfied — no code change needed.

Verified against current code: date navigation is already fully wired end-to-end. - `FocusFlowHome._selectPreviousDate`/`_selectNextDate`/`_chooseDate` (`lib/app/home/focus_flow_home_state.dart`) call into `SelectedDateController` - Passed through `_TodayScreenScaffold` as `onPreviousDate`/`onNextDate`/`onChooseDate` - `TopBar` (`lib/widgets/top_bar.dart`) wires all three to real `_IconButton`/date-picker controls, not no-ops This is a case where the original UI-completeness audit was stale (likely reflecting an earlier snapshot before this wiring landed). Closing as already-satisfied — no code change needed.
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.

Dependencies

No dependencies set.

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