Skip to content

refactor(match2): use grid layout for ban table#7586

Merged
Rathoz merged 10 commits into
mainfrom
mapveto-grid
Jun 1, 2026
Merged

refactor(match2): use grid layout for ban table#7586
Rathoz merged 10 commits into
mainfrom
mapveto-grid

Conversation

@ElectricalBoy
Copy link
Copy Markdown
Collaborator

Summary

This PR:

  • converts ban tables to widget3
  • replaces table based layout for ban tables with grid

How did you test this change?

dev + browser dev tools

@ElectricalBoy ElectricalBoy requested review from a team June 1, 2026 05:24
@ElectricalBoy ElectricalBoy added c: match2 stylesheets Changes to stylesheets labels Jun 1, 2026
@ElectricalBoy ElectricalBoy marked this pull request as ready for review June 1, 2026 05:24
Copy link
Copy Markdown
Collaborator

@hjpalpha hjpalpha left a comment

Choose a reason for hiding this comment

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

seems reasonable on phone

Comment thread stylesheets/commons/Brackets.scss Outdated
@ElectricalBoy ElectricalBoy requested a review from Rathoz June 1, 2026 07:56
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

This PR refactors match summary veto/ban displays by migrating them to Widget3 components and switching the layout from HTML tables to CSS grid-based containers, aligning with the newer GeneralCollapsible pattern.

Changes:

  • Converted Map Veto and Character Ban Table widgets to Widget3 functional components using Module:Widget/Component + Module:Widget/Html.
  • Replaced table-based markup with grid-based containers and added new .brkts-popup-veto* styling.
  • Tweaked GeneralCollapsible header title centering and updated type annotation for preProcessMapVeto.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
stylesheets/commons/Miscellaneous.scss Centers collapsible header title within the grid header.
stylesheets/commons/Brackets.scss Introduces .brkts-popup-veto grid layout and moves veto/ban icon styling to the new structure.
lua/wikis/commons/Widget/Match/Summary/MapVetoStart.lua Converts MapVetoStart to Widget3 and outputs grid-row markup.
lua/wikis/commons/Widget/Match/Summary/MapVetoRound.lua Converts MapVetoRound to Widget3 and outputs grid-row markup (but currently breaks map links due to field mismatch).
lua/wikis/commons/Widget/Match/Summary/MapVeto.lua Replaces table+collapsible usage with GeneralCollapsible + grid container.
lua/wikis/commons/Widget/Match/Summary/Characters.lua Converts Characters to Widget3 functional component with defaultProps.
lua/wikis/commons/Widget/Match/Summary/CharacterBanTable.lua Converts ban table to Widget3 and renders rows via grid layout + GeneralCollapsible.
lua/wikis/commons/Widget/Match/Summary/Character.lua Converts Character to Widget3 functional component with defaultProps.
lua/wikis/commons/MatchSummary/Base.lua Updates preProcessMapVeto return annotation to MapVetoProps?.

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

Comment thread lua/wikis/commons/Widget/Match/Summary/MapVetoRound.lua Outdated
@Rathoz Rathoz merged commit 6bb3cee into main Jun 1, 2026
7 checks passed
@Rathoz Rathoz deleted the mapveto-grid branch June 1, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: match2 stylesheets Changes to stylesheets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants