Add requested-duration field and spend-limit timeframe to upgrade requests - #29600
Open
avervaet wants to merge 2 commits into
Open
Add requested-duration field and spend-limit timeframe to upgrade requests#29600avervaet wants to merge 2 commits into
avervaet wants to merge 2 commits into
Conversation
Parks the two time-based additions that were previously bundled with the reason-message feature: requestedDurationDays on upgrade requests, and day/week/month rolling-window enforcement of per-user spend-limit overrides (Membership.overrideLimitTimeframe). Stacked on top of overage-message-field so it can be picked back up without re-deriving the reason-field plumbing it builds on. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
react-doctor flagged the group label as unassociated. htmlFor targets a single control, so use aria-labelledby on the RadioGroup root instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
8 tasks
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
requestedDurationDays) to the upgrade-request flow: members pick how long they need the limit increase (day/week/month presets), and it's stored, surfaced in the admin requests table, and included in the notification email and audit log.overrideLimitTimeframe(day/week/month/billing_cycle) on membership, letting an admin cap AWU credit spend over a rolling window instead of a flat all-time cap.requestedDurationDaysis currently informational only (not wired tooverrideLimitTimeframe, and the raised cap does not auto-expire). Automatic expiration/reversion of the override once the requested period elapses is tracked as a stacked follow-up PR.Test plan
requestedDurationDaysshows up in the admin's UpgradeRequestsTable, notification email, and audit log.Deploy plan
🤖 Generated with Claude Code