-
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: allow selection list to be greyed for tags #38332
Conversation
@ishpaul777 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeRecord_2024-03-15-04-48-42.mp4Android: mWeb ChromeRecord_2024-03-15-04-55-22.mp4iOS: NativeScreen.Recording.2024-03-15.at.3.51.36.AM.moviOS: mWeb SafariScreen.Recording.2024-03-15.at.4.13.51.AM.movMacOS: Chrome / SafariScreen.Recording.2024-03-15.at.4.11.46.AM.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.
Looks good
src/libs/actions/Policy.ts
Outdated
[tagName]: { | ||
errors: null, | ||
}, |
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.
shouldn't we remove the tag also?
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 can if we want to. @mountiny @luacmartins Please enlighten us!
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.
Nice catch. Yes, I think in the ADD case, we should also remove the tag. For UPDATE or DELETE we just clear the error.
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.
Commented above
@allroundexperts any update on when can you finish? |
c047c0b
@ishpaul777 done! |
src/libs/actions/Policy.ts
Outdated
tag.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD | ||
? null | ||
: { | ||
errors: null, | ||
}, | ||
}, |
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.
I dont think this is gonna work, we update pendingAction to null when request fail, check the failureData in function just above it.
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.
Screen.Recording.2024-03-15.at.5.29.30.AM.mov
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 follow the same pattern as we have in this PR
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.
Fixed.
src/libs/actions/Policy.ts
Outdated
tag.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD | ||
? null | ||
: { | ||
errors: null, | ||
}, | ||
}, |
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 follow the same pattern as we have in this PR
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.
Confirmed the fix works well!
Screen.Recording.2024-03-15.at.5.52.02.AM.mov
✋ 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.53-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.53-2 🚀
|
Details
This PR adds offline behaviour to the tag display list.
Fixed Issues
$ #38289
PROPOSAL: N/A
Tests
POLICY_ID_HERE
with your workspace id:x
button next to the error.x
.Offline tests
N/A
QA Steps
POLICY_ID_HERE
with your workspace id:x
button next to the error.x
.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-03-14.at.10.39.14.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-03-14.at.10.41.07.PM.mov
iOS: Native
Screen.Recording.2024-03-14.at.10.33.06.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-03-14.at.10.31.03.PM.mov
Screen.Recording.2024-03-14.at.10.30.33.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-14.at.10.00.57.PM.mov
Screen.Recording.2024-03-14.at.10.20.48.PM.mov
MacOS: Desktop
Screen.Recording.2024-03-14.at.10.27.10.PM.mov
Screen.Recording.2024-03-14.at.10.28.00.PM.mov