fix: improve diamond tier indicator visibility #194
No reviewers
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#194
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/diamond-indicator-styling"
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?
Summary
rgba(0,0,0,0.3)→0.55) for better contrastDeploy note
These are volume-mounted template files, not in the Docker image. After merge, manually copy to each server:
ssh pd-database/home/cal/container-data/dev-pd-database/ssh akamai/root/container-data/paper-dynasty/Test plan
AI Code Review
Files Reviewed
storage/templates/player_card.html(modified)storage/templates/tier_style.html(modified)Findings
Correctness
No issues found.
.tier-diamondin HTML and usesz-index: 19vs diamond'sz-index: 20— correct layering ✅{% if refractor_tier is defined and refractor_tier > 0 %}— conditional rendering is consistent ✅44px × 44px; diamond grid is2×19px + 2px gap = 40px × 40px. The 4px size differential centers the silver backing with a 2px overlap on each edge, ensuring the 2px cross gaps read as silver X lines as intended ✅rgba(0,0,0,0.75)→transparenton.tier-diamondcorrectly allows backing to show through thegap: 2pxgrid lines ✅0.3→0.55is a straightforward contrast improvement ✅Security
No issues found. Template files only; no user input paths involved.
Style & Conventions
.tier-diamond-backingand.tier-diamondshare six properties in common (position,left,top,transform,border-radius,pointer-events). These are duplicated across two separate blocks in the diff. The local working tree has already refactored this into a combined selector — consider squashing that cleanup into this commit to avoid a follow-up.Suggestions
rgba(200,210,220,0.9)) currently applies identically across all tiers (T1–T4). If future tiers use different gap colours, consider parameterising the backing colour via thediamond_colorsdict (e.g. abackingkey). Non-blocking, cosmetic.Verdict: COMMENT
No blocking issues. Implementation correctly achieves the stated visual goals. Posting as COMMENT due to self-review restriction (PR author = reviewer).
Automated review by Claude PR Reviewer
abbcd75382to73be3dd6f3Approved via pd-pr
Approved via pd-pr