Skip to content

chore(ascregister): config hygiene — fix counts, drop orphans, collapse dup parser - #927

Merged
wei18 merged 1 commit into
mainfrom
chore/757w6-ascregister-config-hygiene
Jul 21, 2026
Merged

wei18 merged 1 commit into
mainfrom
chore/757w6-ascregister-config-hygiene

Conversation

@wei18

@wei18 wei18 commented Jul 21, 2026

Copy link
Copy Markdown
Owner

What

#757 wave-6 ASCRegisterKit hygiene (4 low findings):

  • Corrected stale achievement-count comments (13→11, v2.6 batch (5)→(3); 680-pt total was already right).
  • Deleted orphan Config.allAchievementFullIds + AchievementConfig.stepCount (zero readers).
  • Collapsed byte-identical APIResource.fromDict/fromDictPublic into one internal fromDict (5 call sites updated).

Verification

  • ASCRegisterKit 169 tests + swiftlint --strict clean.
  • Dual CR: APPROVE ×2 — counts re-derived from the array + ConfigConsistencyTests; orphans + zero dangling fromDictPublic grep-confirmed; parser bodies character-identical, zero behavior change.

Part of #757

🤖 Generated with Claude Code

…se dup parser

#757 wave-6 (4 low-severity ASCRegisterKit findings, one pass):
- Config.swift comments said "13 achievements"/"13 short IDs" and "v2.6 batch
  (5)" — the array + ConfigConsistencyTests pin 11 (8 v1 + 3 v2.6), 680 pts.
  Corrected the three stale count strings (points total was already right).
- Deleted orphan Config.allAchievementFullIds + AchievementConfig.stepCount
  (zero readers; stepCount was an unrelated GameCenterKit percent-progress
  concept, never in any ASC payload — grep-confirmed).
- Collapsed the byte-identical APIResource.fromDict (private) + fromDictPublic
  (internal) into one internal fromDict; renamed fromDictPublic → fromDict
  (the ...Public suffix lost meaning once deduped) and updated all 5 call
  sites (incl. the cross-file ASCClient+IAPScreenshots caller). Zero behavior
  change (bodies were character-identical).

Verified: ASCRegisterKit 169 tests + swiftlint --strict clean. Dual CR:
APPROVE x2 (counts re-derived from the array/tests; orphans + no dangling
fromDictPublic grep-confirmed; parser bodies byte-identical, all call sites
resolve to the internal survivor).

Part of #757

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 enabled auto-merge (squash) July 21, 2026 06:43
@wei18
wei18 merged commit 9b7d0c4 into main Jul 21, 2026
5 checks passed
@wei18
wei18 deleted the chore/757w6-ascregister-config-hygiene branch July 21, 2026 06:44
@wei18 wei18 mentioned this pull request Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant