fix: reconcile refractor visual spec with mockup and playground (#55) #56
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-card-creation#56
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "issue/55-fix-reconcile-refractor-visual-spec-with-mockup-an"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #55
Three doc-only consistency fixes between
docs/refractor-visual-spec.md,docs/refractor-tier-mockup.html, anddocs/card-cosmetics-playground.html.Changes
1. Glow/metallic decoupling (
refractor-visual-spec.md)2. Stale keyframe values (
refractor-visual-spec.md)Updated
diamond-glow-pulseCSS to match the intensified values in the mockup:0%glow:5px 1px→8px 2px50%inner glow:8px 3px→14px 5px50%outer glow:14px 5px color-mix(...)→24px 8px var(--diamond-glow-color)(droppedcolor-mix, matched mockup spread)100%frame: was/* same as 0% */→ now explicit (matching mockup for clean loop)3. Playground badge colors (
card-cosmetics-playground.html)Updated T2/T3/T4 evo badge colors to match the approved tier palette:
#8b6914/#ffd700) → blue (#2070b0/#50a0e8)#4a1a6b/#c084fc) → red (#a82020/#e85050)#0a5a5a/#2dd4bf) → purple (#6b2d8e/#a060d0)Files changed
docs/refractor-visual-spec.mddocs/card-cosmetics-playground.htmlNo production code affected.
AI Code Review
Files Reviewed
docs/refractor-visual-spec.md(modified)docs/card-cosmetics-playground.html(modified)Findings
Correctness
⚠️ Internal inconsistency created: "What to port" item 3 not updated.
The PR correctly updates the body text (~line 113) to say metallic and glow are independent, with glow hardcoded ON for T4 and OFF for T1–T3. It also correctly updates the "What NOT to port" bullet (line 232). However, Section 7 "What to port" item 3 (line 221) was left unchanged and still reads:
This directly contradicts the new guidance. A developer following the "What to port" checklist would apply
diamond-glowto all tiers — the exact opposite of the approved behavior.Fix: Update item 3 to something like:
Security
Style & Conventions
refractor-tier-mockup.html:8px 2pxat 0%/100%,14px 5px+24px 8pxat 50% — all match the mockup exactly. ✓color-mix()in favor ofvar(--diamond-glow-color)directly is correct; the mockup uses the plain variable too. ✓updatePromptdescription strings updated consistently. ✓Verdict: REQUEST_CHANGES (posted as COMMENT — Gitea blocks self-review)
One correctness issue blocks merge: "What to port" item 3 contradicts the new glow/metallic decoupling. Fix that line and this is clean.
Automated review by Claude PR Reviewer
Addressed review feedback (review #470):
Fixed: "What to port" item 3 (line 225) now correctly reflects the glow/metallic decoupling:
Previously said "always apply glow animation to filled diamonds" — which contradicted the body text updated in this PR. A developer following the checklist would have incorrectly applied
diamond-glowto all tiers.AI Code Review
Files Reviewed
docs/refractor-visual-spec.md(modified)docs/card-cosmetics-playground.html(modified)Findings
Correctness
diamond-glow-pulseupdated to match the mockup (8px 2pxat 0%/100%,14px 5px+24px 8pxat 50%).color-mix()dropped in favor of plainvar(--diamond-glow-color). Explicit100%frame replaces the old/* same as 0% */comment — values correctly mirror 0% for a clean loop.#2070b0/#50a0e8), T3 → red (#a82020/#e85050), T4 → purple (#6b2d8e/#a060d0). All match the approved tier color table in Section 2. Shadow alpha suffixes (66, 88) kept at the same opacity levels as the old values. Description strings updated to match.Security
Style & Conventions
Suggestions
Verdict: LGTM (APPROVED — Gitea blocks self-review)
All three consistency fixes are correct and complete. The spec is now internally consistent across all glow behavior descriptions, and the playground badge colors align with the canonical tier palette.
Automated review by Claude PR Reviewer
Approved via pd-pr
Approved via pd-pr