Skip to content

Conversation

@wescopeland
Copy link
Member

This PR adds a "Subset Configuration" button and dialog to React game pages. The dialog allows users to manipulate their local opt in / opt out preferences for subsets.

The button conditionally renders when:

  • The user is authenticated.
  • The game isn't a standalone.
  • The game has multiset enabled (at least 1 set that isn't a will_be_* type).

If the user is globally opted in, toggles default to being enabled.
If the user is globally opted out, toggles default to being disabled.
User preferences are always respected regardless of global setting.

Brave.Browser.mp4

@wescopeland wescopeland requested a review from a team November 22, 2025 01:26
return <SetSelectionTabs activeTab={activeTab} />;
return (
<div className="flex w-full justify-between gap-2">
<SetSelectionTabs activeTab={activeTab} />
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be broken. If I refresh a page, I can switch to/from the subset, but then I can't switch back until I refresh again.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in latest.

Copy link
Member

Choose a reason for hiding this comment

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

I still see this behavior.

2025-12-05.09-29-40.mp4

Copy link
Member Author

Choose a reason for hiding this comment

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

Apologies, I misinterpreted this feedback.

This actually looks to be a bug in Inertia - some kind of race condition with our deferred prop. I've un-deferred the user prefs prop (it's a tiny piece of data anyway) and that seems to have fixed the issue.

components={{
1: <a href={settingsUrl} target="_blank" />,
}}
/>
Copy link
Member

Choose a reason for hiding this comment

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

When globally opted out of all subsets (and no saved preferences), the core set appears unselected by default, but is correctly returned by the API (both by itself and with the subset if that is explicitly added).

Image

Copy link
Member Author

Choose a reason for hiding this comment

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

Adjusted this behavior in latest.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants