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

[HOLD for payment 2023-10-10] [$500] Dev: Web - Delete task message text color change in offline mode #27804

Closed
1 of 6 tasks
kbecciv opened this issue Sep 19, 2023 · 31 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Sep 19, 2023

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. Go to any chat
  2. Click on + icon and select assign task
  3. Enter title and create task
  4. Go to task thread and delete the task
  5. Go to parent report screen
  6. Go offline

Expected Result:

Delete task message text color should not change

Actual Result:

Delete task message text color changes to gray

Workaround:

Unknown

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: Dev 1.3.71-5
Reproducible in staging?: n
Reproducible in production?: n
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-09-19.at.11.53.07.AM.1.mov

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014b184e9e64be3573
  • Upwork Job ID: 1704196739021500416
  • Last Price Increase: 2023-09-19
  • Automatic offers:
    • dukenv0307 | Contributor | 26887595
@kbecciv kbecciv added the External Added to denote the issue can be worked on by a contributor label Sep 19, 2023
@melvin-bot melvin-bot bot changed the title Dev: Web - Delete task message text color change in offline mode [$500] Dev: Web - Delete task message text color change in offline mode Sep 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 19, 2023

Job added to Upwork: https://www.upwork.com/jobs/~014b184e9e64be3573

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 19, 2023

Triggered auto assignment to @johncschuster (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 19, 2023

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

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Sep 19, 2023

Proposal

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

Delete task item color should not change

What is the root cause of that problem?

We don't have the conditions for this

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

We can update this line like

pendingAction={props.draftMessage || ReportUtils.isCanceledTaskReport(props.taskReport, props.action) ? null : props.action.pendingAction}

pendingAction={props.draftMessage ? null : props.action.pendingAction}

Screen.Recording.2023-09-20.at.00.31.20.mov

What alternative solutions did you explore? (Optional)

NA

@dukenv0307
Copy link
Contributor

dukenv0307 commented Sep 20, 2023

Proposal

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

Web - Delete task message text color change in offline mode

What is the root cause of that problem?

We don't update pendingAction of parent report action to null in successData and failureData when we cancel the task

const successData = [
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${taskReportID}`,
value: {
[optimisticReportActionID]: {
pendingAction: null,
},

That makes this action is blurred in offline

pendingAction={props.draftMessage ? null : props.action.pendingAction}

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

We should update pendingAction of parent report action to null in successData and failureData

const successData = [
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${taskReportID}`,
value: {
[optimisticReportActionID]: {
pendingAction: null,
},

What alternative solutions did you explore? (Optional)

NA

Result

Screen.Recording.2023-09-20.at.10.39.01.mp4

@melvin-bot melvin-bot bot added the Overdue label Sep 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

@johncschuster, @robertKozik Eep! 4 days overdue now. Issues have feelings too...

@robertKozik
Copy link
Contributor

Thank you both for your proposals @ZhenjaHorbach @dukenv0307 . I think the proper root cause was introduced by @dukenv0307 and solution tackles the cause directly. That's why I think we should proceed with @dukenv0307 proposal

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

Triggered auto assignment to @chiragsalian, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@johncschuster
Copy link
Contributor

Thanks, @robertKozik! I'll assign the issue to @dukenv0307.

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

melvin-bot bot commented Sep 26, 2023

📣 @dukenv0307 🎉 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 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 26, 2023
@dukenv0307
Copy link
Contributor

@robertKozik The PR is ready for review.

@melvin-bot
Copy link

melvin-bot bot commented Sep 29, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @dukenv0307 got assigned: 2023-09-26 15:48:05 Z
  • when the PR got merged: 2023-09-29 23:17:43 UTC
  • days elapsed: 3

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 3, 2023
@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Oct 10, 2023
@johncschuster
Copy link
Contributor

Payment has been issued to @dukenv0307 via Upwork

@melvin-bot melvin-bot bot removed the Overdue label Oct 12, 2023
@johncschuster
Copy link
Contributor

@chiragsalian / @robertKozik is this issue supposed to have a BZ Checklist? I'm not sure how to generate that.

@dukenv0307
Copy link
Contributor

I just added a note here, @robertKozik approves this issue within 3 working days. And after that, we wait for the final review from @chiragsalian

cc @johncschuster

@melvin-bot melvin-bot bot added the Overdue label Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

@johncschuster, @chiragsalian, @robertKozik, @dukenv0307 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@chiragsalian
Copy link
Contributor

And after that, we wait for the final review from @chiragsalian

Sorry, is there something pending from me? I see this PR was merged 2 weeks ago. If there is something still pending for me let me know.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 16, 2023
@johncschuster
Copy link
Contributor

johncschuster commented Oct 19, 2023

@chiragsalian Ah, I called you out in an earlier comment because I noticed the BZ checklist didn't automatically get added here, and I was curious if that was intentional, but that's all I can really think of.

@melvin-bot melvin-bot bot removed the Overdue label Oct 19, 2023
@johncschuster
Copy link
Contributor

johncschuster commented Oct 20, 2023

@dukenv0307

I just added a note here, @robertKozik approves this issue within 3 working days. And after that, we wait for the final review from @chiragsalian

This isn't quite right. It looks like the PR was created on 2023-09-25 and approved on 2023-09-29, which is four days, not three.

Screenshot of Google Chrome (10-20-23, 5-58-57 AM)

Screenshot of Google Chrome (10-20-23, 5-59-08 AM)

@johncschuster
Copy link
Contributor

@gadhiyamanan, I just noticed you weren't invited to the job. I've just invited you directly on Upwork. Can you please accept the Reporter role? Thank you!

@gadhiyamanan
Copy link
Contributor

@johncschuster applied

@melvin-bot melvin-bot bot added the Overdue label Oct 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

@johncschuster, @chiragsalian, @robertKozik, @dukenv0307 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@johncschuster
Copy link
Contributor

@gadhiyamanan thanks! I've sent the proposal. Can you accept that? I'll get payment issued right away!

@melvin-bot melvin-bot bot removed the Overdue label Oct 24, 2023
@gadhiyamanan
Copy link
Contributor

@johncschuster offer accepted, thanks!

@dukenv0307
Copy link
Contributor

dukenv0307 commented Oct 25, 2023

@johncschuster I was assigned on Step 26. I just created a draft on Step 25

Screenshot 2023-10-25 at 10 22 36

@melvin-bot melvin-bot bot added the Overdue label Oct 27, 2023
@johncschuster
Copy link
Contributor

Thanks for the ping, @dukenv0307! I thought the bonus was calculated on the date the PR is submitted, but it looks like I had that wrong! You are indeed eligible. Thanks for your patience while I confirmed that!

@melvin-bot melvin-bot bot removed the Overdue label Oct 27, 2023
@johncschuster
Copy link
Contributor

I've issued the bonus 🎉

@gadhiyamanan
Copy link
Contributor

@johncschuster can you please approve milestone in upwork?
Payment is pending

@johncschuster
Copy link
Contributor

Thank you for the ping, @gadhiyamanan! I've just issued payment. Sorry for missing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants