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

[$50] mWeb - Workspace - In offline, unable to save workspace name/ description #54609

Open
1 of 8 tasks
IuliiaHerets opened this issue Dec 27, 2024 · 28 comments
Open
1 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Dec 27, 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.79-0
Reproducible in staging?: Yes
Reproducible in production?: No
Issue reported by: Applause Internal Team
Device used: Redmi note 10s Android 13
App Component: Workspace Settings

Action Performed:

  1. Go to https://staging.new.expensify.com/home
  2. Go to workspace settings
  3. Turn off internet connection in the device and wait until header shows no internet connection
  4. Create a new workspace
  5. Try to rename and save workspace name/ description

Expected Result:

In offline, must be able to save workspace name/ description.

Actual Result:

In offline, unable to save workspace name/ description.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6702759_1735271645135.Screenrecorder-2024-12-27-09-18-10-255_compress_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021872619802972851604
  • Upwork Job ID: 1872619802972851604
  • Last Price Increase: 2024-12-27
  • Automatic offers:
    • suneox | Reviewer | 105490775
    • huult | Contributor | 105490778
Issue OwnerCurrent Issue Owner: @ZhenjaHorbach
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Dec 27, 2024
Copy link

melvin-bot bot commented Dec 27, 2024

Triggered auto assignment to @mountiny (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Dec 27, 2024

Triggered auto assignment to @bfitzexpensify (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.

Copy link

melvin-bot bot commented Dec 27, 2024

💬 A slack conversation has been started in #expensify-open-source

@melvin-bot melvin-bot bot added the Daily KSv2 label Dec 27, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Dec 27, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@mountiny mountiny added Daily KSv2 External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Dec 27, 2024
@melvin-bot melvin-bot bot changed the title mWeb - Workspace - In offline, unable to save workspace name/ description [$250] mWeb - Workspace - In offline, unable to save workspace name/ description Dec 27, 2024
Copy link

melvin-bot bot commented Dec 27, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 27, 2024
Copy link

melvin-bot bot commented Dec 27, 2024

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

@mountiny mountiny changed the title [$250] mWeb - Workspace - In offline, unable to save workspace name/ description [$50] mWeb - Workspace - In offline, unable to save workspace name/ description Dec 27, 2024
Copy link

melvin-bot bot commented Dec 27, 2024

Upwork job price has been updated to $50

@mountiny
Copy link
Contributor

50$ to identify the offending PR and confirm with the revert.

I have demoted as I have tested and this is not a problem if the workspace is created online. Its very rare that the workspace would be created offline and user needs to update the name straight after

@mountiny mountiny moved this to Bugs and Follow Up Issues in [#whatsnext] #expense Dec 27, 2024
@bernhardoj
Copy link
Contributor

This is caused by #53529

@mountiny
Copy link
Contributor

@huult @suneox can you please have a look or should we revert your PR and address it later?

@huult
Copy link
Contributor

huult commented Dec 27, 2024

I'm checking

@huult
Copy link
Contributor

huult commented Dec 27, 2024

@mountiny I found the root cause of this issue. It was due to an update to eslint for getCustomUnitRateID, which caused this issue to occur.

let customUnitRateID: string = CONST.CUSTOM_UNITS.FAKE_P2P_ID;
if (!reportID) {
return customUnitRateID;
}

May I revert this commit?

@suneox
Copy link
Contributor

suneox commented Dec 28, 2024

@mountiny I found the root cause of this issue. It was due to an update to eslint for getCustomUnitRateID, which caused this issue to occur.

let customUnitRateID: string = CONST.CUSTOM_UNITS.FAKE_P2P_ID;
if (!reportID) {
return customUnitRateID;
}

May I revert this commit?

@huult Have you got solution to resolve this issue instead of only revert commit?

@huult
Copy link
Contributor

huult commented Dec 28, 2024

yes @suneox I will create pull request soon

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Dec 28, 2024
@huult
Copy link
Contributor

huult commented Dec 28, 2024

@suneox @mountiny The pull request #54634 is ready. Could you take a look?

@mountiny mountiny assigned suneox, huult and bernhardoj and unassigned ZhenjaHorbach Dec 28, 2024
@melvin-bot melvin-bot bot removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Dec 28, 2024
Copy link

melvin-bot bot commented Dec 28, 2024

📣 @suneox 🎉 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 Dec 28, 2024

📣 @suneox 🎉 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 Dec 28, 2024

📣 @suneox 🎉 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 Dec 28, 2024

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

@suneox
Copy link
Contributor

suneox commented Dec 29, 2024

@huult @suneox can you please have a look or should we revert your PR and address it later?

@mountiny The PR doesn't resolve this issue, so I think we can revert PR until we find the root cause.

@bernhardoj
Copy link
Contributor

I haven't really dig into the issue, but I found that it's caused by the keyboard utils dismiss function of index.website.ts

@huult
Copy link
Contributor

huult commented Dec 29, 2024

@suneox Could you check again? thanks

@suneox
Copy link
Contributor

suneox commented Dec 29, 2024

@suneox Could you check again? thanks

Can you provide the RCA for this issue? In your new update, it only ignores iOS Safari, but I’ve double-checked this issue also occurs on the latest staging with iOS Safari (real device).

ScreenRecording_12-29-2024.23-24-25_1_2.mp4

@huult
Copy link
Contributor

huult commented Dec 30, 2024

@suneox Yes, we have two issues here:

  1. We updated ESLint and added a return early condition, which caused the send button to become unclickable. I have fixed this by removing the return early condition.

  2. For dismissing the keyboard, we used visualViewport to detect and hide the keyboard. This should only work on Safari.

I tested it on the iOS version of the mobile web, and it’s working well.

Screen.Recording.2024-12-30.at.07.29.51.mov

@suneox
Copy link
Contributor

suneox commented Dec 30, 2024

  1. We updated ESLint and added a return early condition, which caused the send button to become unclickable.

@huult Your RCA isn't correct.

Can you reference the code in your commit that makes the button unclickable?

  1. For dismissing the keyboard, we used visualViewport to detect and hide the keyboard. This should only work on Safari

The issue occurs on a real device when the smart banner app is displayed.

Screenshot 2024-12-30 at 08 48 19

@huult
Copy link
Contributor

huult commented Dec 30, 2024

Yes, I will check this case (the smart banner is displayed).

@huult
Copy link
Contributor

huult commented Dec 30, 2024

@suneox I have found the RCA of this issue. I will update the pull request in a few hours. The problem occurs because isVisible is not updated to false when the smart banner is displayed, causing the condition currentHeight === initialViewportHeight to fail

if (currentHeight === initialViewportHeight) {
isVisible = false;
}

@huult
Copy link
Contributor

huult commented Dec 30, 2024

@suneox I have finalized the pull request. Could you check it again? Thank you!

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. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

7 participants