Refactor SupportModal into core lib, add CAPTCHA & clean up repo pages#55
Merged
Refactor SupportModal into core lib, add CAPTCHA & clean up repo pages#55
Conversation
- Integrated CAPTCHA verification logic in the POST request handler. - Added functions to check if CAPTCHA is required, retrieve client IP, and verify the Turnstile token. - Enhanced error handling for missing or failed CAPTCHA verification, returning appropriate responses.
d9f7f4d0 Add SupportModal component with Turnstile CAPTCHA integration 0dd40557 Refactor dashboard content and enhance support modal with CAPTCHA verification. Removed quick actions from the dashboard and improved layout for schema extensions and graph ID display. Added Turnstile CAPTCHA integration in the support modal for enhanced security during form submissions. 34596f06 Enhance subscription filtering in OverviewTab and BrowseRepositories components. Updated repository subscription logic to include only active subscriptions in the OverviewTab and refined user subscription checks in BrowseRepositories to account for canceled subscriptions with valid end dates. git-subtree-dir: src/lib/core git-subtree-split: d9f7f4d0edc30928107d7620b0bba75c57c3c9f5
…s previous file. This change streamlines the component structure by integrating SupportModal into the layout, enhancing code organization and maintainability.
jfrench9
added a commit
that referenced
this pull request
Mar 11, 2026
Align README and CLAUDE.md with current app state
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
This PR consolidates the SupportModal component into the
src/lib/coremodule, adds Cloudflare Turnstile CAPTCHA verification to the support submission flow, and performs minor cleanup on repository page components.What changed
SupportModal relocation & enhancement
SupportModalfromsrc/components/app/tosrc/lib/core/ui-components/support/, integrating it into the shared core library for better reusability and organization.layout-wrapper.tsxto importSupportModalfrom its new location.CAPTCHA verification (Turnstile)
src/lib/core/utils/turnstile-config.tsutility with Turnstile site key configuration and helper utilities.src/app/api/support/route.ts, validating the Turnstile token against Cloudflare's siteverify endpoint before processing support requests.Repository page cleanup
ActiveSubscriptions.tsx.BrowseRepositories.tsx(likely import or rendering adjustments).Core library barrel exports
src/lib/core/index.tsandsrc/lib/core/ui-components/index.tsto export the newSupportModaland support-related modules.src/lib/core/ui-components/support/index.tsbarrel file.Key UI/UX Improvements
Breaking Changes
SupportModalfromsrc/components/app/SupportModalwill break. All imports must now referencesrc/lib/core/ui-components/support(or the core barrel export). This PR updates all known consumers.TURNSTILE_SECRET_KEY(or the relevant env var referenced inturnstile-config.ts) is set in all deployment environments.Testing Notes for Reviewers
next build) to catch any missing module references.ActiveSubscriptionsandBrowseRepositoriesto confirm no regressions from the cleanup.Browser Compatibility Considerations
https://challenges.cloudflare.comif a strict CSP is in place.🤖 Generated with Claude Code
Branch Info:
chore/cleanup-repo-pagesmainCo-Authored-By: Claude noreply@anthropic.com