You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Long press to update assignee makes the 'mark as done' button change color. #22483
Long press into avatar assignee of task detail, observed button 'Mark as one' is discolored
Expected Result:
When long press on user B's avatar to update assignee, the "Mark as done" button does not change color
Actual Result:
Long press into avatar of user B of task detail, observed button 'Mark as one' is discolored
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.38-3 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
Please re-state the problem that we are trying to solve in this issue.
The issue pertains to an unexpected UI behavior where the 'Mark as done' button changes color when a long press action is performed on the avatar of an assignee in a task detail view.
What is the root cause of that problem?
This behavior arises due to the way UI elements are nested within the application's codebase. Specifically, the 'Mark as done' button is nested within the 'PressableWithFeedback' component in 'TaskHeader.js'. When a long press action is performed, it's unintentionally impacting the nested 'Mark as done' button causing it to change color.
What changes do you think we should make in order to solve the problem?
The problem originates from the 'Mark as done' button being nested within 'PressableWithFeedback'. A potential resolution is to adjust the layout to place this button outside 'PressableWithFeedback'. The presented code illustrates this concept, although it may require some additional adjustments for full integration.
Don't think we need to fix this, closing. We might even potentially remove the header being used to select the assignee, which means we won't need to fix this anymore.
Activity
melvin-bot commentedon Jul 8, 2023
Triggered auto assignment to @dylanexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 8, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)tienifr commentedon Jul 8, 2023
The task report UI redesign is ongoing: #20841 but has not deployed to
stagingyet. I can't reproduce this on the latestmain.ygshbht commentedon Jul 8, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The issue pertains to an unexpected UI behavior where the 'Mark as done' button changes color when a long press action is performed on the avatar of an assignee in a task detail view.
What is the root cause of that problem?
This behavior arises due to the way UI elements are nested within the application's codebase. Specifically, the 'Mark as done' button is nested within the 'PressableWithFeedback' component in 'TaskHeader.js'. When a long press action is performed, it's unintentionally impacting the nested 'Mark as done' button causing it to change color.
What changes do you think we should make in order to solve the problem?
The problem originates from the 'Mark as done' button being nested within 'PressableWithFeedback'. A potential resolution is to adjust the layout to place this button outside 'PressableWithFeedback'. The presented code illustrates this concept, although it may require some additional adjustments for full integration.
https://github.com/Expensify/App/assets/65986357/6998b500-124e-4de2-9168-8bab9dac3828

Code
```html Navigation.navigate(ROUTES.getTaskReportAssigneeRoute(props.report.reportID))} disabled={!isOpen} accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON} accessibilityLabel={props.translate('newTaskPage.assignee')} hoverDimmingValue={1} pressDimmingValue={0.2} > {assigneeAccountID && assigneeAccountID > 0 && ( <> {assigneeName} )} {isCompleted ? ( <> {props.translate('task.completed')} ) : ( TaskUtils.completeTask(props.report.reportID, title)} /> )} ```jasperhuangg commentedon Jul 10, 2023
Don't think we need to fix this, closing. We might even potentially remove the header being used to select the assignee, which means we won't need to fix this anymore.