Skip to content

Move account deletion to a dedicated support page and fix invisible delete button#71

Merged
philipithomas merged 1 commit into
mainfrom
support-page
Jun 10, 2026
Merged

Move account deletion to a dedicated support page and fix invisible delete button#71
philipithomas merged 1 commit into
mainfrom
support-page

Conversation

@philipithomas

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #70.

Bug fix: red classes didn't exist

The delete-account UI used text-red-700 / bg-red-700 / border-red-700, but config/tailwind.config.js replaces Tailwind's default palette (colors: rather than extend:) and defines no red scale — so those classes compiled to nothing. The section heading rendered unstyled and the modal's confirm button was white text on a white card (the invisible button in the screenshot). This PR adds a red scale (050, 600, 700, 800) to the palette; verified the utilities now appear in the compiled CSS.

Dedicated support page

In multiuser mode, the "Contact support" item in the avatar nav menu now opens /pages/:slug/support in-app instead of a mailto: link. The page shows the support address (postcard@contraption.co) and hosts the "Delete account" section, which moves off the page settings (pages/edit is back to just the form). Solo mode keeps the "Report an issue" GitHub link and redirects /support to the page, mirroring BillingController.

Failure redirects in AccountController#destroy, the Devise registration destroy redirect, and the Devise edit view link all point at the support page now.

Tests

New SupportControllerTest (renders contact info + delete section in multiuser, redirects in solo, requires auth — redraws routes after toggling mode since the dashboard layout links to multiuser-only routes), and updated redirect assertions in AccountControllerTest. 18 tests pass; zeitwerk:check and brakeman clean.

🤖 Generated with Claude Code

…utton

The delete-account UI shipped with red Tailwind classes, but the app's
Tailwind config replaces the default palette and has no red scale, so the
classes compiled to nothing: the section heading rendered in plain text
and the modal's submit button was white-on-white and invisible. Adds a
red scale to the palette.

In multiuser mode, the "Contact support" item in the nav menu now opens
a dedicated support page (instead of a mailto link) that shows the
support email address and hosts the delete-account section, which moves
off the page settings. Failure redirects, the Devise registration
destroy redirect, and the Devise edit view now point at the support
page. Solo mode keeps the "Report an issue" GitHub link.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@philipithomas philipithomas merged commit a7a3335 into main Jun 10, 2026
5 checks passed
@philipithomas philipithomas deleted the support-page branch June 10, 2026 22:14
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