Skip to content

Long press to update assignee makes the 'mark as done' button change color. #22483

Closed

Description

@kavimuru

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Create a workspace
  2. Open announce room
  3. Create a task and assign my self
  4. 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

Screen.Recording.2023-07-08.at.11.20.53.mov
Recording.1220.mp4

Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688790088728529

View all open jobs on GitHub

Activity

  1. added
    Daily
    Bug
    on Jul 8, 2023
  2. melvin-bot commented on Jul 8, 2023

    @melvin-bot

    Triggered auto assignment to @dylanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on Jul 8, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. tienifr commented on Jul 8, 2023

    @tienifr
    Contributor

    The task report UI redesign is ongoing: #20841 but has not deployed to staging yet. I can't reproduce this on the latest main.

  5. ygshbht commented on Jul 8, 2023

    @ygshbht
    Contributor

    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
    image

    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)} /> )} ```
  6. jasperhuangg commented on Jul 10, 2023

    @jasperhuangg
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDaily

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions