-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix bug with Room - Workspaces listed in room are not listed in alphabetical order #36178
Fix bug with Room - Workspaces listed in room are not listed in alphabetical order #36178
Conversation
I liked this one, what do you think @francoisl? should the selected workspace be pushed to the top? |
@fedirjh |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariCleanShot.2024-02-10.at.13.06.19.mp4MacOS: DesktopCleanShot.2024-02-10.at.13.18.58.mp4 |
@ZhenjaHorbach I get this crash on web ![]() |
Oh, Looks like a very specific case |
@fedirjh |
_.filter( | ||
_.filter(PolicyUtils.getActivePolicies(props.policies), (policy) => policy.type !== CONST.POLICY.TYPE.PERSONAL), | ||
(policy) => policy.name && policy.id, | ||
), |
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.
Let's move the filtering logic to PolicyUtils.getActivePolicies
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.
Done )
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.
Looks good to me.
✋ 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 production by https://github.com/thienlnam in version: 1.4.41-12 🚀
|
@@ -15,7 +15,9 @@ type UnitRate = {rate: number}; | |||
* These are policies that we can use to create reports with in NewDot. | |||
*/ | |||
function getActivePolicies(policies: OnyxCollection<Policy>): Policy[] | undefined { | |||
return Object.values(policies ?? {}).filter<Policy>((policy): policy is Policy => policy !== null && policy && policy.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE); | |||
return Object.values(policies ?? {}).filter<Policy>( | |||
(policy): policy is Policy => policy !== null && policy && policy.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && !!policy.name && !!policy.id, |
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.
We forgot to check for a user role, which caused the issue #53315
Details
Fixed Issues
$ #35551
PROPOSAL: #35551 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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-02-09.at.09.27.39.mov
Android: mWeb Chrome
android.mov
iOS: Native
Screen.Recording.2024-02-09.at.08.54.43.mov
iOS: mWeb Safari
Screen.Recording.2024-02-09.at.09.22.50.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov