dean/get-video-card-query #250
Reference in New Issue
Block a user
No description provided.
Delete Branch "dean/get-video-card-query"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Three new read operations to support the mobile session-detail redesign and
two payload optimizations. All reuse existing resolvers (
getVideo,getFeedVideos,getOrderedShots) — no backend/schema changes.GetVideoCard($videoId)Returns the full
VideoCardFieldsfragment for a single video. Lets thesession-detail meta header share one source of truth (and the normalized
Apollo cache) with the feed card, instead of stitching together
GetVideoDetails+GetVideoSocialDetailsById.GetLastSessionDate(lean)Most-recent session
startTimeonly, for the Home "you haven't recorded inN days" nudge — which previously pulled the entire
VideoCardFieldspayload(reactions, comments, player summaries, tags, stream metadata) just to read
one timestamp.
GetShotClipRanges/ShotClipRangefragment (lean)Per-shot frame/time window only (
id,videoId,startFrame,endFrame,startTime @client,endTime @client). The inline session player uses thisfor condensed clip seeking instead of
ShotWithAllFeatures— which draggedcue/pocketing features, base64 serialized shot paths, and annotations for up
to 500 shots per session open. The
@clienttime resolvers only need theframe fields (they look the video up internally), so this is safe.
How it was generated
src/operations/*.gql(feed.gql,shots.gql,video.gql).just gql; generatedindex.tsxis in sync (verified thecanonical run reports no further diff).
Notes for reviewers
Mobile consumer:
railbird-mobile#dean/brand-design-overhaulbumps itssubmodule pointer to this branch. Merge this first, then the mobile PR's
pointer should be updated to the merged commit.