Skip to content

ux(planned-purchases): Pause should be visible + reversible, not a silent removal (QA 6.1 follow-up) #903

Description

@cristim

QA Planned 6.1 follow-up

Current behavior (bug)

PR #779/#772 fixed the SQL crash by adding paused to the valid_status CHECK constraint on purchase_executions. But now clicking Pause on a scheduled (planned) purchase makes the row silently DISAPPEAR from the list with no feedback and no visible change to the plan. A Pause that looks like a delete is an anti-pattern.

Root cause (suspected)

The planned-purchases list query filters to active statuses (e.g. pending/scheduled) and excludes paused, so paused executions drop out of the rendered list. There is no success toast and no way to un-pause.

Desired behavior

  1. Keep the row VISIBLE with a clear Paused status badge (do not drop it).
  2. Success toast on pause ("Purchase paused").
  3. Add a Resume action to un-pause (paused -> pending/scheduled).
  4. Paused executions are excluded from firing but stay listed (or under a Paused filter).
  5. Keep the three lifecycle actions distinct: Pause (one execution, reversible, plan stays enabled) vs Disable plan (Disable plan: scheduled purchase removed but plan toggle stays ON (Planned 6.4) #774, whole plan) vs Cancel (terminal).

Notes

Labels: triaged priority/p2 severity/medium urgency/this-sprint impact/many effort/m type/bug

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mDaysimpact/manyAffects most userspr-createdA PR has been opened for this issue (dedup guard for the auto-PR loop)pr-mergedThe PR for this issue has been mergedpriority/p2Backlog-worthyseverity/mediumModerate harmtriagedItem has been triagedtype/bugDefecturgency/this-sprintWithin the current sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions