-
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 Task shared in admin-only room can be marked done in chat, but not in the task report #28268
Conversation
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.
Mostly looks good, couples of comments left.
@@ -51,6 +52,8 @@ const propTypes = { | |||
}), | |||
|
|||
...withLocalizePropTypes, | |||
|
|||
...withCurrentUserPersonalDetailsPropTypes, |
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 also need to use withCurrentUserPersonalDetailsDefaultProps
.
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.
Updated in commit d2b8d08
@@ -102,7 +101,7 @@ function TaskView(props) { | |||
containerBorderRadius={8} | |||
caretSize={16} | |||
accessibilityLabel={taskTitle || props.translate('task.task')} | |||
disabled={isCanceled || !canModifyTask} | |||
disabled={disableState} |
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 think it's more readable directly using Task.canModifyTask(props.report, props.currentUserPersonalDetails.accountID)
. Similar to what we did for other components.
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.
Updated in commit 15a30eb. I think we should use the existing flag canModifyTask
instead of recalling the function again.
Reviewer Checklist
Screenshots/VideosWeb28268.Web.-.A.mov28268.Web.-.B.movMobile Web - Chrome28268.mWeb.Chrome.-.A.mp428268.mWeb.Chrome.-.B.mp4Mobile Web - Safari28268.mWeb.Safari.-.A.mp428268.mWeb.Safari.-.B.mp4Desktop28268.Desktop.-.A.mov28268.Desktop.-.B.moviOS28268.iOS.-.A.mp428268.iOS.-.B.mp4Android28268.Android.-.A.mp428268.Android.-.B.mp4 |
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.
LGTM 👍
@hoangzinh There's a Jest unit test failed. I think you can just pull the main and retest it again. |
Thanks @mollfpr. I updated with latest main and all checks have passed 🚀 |
✋ 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/nkuoch in version: 1.3.76-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.76-6 🚀
|
🚀 Deployed to staging by https://github.com/nkuoch in version: 1.3.77-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.77-7 🚀
|
Details
Fixed Issues
$ #27402
PROPOSAL: #27402 (comment)
Tests
Precondition: As user A, create a room with admin-only posting permission with User B and C. In that room, create a Task that assigned to user B
Offline tests
PR changes are not affected by network status
QA Steps
Same as Tests
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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-09-26.at.22.52.20.-.web.mp4
Mobile Web - Chrome
Screen.Recording.2023-09-26.at.23.13.57.-.android.chrome.mp4
Mobile Web - Safari
Screen.Recording.2023-09-26.at.23.02.32.-.ios.safari.mp4
Desktop
Screen.Recording.2023-09-26.at.22.56.41.-.desktop.mp4
iOS
Screen.Recording.2023-09-26.at.23.01.31.-.ios.2.mp4
Screen.Recording.2023-09-26.at.23.00.03.-.ios.1.mp4
Android
Screen.Recording.2023-09-26.at.23.17.30.-.android.mp4