Frontend: UI for Strava webhook configuration#102
Draft
Conversation
Co-authored-by: apdarr <3004606+apdarr@users.noreply.github.com>
Co-authored-by: apdarr <3004606+apdarr@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add UI components for Strava webhook configuration
Frontend: UI for Strava webhook configuration
Oct 20, 2025
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
Adds frontend UI components for Strava webhook configuration as specified in issue #59. This PR implements the user-facing elements needed to configure automatic Strava activity syncing, including:
Screenshot
The mockup demonstrates all four UI components:
Implementation Details
Graceful Degradation
The UI uses
respond_to?(:webhook_enabled?)checks throughout to handle cases where the database column doesn't exist yet. This allows the frontend to be deployed independently of the backend implementation, preventing errors and providing a smooth migration path.User Experience
Controller Changes
Added
enable_webhook_syncaction to handle retroactive webhook enabling:Styling
All components use existing Tailwind CSS utility classes and follow the app's design patterns:
Testing
Added comprehensive test coverage:
enable_webhook_syncactionwebhook_enabledcolumn doesn't existScope
This PR focuses exclusively on frontend UI as requested in the issue. The backend implementation (database migrations, webhook endpoint, background jobs, matching algorithm) will be handled in separate PRs per the parent issue #59.
Related
Addresses #59 (UI portion)
Original prompt
Fixes #99
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.