Advance Today after merging a planned pull request #407

Closed
opened 2026-08-09 14:51:38 +00:00 by rockachopa · 0 comments
Member

Problem

The Today session advances after closing a planned issue, but a successful merge of a planned pull request only removes the PR. Mobile operators must leave the active flow, return to My Work, and manually open the next planned item.

User flow

When a mergeable pull request is the active Today item, label the action Merge & next. Only after the server confirms the merge, remove it and advance exactly once to the next planned item. Merging the final item completes the session. Outside an active session, preserve the existing Merge behavior.

Acceptance criteria

  • Active eligible pull requests show Merge & next; outside a session they show Merge.
  • A confirmed merge refreshes without an intermediate session reconciliation and advances exactly once, opening the next item.
  • The final merged item ends the Today session and announces completion.
  • Cancelled, failed, stale-head, or ambiguous merges do not remove or advance.
  • Existing issue close-and-next and non-session merge behavior remain unchanged.
  • Behavioral tests cover the success, final-item, non-session, and failure boundaries.

Evidence / non-duplication

frontend/dashboard.js already completes and advances for issue closure but the merge success path only removes the item. Historical review of 206 issue titles found no merge-to-Today-session advancement. Closest completed work is #161 (assigned PR completion), #240 (review to merge), and #391/#392 (issue close and next); none connects confirmed PR merge to the active Today session.

## Problem The Today session advances after closing a planned issue, but a successful merge of a planned pull request only removes the PR. Mobile operators must leave the active flow, return to My Work, and manually open the next planned item. ## User flow When a mergeable pull request is the active Today item, label the action **Merge & next**. Only after the server confirms the merge, remove it and advance exactly once to the next planned item. Merging the final item completes the session. Outside an active session, preserve the existing **Merge** behavior. ## Acceptance criteria - Active eligible pull requests show **Merge & next**; outside a session they show **Merge**. - A confirmed merge refreshes without an intermediate session reconciliation and advances exactly once, opening the next item. - The final merged item ends the Today session and announces completion. - Cancelled, failed, stale-head, or ambiguous merges do not remove or advance. - Existing issue close-and-next and non-session merge behavior remain unchanged. - Behavioral tests cover the success, final-item, non-session, and failure boundaries. ## Evidence / non-duplication `frontend/dashboard.js` already completes and advances for issue closure but the merge success path only removes the item. Historical review of 206 issue titles found no merge-to-Today-session advancement. Closest completed work is #161 (assigned PR completion), #240 (review to merge), and #391/#392 (issue close and next); none connects confirmed PR merge to the active Today session.
timmy was assigned by rockachopa 2026-08-09 14:51:38 +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#407
No description provided.