Repository navigation
Conversation
Design for tagging a finished match with who was played and whether it was a friendly, league or tournament match. Records the merge hazard that would silently wipe phone-side tags on the next watch sync, the derived-roster approach for re-selecting players, the sync/export surfaces, and a sensitive-data review of third-party names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4hwsXcv3uCzZ8W2pypt4r
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cb042490c4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Edit-time sends can be skipped for good (manifest lag, an older watch that later upgrades), so the plan adds reconciliation on watch history/manifest arrival. Manual entry only builds in-progress records, so it no longer carries tag fields in v1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4hwsXcv3uCzZ8W2pypt4r
Competition Type as the UI label, Practice as a fourth case, names on by default in shared reports, iPhone-only editing in v1, and the six proposed defaults confirmed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4hwsXcv3uCzZ8W2pypt4r
Matches the 'Competition Type' UI label. Related identifiers follow (competitionType, competitionTypeRaw, Meta.competitionTypeLabel), and the unknown-value test example moves off 'practice', which is now a real case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4hwsXcv3uCzZ8W2pypt4r
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
Adds
docs/features/MATCH_TAGS_PLAN.md, a design for tagging a finished match with:Tags are edited on iOS and shown read-only on the watch in v1. They're used in the AI Coach prompt and in shared reports. The doc also includes a sensitive-data review.
This PR is docs only. No code changes.
Key findings recorded in the plan
MatchMergePolicy.resolve, case 4 picks the record with the laterendTimeand uses>=. The watch's copy of a finished match has the sameendTimeas the phone's, so the next full-history push from the watch replaces the phone's tagged record with an untagged one.ArchiveBackupPolicy.resolveBackuphas the same shape. Tags therefore merge separately, using their ownupdatedAtlast-write-wins clock. That Core PR must land before any UI can write a tag.tags. Sonilmeans "no information", and clearing tags is stored as an emptyMatchTagswith a newer timestamp.MatchTypealready means singles/doubles, so the new enum isCompetitionType, matching its "Competition Type" UI label.[MatchRecord]archive fail to decode (TECHNICAL_DEBT docs: tidy micro-site hero layout #18 and docs: reword iPhone line in hero subtitle to reduce repetition #19).matchTagsUpdatekey. Sending a full record would go through.singleMatch, which firescompleteCurrentMatchIfMatching. The phone also resends tags when watch history arrives with older or missing tags, and when a match newly appears in the watch's manifest (§6.1).Sensitive-data review (§8 of the plan)
These are the app's first third-party names. Decisions:
privacy: .public.scriptSafeand HTML escaping, with tests using hostile names.Owner decisions (§11)
CompetitionType,MatchTags.competitionType,Meta.competitionTypeLabel)Verification
Docs only, so nothing to build or test. I checked the cited code locations (merge sites, wire handling, HTML escaping, test file names) against the current
main.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4hwsXcv3uCzZ8W2pypt4r