-
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
fix: Make all task titles/descriptions read-only to all but the author/assignee. #53749
base: main
Are you sure you want to change the base?
fix: Make all task titles/descriptions read-only to all but the author/assignee. #53749
Conversation
…r/assignee. Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
@Expensify/design @thienlnam, before recording the videos, I want to confirm if the disabled cursor looks correct or not. I feel it might confuse users, making them think they can't click the link (which we want them to click). Context: When users accidentally edit the description of a task assigned to them, it unexpected and feels broken, undermining the perception of product quality and conversion. So we decided to disable editing the task fields if the task created by Concierge, users will be only able to complete/incomplete the tasks. Monosnap.screencast.2024-12-09.16-18-14.mp4 |
@shawnborton @dubielzyk-expensify @dannymcclain, could you please check the comment above🙏🏻? I think |
We don't need to use the Check out this screenshot from an expense. I can no longer change the merchant or date, but I can still change the description, category, and tag. My cursor is totally normal when I hover over the merchant and date rows, they just don't do anything. |
Just realized a video would probably be more clear: CleanShot.2024-12-10.at.08.25.27.mp4 |
Totally agree with that. Your video is exactly what we want to happen with tasks. |
Agree with the designers 👍 |
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
@Expensify/design, does this look correct now? Monosnap.screencast.2024-12-11.09-49-29.mp4 |
Looks right to me 👍 |
Yeah that looks right to me too 👍 |
Yup, looks good to me three! |
Thanks for the confirmation, I will add the recordings today. |
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
@Expensify/design, I just realized we should be using a cursor-disabled style for the checkbox in all cases. After confirmation on this comment, I changed that to a default cursor, but I believe we should maintain consistency across the app by using a cursor-disabled state. I've updated it, but I wanted to confirm. desktop_app.mp4 |
@suneox you can review the code changes, recordings have been updated. |
Hmm, why would we block the checkbox from working? I thought the goal was to make the title and description non-editable, but why would we make it so that you can't interact with the checkbox to complete the task? |
Agree with Shawn. I'm having a hard time following that video, but I don't think the checkbox should ever be disabled? |
Yeah agree with this being unexpected. |
@suneox, I think I'm a bit lost on this one. Could you please verify if my understanding of the new behavior is correct?
|
@Krishna2323 Correct, based on this confirmation
For other tasks, we should maintain the current logic for |
Signed-off-by: krishna2323 <[email protected]>
@suneox, thanks for the confirmation :), could you please test this out? |
taskOwnerAccountID?: number, | ||
taskAssigneeAccountID?: number, |
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.
taskOwnerAccountID?: number, | |
taskAssigneeAccountID?: number, |
Do we have a use case that requires using this parameter? If the change comes from a previous update, I think we can consider remove this prop. (the same with the canActionTask function)
@@ -365,8 +365,8 @@ function getOutstandingChildTask(taskReport: OnyxEntry<OnyxTypes.Report>) { | |||
/** | |||
* Complete a task | |||
*/ | |||
function completeTask(taskReport: OnyxEntry<OnyxTypes.Report>) { | |||
const taskReportID = taskReport?.reportID ?? '-1'; | |||
function completeTask(taskReport: OnyxEntry<OnyxTypes.Report>, reportIDFromAction?: string) { |
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.
function completeTask(taskReport: OnyxEntry<OnyxTypes.Report>, reportIDFromAction?: string) { | |
function completeTask(taskReport: OnyxEntry<OnyxTypes.Report>) { |
Do we have a use case that requires using this parameter? If the change comes from a previous update, I think we can consider remove this prop (the same with the reopenTask function)
{isTaskReport && !shouldUseNarrowLayout && ReportUtils.isOpenTaskReport(report, parentReportAction) && Task.canActionTask(report, accountID) && ( | ||
<TaskHeaderActionButton report={report} /> | ||
)} |
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.
{isTaskReport && !shouldUseNarrowLayout && ReportUtils.isOpenTaskReport(report, parentReportAction) && Task.canActionTask(report, accountID) && ( | |
<TaskHeaderActionButton report={report} /> | |
)} | |
{isTaskReport && !shouldUseNarrowLayout && ReportUtils.isOpenTaskReport(report, parentReportAction) && <TaskHeaderActionButton report={report} />} |
We should revert the condition checking canActionTask
to display the TaskHeaderActionButton
, as this component already includes logic to handle disabling based on canActionTask. If there is no use case to hide ActionButton please revert the same change on ReportScreen
Explanation of Change
Fixed Issues
$ #52979
PROPOSAL: #52979 (comment)
Tests
Concierge
chat.Offline tests
Concierge
chat.QA Steps
Concierge
chat.PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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 and/or tagged@Expensify/design
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
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4