Skip to content

Remove Credit Card option from payment and allocation filters#1859

Merged
maebeale merged 1 commit into
mainfrom
maebeale/remove-creditcardpayment
Jul 4, 2026
Merged

Remove Credit Card option from payment and allocation filters#1859
maebeale merged 1 commit into
mainfrom
maebeale/remove-creditcardpayment

Conversation

@maebeale

Copy link
Copy Markdown
Collaborator

Why

  • The CreditCardPayment payment type is no longer used, but it still appears as a "Credit Card" option in two filter dropdowns. Selecting it can only ever return zero results.
  • Removing it keeps the filters limited to payment types that actually exist.

What

  • Drop Credit Card → CreditCardPayment from the payments Type filter (app/views/payments/_search_boxes.html.erb).
  • Drop the same option from the allocations Source type filter (app/views/allocations/_search_boxes.html.erb).

Notes

  • HOLD: — opening as a placeholder; confirm CreditCardPayment is truly retired (no historical records still typed as CreditCardPayment that admins need to filter for) before merging.
  • Left Events::PublicRegistrationsController#credit_card_payment? untouched — that's the event-registration "payment method" form field that routes to Stripe checkout, unrelated to the CreditCardPayment polymorphic type.

🤖 Generated with Claude Code

The CreditCardPayment type is no longer used; drop it from the
payments Type filter and allocations Source type filter so the
dropdowns only offer payment types that actually exist.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@maebeale maebeale marked this pull request as ready for review July 4, 2026 20:43
Copilot AI review requested due to automatic review settings July 4, 2026 20:43
@maebeale maebeale merged commit 019f32b into main Jul 4, 2026
3 checks passed
@maebeale maebeale deleted the maebeale/remove-creditcardpayment branch July 4, 2026 20:43
@maebeale maebeale changed the title HOLD: Remove Credit Card option from payment and allocation filters Remove Credit Card option from payment and allocation filters Jul 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes the legacy “Credit Card” (CreditCardPayment) option from admin-facing filter dropdowns so users can’t select a payment type that no longer yields results.

Changes:

  • Removed “Credit Card” from the Payments Type filter options.
  • Removed “Credit Card” from the Allocations Source type filter options.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
app/views/payments/_search_boxes.html.erb Removes CreditCardPayment from the payments type filter dropdown.
app/views/allocations/_search_boxes.html.erb Removes CreditCardPayment from the allocations source-type filter dropdown.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants