Skip to content

Profiles: Add status and call fields to room heroes.#6733

Draft
pixlwave wants to merge 2 commits into
doug/user-statusfrom
doug/hero-user-status
Draft

Profiles: Add status and call fields to room heroes.#6733
pixlwave wants to merge 2 commits into
doug/user-statusfrom
doug/hero-user-status

Conversation

@pixlwave

@pixlwave pixlwave commented Jul 8, 2026

Copy link
Copy Markdown
Member

Builds on top of #6704 and makes the same changes for Room Heroes. I've done this one separately as this PR makes Room::heroes() async and changes the return type so I'm less confident of the changes and don't want to block the previous one from being merged on a discussion about heroes.

  • I've documented the public API changes in the appropriate changelog files (see Writing changelog entries).
  • This PR was made with the help of AI.

@pixlwave pixlwave changed the title Doug/hero user status Profiles: Add status and call fields to room heroes. Jul 8, 2026
@pixlwave pixlwave force-pushed the doug/hero-user-status branch from a614a6a to 3eba4d0 Compare July 8, 2026 09:43

/// A [`RoomHero`] augmented with the user's global profile fields.
#[derive(Clone, Debug, PartialEq)]
pub struct RoomHeroWithProfile {

@pixlwave pixlwave Jul 8, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Claude kept trying to convince me to use RoomHero with a #[serde(skip)] on the profile fields but that felt all kinds of wrong to me so I settled on this route with distinct types for storage vs dto.

Happy to change if this isn't desirable though.

@pixlwave pixlwave force-pushed the doug/hero-user-status branch from 3eba4d0 to 1b13b45 Compare July 8, 2026 09:51
@codspeed-hq

codspeed-hq Bot commented Jul 8, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 50 untouched benchmarks


Comparing doug/hero-user-status (1b13b45) with doug/user-status (ff3c136)

Open in CodSpeed

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.

1 participant