Skip to content

Mvvm split user info, create powerlevels component #30005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

MarcWadai
Copy link
Collaborator

Part of task #29633 to mvvm right panel

Part 2 of splitting userInfo into three components :

UserInfoAdminToolsContainer
UserInfoPowerLevel (this PR)
UserInfoView

Changes

  • Remove PowerLevelsSection from right_panel userinfo
  • Create new component UserInfoAdminPowerLevels and corresponding VM
  • Updated userInfo-test.tsx to remove reference to powerselector components
  • Create UserInfoAdminPowerLevelsViewModel-test et UserInfoAdminPowerLevels-test

Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! Few lint errors etc though.

const applyPowerChange = (roomId: string, target: string, powerLevel: number): Promise<unknown> => {
return cli.setPowerLevel(roomId, target, powerLevel).then(
function () {
// NO-OP; rely on the m.room.member event coming down else we could
Copy link
Member

Choose a reason for hiding this comment

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

This comment seems very confusing but it was there before so I guess now is not the time to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants