Skip to content

feat(admin): Add "Add to Startup Program" customer action#111266

Merged
rahulchhabria merged 5 commits intomasterfrom
rahul/admin-startup-program-action
Mar 26, 2026
Merged

feat(admin): Add "Add to Startup Program" customer action#111266
rahulchhabria merged 5 commits intomasterfrom
rahul/admin-startup-program-action

Conversation

@rahulchhabria
Copy link
Copy Markdown
Contributor

Add a new customer action in /_admin called "Add to Startup Program" that opens the same credit modal used by "Add or Remove Credit", but prepopulated with:

  • Credit amount: $5,000
  • Notes: sentryforstartups

All fields remain fully editable in case values need to be overridden. The action reuses the existing balance-changes endpoint so no backend changes are needed.

The action requires billing admin permissions, matching the existing credit action.

Add a new customer action in /_admin that opens a credit modal
prepopulated with $5000 and "sentryforstartups" in the notes field.
All fields remain editable for overrides. Reuses the same
balance-changes endpoint as the existing credit action.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 21, 2026
@rahulchhabria rahulchhabria marked this pull request as ready for review March 21, 2026 00:10
@rahulchhabria
Copy link
Copy Markdown
Contributor Author

@cursoragent review pls

@mrduncan mrduncan requested a review from a team March 25, 2026 15:21
Copy link
Copy Markdown
Member

@mrduncan mrduncan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Behavior lgtm locally and makes sense, will defer to revenue team for code review

Image

@mrduncan mrduncan requested a review from a team March 25, 2026 15:49
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread static/gsAdmin/components/addToStartupProgramAction.tsx
Copy link
Copy Markdown
Member

@brendanhsentry brendanhsentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree with cursor's comment but if you're going to update this modal soon then that's fine.

i'll approve after we add some tests

Cover rendering, default values, submission with custom values,
field disabling during submission, double-click prevention,
error recovery, and cancel behavior.

Co-Authored-By: Claude <noreply@anthropic.com>
@rahulchhabria rahulchhabria merged commit b1cbea7 into master Mar 26, 2026
69 of 70 checks passed
@rahulchhabria rahulchhabria deleted the rahul/admin-startup-program-action branch March 26, 2026 17:04
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants