Skip to content

feat: overhaul broadcast talent table#7129

Open
ElectricalBoy wants to merge 47 commits intomainfrom
broadcast-talent-table-cleanup
Open

feat: overhaul broadcast talent table#7129
ElectricalBoy wants to merge 47 commits intomainfrom
broadcast-talent-table-cleanup

Conversation

@ElectricalBoy
Copy link
Collaborator

@ElectricalBoy ElectricalBoy commented Feb 21, 2026

Summary

This PR:

  • Cleans up condition building in broadcast talent table
  • Replaces custom tournament query with StandardTournament
  • Replaces entire display with new table widgets

How did you test this change?

https://liquipedia.net/leagueoflegends/User:ElectricalBoy/Sandbox6

@ElectricalBoy ElectricalBoy force-pushed the broadcast-talent-table-cleanup branch from 4c77c04 to fa8788e Compare February 24, 2026 01:11
@ElectricalBoy ElectricalBoy added the stylesheets Changes to stylesheets label Feb 24, 2026
@ElectricalBoy ElectricalBoy marked this pull request as ready for review February 24, 2026 01:23
@ElectricalBoy ElectricalBoy requested review from a team as code owners February 24, 2026 01:23
@ElectricalBoy ElectricalBoy force-pushed the broadcast-talent-table-cleanup branch from 68d4083 to 3c93c21 Compare February 25, 2026 11:52
Comment on lines 244 to 246
{align = 'center'},
{align = 'center'},
{align = 'center'},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tournament -> left align, Position -> left align, what's the third?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

first is league icon, second is tournament name, third is position


self.aliases = args.aliases and Array.map(mw.text.split(args.aliases:gsub(' ', '_'), ','), String.trim) or {}
table.insert(self.aliases, self.broadcaster)
self.aliases = Array.map(Array.parseCommaSeparatedString(args.aliases), Page.pageifyLink)
Copy link
Collaborator

Choose a reason for hiding this comment

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

are we sure we want to resolve redirect the aliases?
(we did not before)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

local link = mw.ext.TeamLiquidIntegration.resolve_redirect(args[prefix .. 'link'] or caster):gsub(' ','_')

should be safe as we resolve redirect before storing broadcasters already

self.aliases = args.aliases and Array.map(mw.text.split(args.aliases:gsub(' ', '_'), ','), String.trim) or {}
table.insert(self.aliases, self.broadcaster)
self.aliases = Array.map(Array.parseCommaSeparatedString(args.aliases), Page.pageifyLink)
Array.appendWith(self.aliases, self.broadcaster)
Copy link
Collaborator

Choose a reason for hiding this comment

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

would it make sense to slap Array.unique after this?

Copy link
Collaborator Author

@ElectricalBoy ElectricalBoy Feb 28, 2026

Choose a reason for hiding this comment

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

yes for completeness
though practically I don't think we need to - the only place that self.aliases is used is in LPDB condition building

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants