fix: clean up refractor status — suffix tags, compact layout #133
No reviewers
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
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-discord#133
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/refractor-status-cleanup"
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
**Name** — Base Chrome [T1](T0 cards show name only)▰▰▰▰▱▱▱▱▱▱▱▱ 53/149 (36%)— removed formula label and tier arrowMAXin code block instead of FULLY EVOLVEDFORMULA_LABELS, added_FULL_BARconstant, removed unnecessary commentscards→items)Test plan
AI Code Review
Files Reviewed
cogs/refractor.py(modified)tests/test_refractor_commands.py(modified)Findings
Correctness
_FULL_BAR = "▰" * 12is mathematically identical to the removedrender_progress_bar(1, 1)call — no behavior change.build_tier_summarychange fromTIER_SYMBOLS[t] or "Base"toTIER_SYMBOLS[t]is correct: theor "Base"fallback was only needed because T0 was"". Now T0 is"Base", the fallback is dead code. Safe removal.format_refractor_entryT0 branch (first_line = f"**{player_name}**") is an exact match for the documented spec.test_refractor_status_empty_roster({"cards": []}→{"items": [], "count": 0}) correctly aligns with the API response shape consumed by the command handler at line 382.test_percentage_in_outputallows both(80%)and(81%)— appropriate since120/149 = 80.54%rounds to81%with:.0%format. No issue.Security
Style & Conventions
_FULL_BARunderscore prefix correctly signals module-private, consistent with Python convention.build_status_embedwere obvious (e.g.# Card entriesabove a list comprehension). Clean removal.track/card_typeextraction removed fromformat_refractor_entrysinceFORMULA_LABELSno longer exists. No dead variable left behind.Suggestions
Verdict: APPROVED
Clean, focused cleanup. All behavior changes match the PR description, every stale test is correctly removed or updated, and no regressions are introduced in the untouched tests. The
_FULL_BARconstant is a nice micro-optimization that also improves readability.Automated review by Claude PR Reviewer
LGTM — dead code removed, display simplified, tests updated.