Repository navigation
fix(plans): say that cancelling a scheduled purchase also disables its plan - #770
Merged
Merged
Conversation
…s plan
The row action on a scheduled purchase asked "Disable this plan?" with a
"Disable plan" button, but DELETE /purchases/planned/{id} cancels that one
execution and then disables the parent plan. Name both effects in the
dialog and the button tooltip.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
Warning Review limit reached
This review includes 2 billable files and costs up to $0.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 33 minutes for your next included review. View limit detailsLimit details: You’ve used the included review currently available. Your 85 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (2)
Comment |
Member
Author
Independent review (rv-ux-visual): PR #770 at
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The x button on a scheduled purchase asked "Disable this plan?" with a "Disable plan" button. The server does two things for that click:
DELETE /api/purchases/planned/{id}cancels that one scheduled execution, then disables its parent plan when the caller may change every plan account (handler_purchases.go,deletePlannedPurchase). The dialog now says both: "Cancel this scheduled purchase?", body "This scheduled purchase will be canceled, and its plan will be disabled so no further purchases are scheduled from it...", buttons "Cancel purchase and disable plan" / "Keep it". The button tooltip matches.Wording only; no behavior change. A caller whose scope does not cover every plan account still has the purchase canceled but the plan left enabled (the API reports
plan_disabled); the dialog does not distinguish that case.Verification
plans.test.tsdisable-action test now asserts the dialog title and the "plan will be disabled" body.npm ci. CI runs the frontend tests.🤖 Generated with Claude Code