Skip to content

Refactor report popovers to use dialogs#37647

Open
LiquidPL wants to merge 5 commits intoppy:masterfrom
LiquidPL:report-dialogs
Open

Refactor report popovers to use dialogs#37647
LiquidPL wants to merge 5 commits intoppy:masterfrom
LiquidPL:report-dialogs

Conversation

@LiquidPL
Copy link
Copy Markdown
Contributor

@LiquidPL LiquidPL commented May 6, 2026

Depends on #37638.

Following up from #37638, this commit refactors ReportPopover and
friends to instead use PopupDialog and DialogOverlay. This results
in the report forms being always placed in the center of the screen,
instead of being anchored at whatever drawable happened to spawn it.

The bulk of the diff here is renaming ReportPopover to ReportDialog
alongside the necessary refactors, which made git treat them as separate
files instead of a rename. I could have tried to isolate the rename to its own
commit, but this is already convoluted enough. The rest of the diff is fairly
small and revolves mostly around updating the derived report dialog classes
and tests.

This will be used in a future PR to implement reporting in ranked play,
which wouldn't look good with the current popover approach.

Some demos:

  • comments
Screencast_20260506_003355.webm
  • chat
Screencast_20260506_003449.webm
  • user profiles
Screencast_20260506_004047.webm

LiquidPL added 4 commits May 5, 2026 13:31
Following up from ppy#37638, this commit refactors `ReportPopover` and
friends to instead use `PopupDialog` and `DialogOverlay`. This results
in the report forms being always placed in the center of the screen,
instead of being anchored at whatever drawable happened to spawn it.
LiquidPL added a commit to LiquidPL/osu that referenced this pull request May 6, 2026
Depends on both ppy#37638 and ppy#37647.

This commit adds a 'Report opponent' option in the hamburger menu on the
ranked play screen. It's effectively a shorthand for manually opening
the profile and using the report option that's available over there.
@peppy
Copy link
Copy Markdown
Member

peppy commented May 7, 2026

Hmm, I kind of liked them being popovers but sure.

The does expose the shortcoming of popup dialogs not dimming other overlays behind them, though. Probably just need to ignore perf concerns and add a dim layer in the popover manager class.

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.

2 participants