Add media bonus points and auto-import Strava photos#3
Merged
prazgaitis merged 4 commits intomainfrom Feb 9, 2026
Merged
Conversation
Activities with at least one photo/media attachment now earn a +1 "Photo bonus" point. Strava activities with photos automatically have their primary photo URL imported and stored as imageUrl. https://claude.ai/code/session_01VBqCWbawfK3FSaAb7B59Gs
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 adds a +1 bonus point reward for activities that include photos or media attachments, and implements automatic photo import from Strava activities.
Changes
Media Bonus Scoring:
MEDIA_BONUS_POINTSconstant andcalculateMediaBonus()function to the scoring enginemediaIds, animageUrl, or Strava photosStrava Photo Import:
StravaActivityinterface to include thephotosfield from Strava's detailed activity endpointextractStravaPhotos()helper function to extract the highest-resolution primary photo URLstravaPhotoUrlsfield toMappedActivityDatato track imported photo URLsimageUrlTechnical Details
photos.primary.urls(e.g.,{ "100": "url", "600": "url" }). We extract the largest available resolution.imageUrlalready exists on the activities tableTesting
Notes
metric: "media"for consistency with other bonuseshttps://claude.ai/code/session_01VBqCWbawfK3FSaAb7B59Gs