feat: Refractor tier badge prefix in card embed title (WP-12) (#77) #88

Merged
cal merged 6 commits from ai/paper-dynasty-database#77 into main 2026-03-23 20:05:45 +00:00

6 Commits

Author SHA1 Message Date
cal
3ce5aebc57 Merge branch 'main' into ai/paper-dynasty-database#77
All checks were successful
Ruff Lint / lint (pull_request) Successful in 16s
2026-03-23 20:05:29 +00:00
Cal Corum
687b91a009 fix: rename test file and docstring to Refractor terminology
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m8s
Renames tests/test_card_embed_evolution.py to tests/test_card_embed_refractor.py
and updates the module-level docstring to use "Refractor tier progression" /
"Refractor API" instead of "evolution progress" / "evolution API".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 12:31:38 -05:00
Cal Corum
1f26020bd7 fix: move TIER_BADGES to module level and fix unknown tier fallback
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m25s
- TIER_BADGES dict moved from inside get_card_embeds() to module level
- Unknown tiers now show no badge instead of silently promoting to [SF]

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 10:39:56 -05:00
Cal Corum
cc02d6db1e fix: align badge labels with updated tier names
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m34s
Tier badges shifted to match updated spec:
  T1=[BC] Base Chrome, T2=[R] Refractor, T3=[GR] Gold Refractor, T4=[SF] Superfractor
T0 (Base Card) shows no badge. All 11 tests pass.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 10:32:10 -05:00
Cal Corum
fc8508fbd5 refactor: rename Evolution badges to Refractor tier names
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m24s
- Badge labels: [R] Refractor, [GR] Gold Refractor, [SF] Superfractor, [SF★] fully evolved
- Fix broken {e} log format strings (restore `as e` + add f-string prefix)
- Restore ruff.toml from main (branch had stripped global config)
- Update all test assertions for new badge names (11/11 pass)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 08:50:11 -05:00
Cal Corum
0304753e92 feat: tier badge prefix in card embed title (WP-12) (#77)
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m32s
Add evolution tier badge to get_card_embeds() title. Fetches
evolution/cards/{id} endpoint; prepends [T1]/[T2]/[T3]/[EVO] when
current_tier > 0. API failure is silently swallowed so card display
is never broken.

Also add ruff.toml to suppress legacy star-import rules (F403/F405)
and bare-except/type-comparison rules (E722/E721) for helpers/main.py,
which predates the pre-commit hook installation.

Closes #77

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 15:07:35 -05:00