feat(golf): Golf Canada profile page with live handicap index and recent scores - #99
Merged
Merged
Conversation
…nt scores Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Golf Canada plugin and components
feat(golf): Golf Canada profile page with live handicap index and recent scores
Mar 16, 2026
kenjdavidson
marked this pull request as ready for review
March 16, 2026 15:05
kenjdavidson
approved these changes
Mar 16, 2026
kenjdavidson
requested changes
Mar 16, 2026
| </dd> | ||
| </div> | ||
| <div class="flex justify-between"> | ||
| <dt class="text-gray-500 dark:text-gray-400 font-medium">Expires</dt> |
Owner
There was a problem hiding this comment.
We don't need the expiration date of the account, this should be considered somewhat PII.
Contributor
Author
There was a problem hiding this comment.
Removed in c292918. The "Expires" row is gone from the profile card — only the handicap index and career low remain.
| <div class="flex justify-between items-center"> | ||
| <dt class="text-gray-500 dark:text-gray-400 font-medium">Membership</dt> | ||
| <dd> | ||
| <span class="inline-block px-2 py-0.5 rounded-full text-xs font-semibold bg-brand-100 dark:bg-brand-900/40 text-brand-700 dark:text-brand-300"> |
Owner
There was a problem hiding this comment.
Membership type is not required, also somewhat PII.
Contributor
Author
There was a problem hiding this comment.
Removed in c292918. The "Membership" badge is gone. Updated profile card:
…PII) Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com>
Contributor
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
kenjdavidson
approved these changes
Mar 16, 2026
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.
Adds a
/golfpage that fetches live Golf Canada data at build time — handicap index, recent scores, and season stats — using credentials from environment variables.New files
src/utils/golf-canada.ts— build-time API client: authenticates via the Golf Canada token endpoint, fetches the member snapshot, validates both responses before casting, and stamps afetchedAtISO timestamp. Returnsnullwhen credentials are absent so local dev renders a graceful fallback.src/pages/golf.astro— two-column layout (mirrors/about):fetchedAttimestampModified files
Header.astro— Golf nav link added between Projects and AboutFloatingActionButton.tsx—FiDiscadded toFabIconNameunion +ICON_MAPBaseLayout.astro— Golf FAB shortcut at position 9; About moved to position 7Deploy
Add
GOLFCANADA_USERNAMEandGOLFCANADA_PASSWORDas GitHub Actions secrets — the build fetches and bakes in live data on every deployment.Screenshots
Golf page (with live data):

Updated navigation:

Original prompt
This section details on the original issue you should resolve
<issue_title>Feature - Golf Canada plugin</issue_title>
<issue_description>Implement source plugin and React Components for access/display of Golf Canada.
Login:
Performed with the following request
the object response is:
Snapshot
A snapshot of the profile is requested with
and returns
Page Layout
I'm curious to see what you'll do on your own. The profile shouldn't show any personal information, it should be solely golf related. It hsould include things like: profile image, name, handicap, recent scores, etc. The profile should be desktop and mobile friendly. It wil be possible to use the two column layout as you see fit.</issue_description>
Comments on the Issue (you are @copilot in this section)
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.