feat(roster): quick-swap, role substitutes, and academy transfer list - #327
Open
TtvNekix wants to merge 2 commits into
Open
feat(roster): quick-swap, role substitutes, and academy transfer list#327TtvNekix wants to merge 2 commits into
TtvNekix wants to merge 2 commits into
Conversation
… 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
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements all 3 suggestions from issue #300.
Changes
1. Quick-swap for injured/low-condition players (SquadTabV2)
2. Role-based substitutes / Starter-Sub system (SquadTabV2 + Backend)
role_sub_idsfield on Team (5 slots, one per role: TOP/JG/MID/ADC/SUP)set_role_subsfor assigning substitutes per role3. Academy transfer list (YouthTabV2)
toggle_transfer_listcommand