Skip to content

refactor(domain): replace Position enum with LolRole - #80

Merged
aalonsolopez merged 2 commits into
OpenLeagueManager:developfrom
NicoRuedaA:feat/50-position-to-lol-role
May 1, 2026
Merged

refactor(domain): replace Position enum with LolRole#80
aalonsolopez merged 2 commits into
OpenLeagueManager:developfrom
NicoRuedaA:feat/50-position-to-lol-role

Conversation

@NicoRuedaA

Copy link
Copy Markdown
Contributor

Closes #50

Type

  • Code refactoring

Summary

  • Remove 19-variant Position enum, use 5-variant LolRole (Top, Jungle, Mid, ADC, Support)
  • Custom Deserialize for backward compatibility with legacy saves
  • 45+ files updated across domain, engine, ofm_core, db, and frontend
  • 5 role-specific rating weight maps replacing 19 position weights

Test Plan

  • cargo build --workspace passes (exit code 0)
  • Core Rust implementation verified

Closes #50

- Remove 19-variant Position enum (football positions)
- Use existing 5-variant LolRole enum (Top, Jungle, Mid, Adc, Support)
- Implement custom Deserialize for backward compatibility with legacy Position strings
- Update 45+ files across domain, engine, ofm_core, db, and frontend
- Add 5 role-specific rating weight maps
- Update TypeScript types and components

Closes #50
@NicoRuedaA
NicoRuedaA force-pushed the feat/50-position-to-lol-role branch from 400360b to 73b8381 Compare May 1, 2026 10:03
@aalonsolopez
aalonsolopez changed the base branch from main to develop May 1, 2026 11:25
@aalonsolopez aalonsolopez linked an issue May 1, 2026 that may be closed by this pull request
6 tasks
@aalonsolopez
aalonsolopez merged commit ad95f44 into OpenLeagueManager:develop May 1, 2026
3 of 4 checks passed
@NicoRuedaA
NicoRuedaA deleted the feat/50-position-to-lol-role branch May 7, 2026 13:53
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.

refactor(domain): replace Position enum with LoL Role enum

2 participants