-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
bugfix #37757: admin badge on members list not greyed out when added offline #37892
bugfix #37757: admin badge on members list not greyed out when added offline #37892
Conversation
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@burczu lint is failing |
@@ -749,9 +749,9 @@ function updateWorkspaceMembersRole(policyID: string, accountIDs: number[], newR | |||
onyxMethod: Onyx.METHOD.MERGE, | |||
key: `${ONYXKEYS.COLLECTION.POLICY_MEMBERS}${policyID}`, | |||
value: { | |||
...memberRoles.reduce((member: Record<number, {role: string}>, current) => { | |||
...memberRoles.reduce((member: Record<number, {role: string; pendingAction: string | null}>, current) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...memberRoles.reduce((member: Record<number, {role: string; pendingAction: string | null}>, current) => { | |
...memberRoles.reduce((member: Record<number, {role: string; pendingAction: PendingAction}>, current) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for pointing this out - I'll fix it in one of the upcoming PR's
@@ -764,6 +764,11 @@ function updateWorkspaceMembersRole(policyID: string, accountIDs: number[], newR | |||
onyxMethod: Onyx.METHOD.MERGE, | |||
key: `${ONYXKEYS.COLLECTION.POLICY_MEMBERS}${policyID}`, | |||
value: { | |||
...memberRoles.reduce((member: Record<number, {role: string; pendingAction: string | null}>, current) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...memberRoles.reduce((member: Record<number, {role: string; pendingAction: string | null}>, current) => { | |
...memberRoles.reduce((member: Record<number, {role: string; pendingAction: PendingAction}>, current) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nvm. This was already fixed by Carlos as follow-up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this is fixed!
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left TS improvement feedback. Otherwise looks good.
@luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
Tests were passing! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.49-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.50-5 🚀
|
Details
This PR fixes the bug where admin badge added while being offline was not greyed out.
Fixed Issues
$ #37757
PROPOSAL: n/a
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-03-07.at.14.19.50.mov
Android: mWeb Chrome
Screen.Recording.2024-03-07.at.14.15.05.mov
iOS: Native
Screen.Recording.2024-03-07.at.14.09.33.mov
iOS: mWeb Safari
Screen.Recording.2024-03-07.at.14.12.15.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-07.at.13.43.32.mov
MacOS: Desktop
Screen.Recording.2024-03-07.at.14.02.36.mov