Skip to content

feat(roster): quick-swap, role substitutes, and academy transfer list - #327

Open
TtvNekix wants to merge 2 commits into
OpenLeagueManager:developfrom
TtvNekix:feat/roster-academy-improvements
Open

feat(roster): quick-swap, role substitutes, and academy transfer list#327
TtvNekix wants to merge 2 commits into
OpenLeagueManager:developfrom
TtvNekix:feat/roster-academy-improvements

Conversation

@TtvNekix

@TtvNekix TtvNekix commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Implements all 3 suggestions from issue #300.

Changes

1. Quick-swap for injured/low-condition players (SquadTabV2)

  • Active lineup players with < 30% condition get a red left border + alert icon
  • A "Swap" button (RefreshCw icon) appears next to them
  • One click auto-replaces them with the highest-OVR bench player of the same role
  • Prioritizes the designated sub (feature 2) over best OVR when available

2. Role-based substitutes / Starter-Sub system (SquadTabV2 + Backend)

  • New role_sub_ids field on Team (5 slots, one per role: TOP/JG/MID/ADC/SUP)
  • New Tauri command set_role_subs for assigning substitutes per role
  • SUB selector dropdown below each active lineup slot
  • Quick-swap button automatically promotes the designated sub first
  • Warning icon when the sub also has low condition

3. Academy transfer list (YouthTabV2)

  • New ShoppingCart icon button on each academy player row
  • Uses the existing toggle_transfer_list command
  • Listed players appear in the Transfer Market tab
  • Toggle on/off to list/unlist
  • Works alongside the existing Promote button

TtvNekix added 2 commits June 13, 2026 04:49
… list

Implements suggestions 1 & 3 from issue OpenLeagueManager#300.

1. Quick-swap button: active lineup players with < 30% condition now show
   a red left border + alert icon. A RefreshCw button auto-replaces them
   with the highest-OVR bench player of the same role via set_active_lineup.

2. Academy transfer list: added ShoppingCart toggle button on each academy
   player row, using the existing toggle_transfer_list command. Players
   listed for transfer appear in the Transfer Market tab.
Implements suggestion 2 from issue OpenLeagueManager#300.

Backend:
- New field role_sub_ids: Vec<String> on Team (5 slots, one per role)
- New Tauri command set_role_subs for assigning substitutes
- Sub is auto-preferred by quick-swap when starter condition < 30%

Frontend:
- SUB selector below each active lineup slot
- Shows assigned sub or empty slot for selection
- Warning icon when sub also has low condition
- Quick-swap button prioritizes designated sub over best OVR
@TtvNekix TtvNekix changed the title feat(roster): add quick-swap for injured players and academy transfer list feat(roster): quick-swap, role substitutes, and academy transfer list Jun 13, 2026
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.

1 participant