Skip to content

Theme payments index page#1581

Open
maebeale wants to merge 2 commits into
mainfrom
maebeale/payments-index-theme
Open

Theme payments index page#1581
maebeale wants to merge 2 commits into
mainfrom
maebeale/payments-index-theme

Conversation

@maebeale

@maebeale maebeale commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

What is the goal of this PR and why is this important?

  • The payments index page used an ad-hoc layout that didn't match the rest of the admin shell.

How did you approach the change?

  • Restyled payments/index to the standard shell: a DomainTheme-tinted rounded container, wider max-w-7xl layout, and sentence-case headings/buttons ("Add cash payment" / "Add check payment").
  • Set Vite to watch app/views/**/* so ERB-driven Tailwind classes rebuild during development.

Anything else to add?

🤖 Generated with Claude Code

- Restyle the payments index to match the app shell: DomainTheme-tinted
  container, sentence-case headings/buttons, and a wider max-width layout.
- Vite watches app/views/**/* so ERB-driven Tailwind classes rebuild in dev.

Note: the page tints via DomainTheme.bg_class_for(:payments); the :payments
key is added in the event dashboard PR (#1578) and falls back to gray until
that merges.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@maebeale maebeale marked this pull request as ready for review June 7, 2026 00:31
PaymentPolicy is empty, so index? resolves through ApplicationPolicy to
admin?, making the page admin-only rather than admin-or-auth. Correct the
bg class and track the view in the alignment spec's EXPECTED_MAPPINGS so
the "every view accounted for" guard passes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

1 participant