Find Players: distance, last-active, NTRP range, sort, and verified UI enhancements#125
Open
Studio-18 wants to merge 1 commit into
Open
Find Players: distance, last-active, NTRP range, sort, and verified UI enhancements#125Studio-18 wants to merge 1 commit into
Studio-18 wants to merge 1 commit into
Conversation
✅ Deploy Preview for ttp-player-web-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
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.
Motivation
Description
calculateDistanceMiles,getCoordinatesFromRecord,getLastActiveAt,formatLastActiveLabel) and passing userpositionintomapSuggestedPlayerinsrc/pages/FindPlayersPage.tsx.trimCourtLabeland show only venue/street on cards; keep full addresses on profile pages unchanged.PlayersFilterBarand exposeminLevel/maxLevel+onNtrpRangeChangeprops; the slider is visualized with two overlapping<input type="range">controls and value labels insrc/components/players/PlayersFilterBar.tsxand styled insrc/components/players/players.css.Sortdropdown with optionsNearest first,Highest rated,Lowest rated,Recently active, andBest matchand implement the sorting pipeline inFindPlayersPage(best-match is a weighted score of distance, NTRP proximity, and recent activity).PlayerCard(src/components/players/PlayerCard.tsx) to display the calculated distance ({X.X} mi) and a color-coded last-active indicator (green/yellow/gray dots plus labels), and strengthen verified visuals with a green-tinted border/shadow and a prominent badge style; preserve the existingConnectandView profilebuttons and core layout.src/components/players/players.css).Testing
npm run lintand fixed no new lint errors; one unrelated existing warning remains insrc/pages/DashboardPage.jsxand did not block the changes.npm run buildsuccessfully (production build completed).npm run dev) and verified the UI visually and via an automated Playwright capture of/#/find-playerswhich produced a screenshot for review.lint,build) completed successfully.Codex Task