Reflow Week Ahead after capacity changes #1226

Closed
opened 2026-08-21 15:21:53 +00:00 by timmy · 0 comments
Owner

Problem

Calendar imports and manual capacity changes can overload planned days, but recovery currently requires moving every item separately on mobile. Week Ahead already detects overload and atomically stages all seven days.

Slice

Add a reviewed Reflow remaining week flow that deterministically preserves item order while packing estimated work into the seven visible days, respecting daily capacity and the five-item limit. Preview the result before applying; identify work that cannot fit without removing it from My Work. Missing estimates must block reflow. Cancel must not mutate state. Apply must use the existing durable staged-week and conflict-safe sync path.

Acceptance

  • Reflow is offered only for a live overloaded week.
  • Preview preserves each item exactly once and chronological/item order.
  • Every scheduled day respects capacity and five-item limit.
  • Missing estimates block application and name the work.
  • Unfittable work is explicitly listed as unscheduled.
  • Cancel sends no write and leaves the week unchanged.
  • Apply stages all seven days in one transition and flushes once; offline/conflict behavior remains truthful.
  • Controls are touch-safe and usable without horizontal overflow at 320x568 and 390x844.

Discovered by architecture/security, mobile UX, and reliability audits against origin/main b7dd975. Historical issue and commit searches found no automatic reflow implementation; #1188 only added manual per-item moves and #1206 preserved assignments after capacity import.

## Problem Calendar imports and manual capacity changes can overload planned days, but recovery currently requires moving every item separately on mobile. Week Ahead already detects overload and atomically stages all seven days. ## Slice Add a reviewed **Reflow remaining week** flow that deterministically preserves item order while packing estimated work into the seven visible days, respecting daily capacity and the five-item limit. Preview the result before applying; identify work that cannot fit without removing it from My Work. Missing estimates must block reflow. Cancel must not mutate state. Apply must use the existing durable staged-week and conflict-safe sync path. ## Acceptance - Reflow is offered only for a live overloaded week. - Preview preserves each item exactly once and chronological/item order. - Every scheduled day respects capacity and five-item limit. - Missing estimates block application and name the work. - Unfittable work is explicitly listed as unscheduled. - Cancel sends no write and leaves the week unchanged. - Apply stages all seven days in one transition and flushes once; offline/conflict behavior remains truthful. - Controls are touch-safe and usable without horizontal overflow at 320x568 and 390x844. Discovered by architecture/security, mobile UX, and reliability audits against `origin/main` b7dd975. Historical issue and commit searches found no automatic reflow implementation; #1188 only added manual per-item moves and #1206 preserved assignments after capacity import.
timmy self-assigned this 2026-08-21 15:21:53 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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: stackchain/stackchain-dashboard#1226
No description provided.