Repository navigation
Phone + widget intake: match plan-metadata marker inside JSON-shaped producer ids - #388
Merged
Merged
Conversation
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Contributor
|
@kody start-review |
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
Phone and widget intake now drop producer ids containing the
plan-metadatamarker anywhere in the id, rather than only ids ending in the bare token. This brings phone parity with the widget contract from PR #387 for JSON-shaped ids that end in"]and prevents a plan-metadata caption from occupying a quota window/bar slot beside the plan's own meters. No change to own-device survival, dead-copy tracking, or extra-allowance handling was intended.Changes
CompanionQuotaModel: extracted phone wire-intake filtering frombuildPlatformSectioninto testableadmitsToIntake, and changed the metadata check from suffix match to substring match.WireRawWindowwas widened from private to internal to allow mirrored contract tests to feed wire rows directly.WidgetPresentation: changed the widget intake guard from suffix match to substring match for the same JSON-shaped ids, preserving the existingplan details/ reading-less exclusions noted from PR Name the absent Infisical service token in the ASC key staging fallback #367.WidgetParseContractTests: addedtestPhoneIntakeDropsJsonMetadataIdscovering a coding-plan window admitted alongside a JSON-shaped plan-metadata row with reset date, expecting only the coding-plan id to be admitted.Tests
Test added, not test run reported in the diff. Runtime verification remains unverified.
Automated review — unresolved
Code review reported 2 findings as data, with resolution unverified: medium — shared quota gate handling of non-suffix plan-metadata ids in
CompanionQuotaModel.swift; low — potentially redundant plan-metadata guard after intake filtering inWidgetPresentation.swift.