Skip to content

feat(TeamCard): wildrift legacy wrapper custom mapping#7588

Merged
Rathoz merged 2 commits into
mainfrom
tc-lw-wr
Jun 1, 2026
Merged

feat(TeamCard): wildrift legacy wrapper custom mapping#7588
Rathoz merged 2 commits into
mainfrom
tc-lw-wr

Conversation

@Eetwalt
Copy link
Copy Markdown
Collaborator

@Eetwalt Eetwalt commented Jun 1, 2026

Summary

  • Add Module:TeamCard/Legacy/Custom for wildrift, mirroring the LoL custom mapping: defaults pNpos by slot index via Module:InGameRoles sortOrder so old TC pages without explicit lane positions still render icons under the Legacy wrapper.
  • Add sortOrder fields to Module:InGameRoles (baron=1, jungle=2, mid=3, dragon=4, support=5) so the slot-to-lane defaulting has data to read.

How did you test this change?

dev (live in prod)

Copilot AI review requested due to automatic review settings June 1, 2026 10:04
@Eetwalt Eetwalt requested review from a team as code owners June 1, 2026 10:04
@Eetwalt Eetwalt added g: wildrift League of Legends: Wild Rift c: team_card labels Jun 1, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Wild Rift-specific Legacy TeamCard wrapper that backfills missing lane/role positions based on slot order, ensuring older TeamCard pages render role icons correctly under the Legacy wrapper.

Changes:

  • Added lua/wikis/wildrift/TeamCard/Legacy/Custom.lua to preprocess legacy card args and default pNpos using Module:InGameRoles.sortOrder.
  • Extended lua/wikis/wildrift/InGameRoles.lua role entries with sortOrder to support deterministic slot-to-role defaulting.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
lua/wikis/wildrift/TeamCard/Legacy/Custom.lua Adds a Wild Rift legacy wrapper that defaults missing pNpos values by slot index using in-game role ordering.
lua/wikis/wildrift/InGameRoles.lua Adds sortOrder metadata to Wild Rift in-game roles to support ordering-dependent consumers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/wikis/wildrift/TeamCard/Legacy/Custom.lua Outdated
@Rathoz Rathoz merged commit 56410fc into main Jun 1, 2026
7 checks passed
@Rathoz Rathoz deleted the tc-lw-wr branch June 1, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: team_card g: wildrift League of Legends: Wild Rift

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants