Momentum Player Hub — TennisLink extension 0.1.15 (private beta)

INSTALL ON DESKTOP CHROME
1. Unzip this download.
2. Open chrome://extensions, turn on Developer mode, choose Load unpacked.
3. Select this momentum-tennislink folder.
4. Open https://www.momentum-playerhub.com/admin/scorecards in the same Chrome profile.
5. Reload the page, open Submit Score Card and check the connection.

UPDATE
Replace the unzipped folder with this download, then click Reload on the existing
extension in chrome://extensions. Reload Player Hub and check the connection.

USE
Save and check a scorecard in Player Hub. Authorize that saved version, then
select Submit to TennisLink. The official site opens visibly in its own tab.
Sign in there if necessary. All progress and the verified card appear in the hub.

The extension fills a blank official card or compares an existing read-only card
and selects Confirm and Finish when all eight contests agree. It never overwrites
posted scores. Names are exact roster matches; doubles pairs may appear in a
different official line order. Singles ladder order must match.

10U: highest score below 4 = Timed Match; 4 = Completed.
12U: highest score below 6 = Timed Match; 6 = Completed.
Always higher score first, then lower score; winner is selected separately.
Ties, defaults, retirements, missing players and unknown forms stop for review.

SPORTSMANSHIP
Select * for one player per team on the official review. Player Hub uses each
team's Singles #1 player by default; a nominee selected on the saved scorecard
takes priority. Repeated appearances do not create extra recipients. Both awards
are checked before the final permit and again after saving. Locked controls or
a different locked nomination stop submission; no disabled control is bypassed.

After the final action, the extension reopens the persisted official record.
If the outcome is uncertain, use Check official status; never start a duplicate.
When the status explicitly says no scores were entered and all eight official
contests are blank, the old attempt closes. A fresh attempt requires your saved
card authorization again. Posted or mismatched records never unlock a retry.
Closing Chrome or updating the extension can interrupt work. A final click is
not retried automatically. Each final action requires a one-use server permit.

PRIVACY
Only www.momentum-playerhub.com and tennislink.usta.com are permitted.
No password is read, saved or sent to Player Hub. Chrome holds your existing
TennisLink session. One short-lived token gives this extension access to only
the submission job you authorized, not all family or player records.

LIMITATIONS
This is a private beta, not published to the Chrome Web Store. It does not run
in Codex's in-app browser or mobile Chrome. TennisLink page changes can stop
the adapter. The website displays structured progress, not an embedded remote
TennisLink screen. The official tab remains available throughout the process.

LICENSE
GNU AGPL v3 only. Source accompanies this download and the Player Hub source offer.

ROSTER NAMES AT MERGE
Merge scorecards reads the selected match's official rosters in a background
TennisLink tab. Keep TennisLink signed in in the same Chrome profile. Unique
first names become full registered names before the hub saves the merged card.
Cam -> Cameron Chong is a captain-confirmed alias for Almaden's roster only.
Duplicate first names and unknown nicknames require selecting a full name.
Existing merged cards have a Match first names to TennisLink roster button.
Roster lookup never enters scores or submits anything on TennisLink. If login
is required, sign in and retry. This requires desktop Chrome, not mobile Chrome.

PLAYER PROFILE IMPORT (0.1.14)
From Admin > Family Access, create a new player with full name and USTA number. The extension opens the official USTA player profile using your browser's existing USTA sign-in. Sign in on USTA if prompted; no password is read or saved by the Hub. It verifies the full name and number, reads About/WTN and All Match Results / All Years, loads earlier results, then saves JTT and individual history separately. Keep Chrome and the USTA tab open. Progress appears in Family Access. If a page changes or identity differs, the import stops for review. No official scores are submitted by player imports. Install/update this folder and reload the Hub; www.usta.com access is required for displayed player records.

START A SEASON
In Admin → Season Data, choose Start new season, select the year and Spring/Fall,
then Find teams on TennisLink. Sign in on the official tab if prompted.
The extension reads matching team names, numbers and registered player rosters.
Return to the Hub to review and select teams, then choose Import & start season.
The existing season stays unchanged until that final step. A different previous
season is archived. Existing player profiles are matched by USTA number.
New match dates/results are not invented; use New match in Scorecards.
If TennisLink shows only part of the captain team list, show all rows and retry.

STARTUP RECOVERY (0.1.14)
Read the match form as soon as its controls exist, without waiting for every
TennisLink page resource to finish. Closed tabs and stalled page loads now stop
with a recovery message. Expired injected operations cannot run later.
No final score submission is retried automatically.

Version 0.1.14: Admin → Account → Run Momentum Player Hub Architecture.
The Hub saves a private recovery snapshot, then this extension reads official
team reports, player WTN/history and the six-week USTA tournament catalogue.
Keep Chrome open; complete official sign-in prompts yourself. Progress and
source errors appear in the Hub. This runner never submits match scores.
Adult schedule sources that have not been verified are flagged for review.
Additional official host access: playtennis.usta.com and ustanorcal.com.

PROFILE NAVIGATION (0.1.14)
Each successive USTA player opens in a fresh source tab. The previous scan tab
is closed only after the replacement is registered. This avoids USTA retaining
the previous player during a hash-only navigation. Identity checks still block
wrong-player imports, and the Hub displays the specific reason for a failure.

OFFICIAL SOURCE LOADING (0.1.14)
The architecture runner waits for tournament search controls to render, reads
current playoff scorecard labels and masked opponent IDs, and opens completed
reports without the print option. Delayed read-only operations retry within a
bounded time window; wrong identities and unverified scores still stop for review.

Coach playing profiles (0.1.14)
Admin > Coaches & Captains now supports the Momentum Player Hub prompt. Approving a coach with a verified full name and USTA number starts the same read-only player import used in Family Access. Existing coaches can link their USTA identity and run the prompt from Playing history & experience. The official USTA tab must be open and signed in; All Match Results and All Years must be selected. Available season history and individual tournament results remain separate.

CONNECTION RECOVERY (0.1.14)
The architecture scan keeps its checkpoint through temporary Hub timeouts and
retries with a delay. It does not mark a player's official data as failed just
because the Hub connection is interrupted. Progress checks omit recovery
snapshots and do not overlap.
USTA profiles open in the foreground. Results filters are recognized by their
visible All Match Results / All Years labels, including when generated IDs
differ between players. Hidden sign-in messages are ignored.
To update: replace the unpacked extension folder, Reload it in chrome://extensions,
refresh Player Hub, then Connect Chrome / resume. Completed checks are retained;
failed checks are retried from the first failure.

ARCHIVE-AWARE IMPORTS (0.1.15)
Player Hub architecture imports use the requested current year and return the archive scope with their verified results. Archived records stay stored in Player Hub. Install this copy even if an older download already shows 0.1.14. Replace the unpacked folder, reload the extension in chrome://extensions, and reload Player Hub. Permissions are unchanged.
