Skip to content
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

[$250] Workspace - Toggle btn changed to green but the dot oriented incorrectly in WS settings #47637

Closed
1 of 6 tasks
lanitochka17 opened this issue Aug 19, 2024 · 23 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 19, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.21-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4864753&group_by=cases:section_id&group_id=316342&group_order=asc
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

Precondition: create Control workspace in OD

  1. Sign in with the same account in ND
  2. Navigate to Settings > Control Workspace > More features
  3. Enable "Report Fields" option
  4. Navigate to Report Fields settings page
  5. Add field with any name and Text type
  6. Set any Initial value for the text field and tap on "Save" button
  7. Navigate to "More Features" page
  8. Disable "Report Fields" toggle button
  9. In OD update with any new text the initial value for created Text field
  10. Observe the "Report Fields" toggle button status

Expected Result:

"Report Fields" button should be be displayed green color and toggle on state should be enabled

Actual Result:

"Report Fields" buttons changed color to green, but toggle button state remains disabled (the the dot inside the button is oriented incorrectly)

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6574258_1723848354716.RPReplay_Final1723847910.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014197c427158deea5
  • Upwork Job ID: 1825967658437935245
  • Last Price Increase: 2024-09-03
  • Automatic offers:
    • alitoshmatov | Reviewer | 103803779
    • FitseTLT | Contributor | 103803780
Issue OwnerCurrent Issue Owner: @alitoshmatov
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 19, 2024
Copy link

melvin-bot bot commented Aug 19, 2024

Triggered auto assignment to @puneetlath (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-control

@lanitochka17
Copy link
Author

@puneetlath FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Aug 20, 2024
Copy link

melvin-bot bot commented Aug 20, 2024

Job added to Upwork: https://www.upwork.com/jobs/~014197c427158deea5

@melvin-bot melvin-bot bot changed the title Workspace - Toggle btn changed to green but the dot oriented incorrectly in WS settings [$250] Workspace - Toggle btn changed to green but the dot oriented incorrectly in WS settings Aug 20, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 20, 2024
Copy link

melvin-bot bot commented Aug 20, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External)

@FitseTLT
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Tags settings –Tags not appears in the LHP of the workspace settings if added in OldDot
and Warning: Maximum update depth exceeded loop bug occurs

What is the root cause of that problem?

The root cause is when the report field enabling comes from OD enabledItem is set to the reportField item so highlighted will be true for the reportField item

highlighted={enabledItem?.routeName === item.routeName}
focused={!!(item.routeName && activeRoute?.startsWith(item.routeName))}

But the problem is shouldHighlight will be fixed to be true in useAnimatedHighlightStyle which will set startHighlight
setStartHighlight(true);
}, [shouldHighlight, startHighlight]);

and that will in turn run this effect
setStartHighlight(false);
InteractionManager.runAfterInteractions(() => {

which will set it to false so we will get into a loop and Warning: Maximum update depth exceeded occurs.

What changes do you think we should make in order to solve the problem?

The starting of the highlight should only be triggered on shouldHighlight change not be triggered continously if it is true which will cause a loop as in this current issue.
So we need to change

}, [shouldHighlight, startHighlight]);

    }, [shouldHighlight]);

What alternative solutions did you explore? (Optional)

Copy link

melvin-bot bot commented Aug 26, 2024

@puneetlath, @alitoshmatov Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Aug 26, 2024
@alitoshmatov
Copy link
Contributor

@FitseTLT Thank you for your proposal. You solution is fixing Maximum update depth exceeded error but toggle is not getting enabled.

There is just a lot of issue going on here. For example when there is a change in old dot, Report fields toggle is getting enabled but it is not getting added to workspace menu. Moreover the same happening after some changes in old dot, the Report fields is not appearing in the menu after enabling it using toggle

@melvin-bot melvin-bot bot removed the Overdue label Aug 26, 2024
@FitseTLT
Copy link
Contributor

@FitseTLT Thank you for your proposal. You solution is fixing Maximum update depth exceeded error but toggle is not getting enabled.

There is just a lot of issue going on here. For example when there is a change in old dot, Report fields toggle is getting enabled but it is not getting added to workspace menu. Moreover the same happening after some changes in old dot, the Report fields is not appearing in the menu after enabling it using toggle

I don't understand @alitoshmatov Everything is working fine for me:

2024-08-26.21-44-39.mp4

Copy link

melvin-bot bot commented Aug 27, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Aug 30, 2024

@puneetlath, @alitoshmatov Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Aug 30, 2024
@puneetlath
Copy link
Contributor

@alitoshmatov any thoughts?

Copy link

melvin-bot bot commented Sep 2, 2024

@puneetlath @alitoshmatov this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

Copy link

melvin-bot bot commented Sep 3, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@alitoshmatov
Copy link
Contributor

Sorry for late response, @FitseTLT I remember having some issues back then but now everything is working correctly after applying your solution maybe messed up something last time.

@melvin-bot melvin-bot bot removed the Overdue label Sep 3, 2024
@alitoshmatov
Copy link
Contributor

We can go with @FitseTLT 's proposal

C+ reviewed 🎀 👀 🎀

Copy link

melvin-bot bot commented Sep 3, 2024

Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Sep 3, 2024

📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

Copy link

melvin-bot bot commented Sep 30, 2024

This issue has not been updated in over 15 days. @puneetlath, @FitseTLT, @alitoshmatov eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@FitseTLT
Copy link
Contributor

FitseTLT commented Oct 3, 2024

@puneetlath payment overdue here

@alitoshmatov
Copy link
Contributor

This issue eroded to monthly issue. The pr went into production on 20th of september.

@puneetlath
Copy link
Contributor

All paid. Sorry for the delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review
Projects
Archived in project
Development

No branches or pull requests

4 participants