Skip to content

refactor: filter buttons to widget3#7585

Merged
Rathoz merged 4 commits into
mainfrom
filterbuttons-widget3
Jul 1, 2026
Merged

refactor: filter buttons to widget3#7585
Rathoz merged 4 commits into
mainfrom
filterbuttons-widget3

Conversation

@ElectricalBoy

@ElectricalBoy ElectricalBoy commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

How did you test this change?

trivial

@ElectricalBoy ElectricalBoy force-pushed the filterbuttons-widget3 branch from 1cf0b90 to f789644 Compare June 25, 2026 05:39
@ElectricalBoy ElectricalBoy marked this pull request as ready for review June 25, 2026 05:45
@ElectricalBoy ElectricalBoy requested review from a team as code owners June 25, 2026 05:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 the FilterButtons widgets from the legacy Widget2 class style to Widget3 functional components, while also switching HTML imports from the deprecated Module:Widget/Html/All to Module:Widget/Html.

Changes:

  • Converted FilterButtons, FilterButtons/Button, and FilterButtons/ButtonRow from Class.new(Widget) widgets to Component.component(...) functional components.
  • Replaced Module:Widget/Html/All usage with Module:Widget/Html tag components.
  • Adjusted FilterButton.display to accept Renderable|Renderable[] and pass it through as children without forcing an extra wrapping layer.

Reviewed changes

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

File Description
lua/wikis/commons/Widget/FilterButtons/ButtonRow.lua Refactors ButtonRow to a Widget3 component and updates HTML tag usage.
lua/wikis/commons/Widget/FilterButtons/Button.lua Refactors Button to a Widget3 component and broadens display to support multiple renderables.
lua/wikis/commons/Widget/FilterButtons.lua Refactors the top-level FilterButtons widget into a Widget3 component entrypoint while keeping helper functions internal.

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

@Rathoz Rathoz merged commit ee4dce2 into main Jul 1, 2026
8 of 9 checks passed
@Rathoz Rathoz deleted the filterbuttons-widget3 branch July 1, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants