-
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
Complete Task Front End #18806
Complete Task Front End #18806
Conversation
Could you please merge main. latest changes for update task are not present yet . I noticed this , there is two button , Screen.Recording.2023-05-14.at.11.27.26.PM.mov |
task: { | ||
completed: 'Completada', | ||
messages: { | ||
completed: 'tarea completada', |
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.
Should Tarea
be capitalized? in the english translations we have Completed
as capitalized
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.
Good catch, @arosiclair since this is small, could you also add this onto your PR for cancel task?
✋ 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/arosiclair in version: 1.3.15-0 🚀
|
@thienlnam Hi! We found these 2 issues when executing this PR |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.15-12 🚀
|
When we added
We have the checklist item, but I think we still missed adding for these two labels. |
✋ Coming from #19631 The assignee name/email is empty for the non-assignee or non-owner user on the task header. |
This small issue was not handled in this PR while adding Task Header. Issue: Only description's text has reduced opacity when it's disabled |
This issue was not handled in this PR while adding Issue: Reopened task message does not translate to Spanish in LHN |
<Avatar | ||
source={assigneeAvatar} | ||
type={CONST.ICON_TYPE_AVATAR} | ||
name={assigneeName} | ||
size={CONST.AVATAR_SIZE.HEADER} | ||
/> |
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.
This caused a regression. Previously we used TaskSelectorLink
-> MultipleAvatars
. And MultipleAvatars
wraps the Avatar
with a Tooltip
App/src/components/MultipleAvatars.js
Line 69 in 5743b15
<Tooltip text={props.avatarTooltips[0]}> |
onyxMethod: Onyx.METHOD.MERGE, | ||
key: `${ONYXKEYS.COLLECTION.REPORT}${parentReportID}`, | ||
value: { | ||
lastVisibleActionCreated: completedTaskReportAction.created, | ||
lastMessageText: message, | ||
lastActorEmail: completedTaskReportAction.actorEmail, | ||
}, |
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.
This is missing the childVisibleActionCount
to update the number of replies in the thread.
@@ -68,7 +70,10 @@ const TaskPreview = (props) => { | |||
containerStyle={[styles.taskCheckbox]} | |||
isChecked={isTaskCompleted} | |||
onPress={() => { |
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.
Coming from Unauthorized Task Reopening by Anonymous User in Incognito Mode- Inconsistency
We should have checked if an anonymous user is trying to mark a task as completed.
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.
The implementation of the anonymous user was done after this PR :
Details
Fixed Issues
$ #16858
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
Create a task
Select 'Mark as done'
Notice you see the task change to 'Completed'
Go back to the parent chat where the task was created
Notice there is a completed checkbox
Create a task
Go back to the parent chat where the task was created
Hit the checkbox to 'complete' the task
Notice that it says marked
Open the task
Verify you see the task is marked as 'Completed'
Offline tests
Same as online
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-05-15.at.9.09.50.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-05-15.at.9.10.31.AM.mov
Mobile Web - Safari
Desktop
Screen.Recording.2023-05-15.at.9.12.39.AM.mov
iOS
Android