Move account deletion to a dedicated support page and fix invisible delete button#71
Merged
Conversation
…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>
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
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, butconfig/tailwind.config.jsreplaces Tailwind's default palette (colors:rather thanextend:) 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/supportin-app instead of amailto:link. The page shows the support address (postcard@contraption.co) and hosts the "Delete account" section, which moves off the page settings (pages/editis back to just the form). Solo mode keeps the "Report an issue" GitHub link and redirects/supportto the page, mirroringBillingController.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 inAccountControllerTest. 18 tests pass;zeitwerk:checkandbrakemanclean.🤖 Generated with Claude Code