App icon indicating copy to clipboard operation
App copied to clipboard

[$250] BUG: Workspace room name input not grayed out when pending update fails

Open neil-marcellini opened this issue 2 years ago • 14 comments

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


Action Performed:

  1. Sign in with any account
  2. Create a workspace from the green plus (if needed)
  3. Create a workspace room from the green plus (if needed)
  4. Go offline
  5. Click the header of the workspace room to open the room details page
  6. Click "Settings"
  7. Rename the room (#examplerename) and hit save
  8. Verify that the input is grayed out (50% opacity)
  9. Sign into the same account on another device or incognito window
  10. Create another workspace room on the same workspace with the same name (#examplerename)
  11. Go back to the other device and go back online
  12. Verify that there is a red dot and an error message saying "A room with this name already exists".
  13. Verify that there is a red dot on the LHN

Expected Result:

The inputs on the workspace settings page are grayed out (50% opacity)

Actual Result:

The inputs on the workspace settings page are not grayed out (50% opacity)

Workaround:

Ignore it.

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: v1.2.15-3 Reproducible in staging?: Yes Reproducible in production?: Yes Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: image

Expensify/Expensify Issue URL: Issue reported by: @neil-marcellini Slack conversation:

View all open jobs on GitHub

neil-marcellini avatar Oct 17 '22 16:10 neil-marcellini

Triggered auto assignment to @ntrepanier (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

melvin-bot[bot] avatar Oct 17 '22 16:10 melvin-bot[bot]

I'm OOO for the next couple days driving home so I'm reassigning so this gets looked at properly.

ntrepanier avatar Oct 19 '22 16:10 ntrepanier

Triggered auto assignment to @MitchExpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

melvin-bot[bot] avatar Oct 19 '22 16:10 melvin-bot[bot]

@neil-marcellini when you say "Verify that the input is grayed out" in step 8, where are you referring to? I see the input is not grayed after sacing in this example if you are referring to the text field input:

Verify that the input is grayed out:

image

MitchExpensify avatar Oct 19 '22 22:10 MitchExpensify

I have updated the steps to clarify that both inputs should be grayed out (50% opacity). They will only be grayed out if you are offline and you have saved an updated workspace name. It should look like this, which I just tested on prod. image

neil-marcellini avatar Oct 20 '22 17:10 neil-marcellini

I simplified the reproduction steps so hopefully they are more clear now.

neil-marcellini avatar Oct 21 '22 18:10 neil-marcellini

Reproduced: image

This is probably a good external candidate right @neil-marcellini ?

MitchExpensify avatar Oct 24 '22 18:10 MitchExpensify

This is probably a good external candidate right @neil-marcellini ?

Yep. I looked at the code a bit myself and I'm actually not sure why it isn't working right now. I don't think it will require any backend changes. The errors and pendingAction passed to OfflineWithFeedback are set correctly, but for some reason the opacity is not applied. https://github.com/Expensify/App/blob/83676c1036299ffecbf82f4b829a7f8cbd741cd7/src/pages/ReportSettingsPage.js#L165-L169

neil-marcellini avatar Oct 24 '22 22:10 neil-marcellini

Current assignee @MitchExpensify is eligible for the External assigner, not assigning anyone new.

melvin-bot[bot] avatar Oct 27 '22 20:10 melvin-bot[bot]

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

melvin-bot[bot] avatar Oct 27 '22 20:10 melvin-bot[bot]

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

melvin-bot[bot] avatar Oct 27 '22 20:10 melvin-bot[bot]

not overdue.. waiting for proposals

MitchExpensify avatar Oct 27 '22 21:10 MitchExpensify

@parasharrajat, @MitchExpensify, @Luke9389 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] avatar Oct 31 '22 07:10 melvin-bot[bot]

@parasharrajat, @MitchExpensify, @Luke9389 Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Oct 31 '22 08:10 melvin-bot[bot]

No proposals.

parasharrajat avatar Oct 31 '22 12:10 parasharrajat

Upwork Job

MitchExpensify avatar Oct 31 '22 23:10 MitchExpensify

Still waiting on proposals.

Luke9389 avatar Nov 03 '22 18:11 Luke9389

Doubled! Upwork Job

MitchExpensify avatar Nov 04 '22 16:11 MitchExpensify

waiting on proposals.

Luke9389 avatar Nov 07 '22 22:11 Luke9389

We should consider taking this one internal, as it's blocking a test script from being added to TestRail. In the meantime, maybe doubling the price again will help encourage contributor proposals!

JmillsExpensify avatar Nov 10 '22 18:11 JmillsExpensify

Once I'm done with my current bug, I'll come back if this one is still up for grabs.

Luke9389 avatar Nov 10 '22 22:11 Luke9389

@neil-marcellini @Luke9389 @parasharrajat I am trying to reproduce the BUG. After doing Step 7, the input is grayed out (50% opacity) and this is expected result. Can you please help me to understand the bug.

https://user-images.githubusercontent.com/111683206/201394320-261e13ba-59d0-4e18-8484-10f73ceba7e9.mov

varshamb avatar Nov 11 '22 17:11 varshamb

I am also confuse a bit here. what does the workspace settings page has to do with Room renaming?

The inputs on the workspace settings page are grayed out (50% opacity)

And when should this happen? after which step?

cc: @neil-marcellini

parasharrajat avatar Nov 11 '22 17:11 parasharrajat

The inputs on the workspace room settings page are grayed out (50% opacity)

We're missing the word room in the expected/actual result, but that's the meaning as it's also the language used in the reproduction steps.

JmillsExpensify avatar Nov 11 '22 19:11 JmillsExpensify

And when should this happen? after which step?

The reason that this should happen is that the app is offline in this state, and this is a "pending action" which cannot be saved until the app comes back online. Here's another example for the workspace settings page, simply because I have that mock handy. Notice the second input? That's what we should be going for.

image

JmillsExpensify avatar Nov 11 '22 19:11 JmillsExpensify

Ok, so you are saying that input should be grayed out in below image. I got confused but the expected and actual result as well as https://github.com/Expensify/App/issues/11914#issuecomment-1285884724 image

parasharrajat avatar Nov 11 '22 19:11 parasharrajat

Ok, so you are saying that input should be grayed out in below image

Yes, exactly.

@neil-marcellini Are you saying that the notification preferences (first input) should be greyed out? I would have thought that's Pattern A (no failure case offline), but maybe there's a case you have in mind.

JmillsExpensify avatar Nov 11 '22 19:11 JmillsExpensify

The name input on the workspace room settings page should be grayed out when there was an error updating it. I'll edit the issue description to make it more clear.

neil-marcellini avatar Nov 14 '22 17:11 neil-marcellini

@Luke9389 Hows your bandwidth looking at the moment for this one to take it internally?

MitchExpensify avatar Nov 14 '22 18:11 MitchExpensify

@varshamb So the issue is asking that at step 13 as well as the red dot.

parasharrajat avatar Nov 14 '22 18:11 parasharrajat