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 2021-09-17] Workspace - Add Loading UI after user saves profile photo #4487

Closed
kavimuru opened this issue Aug 7, 2021 · 33 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Aug 7, 2021

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


Issue was found when executing this PR #4298

Action Performed:

  1. Lunch the app
  2. Log in with expensifail account
  3. Go to Settings - click on any workspace
  4. Click on picture pen and click upload
  5. Click on Save button

Expected Result:

Able to save picture only on first press on the button

Actual Result:

Able to save picture only on second press or 3rd press of the button

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Android

Version Number:
1.0.83-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
**Notes/Photos/Videos:

Bug5182708_Screen_Recording_20210806-132657_Expensifycash.mp4

Expensify/Expensify Issue URL:

View all open jobs on Upwork

this job

@kavimuru kavimuru added the DeployBlockerCash This issue or pull request should block deployment label Aug 7, 2021
@OSBotify
Copy link
Contributor

OSBotify commented Aug 7, 2021

👋 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.

@MelvinBot
Copy link

Triggered auto assignment to @ctkochan22 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@mananjadhav
Copy link
Collaborator

mananjadhav commented Aug 7, 2021

Proposal

The user doesn't have to click twice to save the picture. Basically, there isn't any feedback to the user on changes being saved. Need to do two things:

  1. Show a success/error message on Save
  2. While the API is running disable the Save button

In WorkspaceEditorPage.js,

    this.state = {
       isSubmitting: true
    }


    submit() {
        this.setState({ isSubmitting: true});
        this.uploadAvatarPromise.then(() => {
            const name = this.state.name.trim();
            const avatarURL = this.state.avatarURL;
            const policyID = this.props.policy.id;

            update(policyID, {name, avatarURL});
            this.setState({ isSubmitting: false}); // Manage flag state
            Growl.sucess(translate('updatesuccess')); // Show feedback to the server
        }).catch(err => {
            this.setState({ isSubmitting: false});
            Growl.error(translate('updateFailed'));
        });
   }. 


   <Button
        success
        isDisabled={this.state.isSubmitting} /// Disable button when submitting
        style={[styles.w100]}
        text={this.props.translate('workspace.editor.save')}
        onPress={this.submit}
        pressOnEnter
   />

Try with a smaller size image you'll see it redirects quickly.

@ctkochan22
Copy link
Contributor

I don't think this is a blocker. It looks like there is just no UI feedback that indicates that the request was sent and we are awaiting a response.

Can we close this or edit the title to `Add loading gif/ui once "save" button is clicked

@ctkochan22 ctkochan22 added Weekly KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Aug 10, 2021
@ctkochan22 ctkochan22 changed the title Android - Workspace - User has to tap "save" button twice to save the picture Android - Workspace - Add Loading UI after user saves profile photo Aug 10, 2021
@ctkochan22 ctkochan22 added the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Aug 10, 2021
@MelvinBot
Copy link

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

@MelvinBot MelvinBot added Daily KSv2 and removed AutoAssignerTriage Auto assign issues for triage to an available triage team member labels Aug 10, 2021
@puneetlath puneetlath changed the title Android - Workspace - Add Loading UI after user saves profile photo Workspace - Add Loading UI after user saves profile photo Aug 10, 2021
@puneetlath
Copy link
Contributor

I was able to confirm that this behavior is also happening on iOS as well.

@puneetlath
Copy link
Contributor

@ctkochan22 if you think this is a good external candidate, add the external label please!

@puneetlath puneetlath removed the Weekly KSv2 label Aug 10, 2021
@puneetlath puneetlath removed their assignment Aug 12, 2021
@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Aug 12, 2021
@MelvinBot
Copy link

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

@jboniface
Copy link

weird that being assigned something via auto assigner doesn't remove the overdue label. this made it seem like I had an issue overdue, when really I'd just been assigned to it a couple hours ago.

@mananjadhav
Copy link
Collaborator

Okay @roryabraham I'll take a note of that. I'll check if the image is replaced or the title is changed and accordingly enabled/disable the save button.

@MelvinBot
Copy link

@jboniface, @roryabraham it looks like no one is assigned to work on this job.
Please double the price or add a comment stating why the job isn't being doubled.

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 23, 2021
@roryabraham
Copy link
Contributor

@jboniface Let's hire @mananjadhav for this so he can get started implementing the solution 👍

@jboniface
Copy link

progress is still being made on the PR

@MelvinBot MelvinBot removed the Overdue label Aug 31, 2021
@mananjadhav
Copy link
Collaborator

PR is under review.

@mananjadhav
Copy link
Collaborator

@roryabraham @jboniface

I was wondering if we could bump the budget for this one considering the amount of work we achieved with the PR.

Wouldn't have asked if I was the reporter as would've received the bonus. Hope you'll consider.

@jboniface
Copy link

@mananjadhav how much of an increase are you requesting?

@mananjadhav
Copy link
Collaborator

Well, we added 1 feature and made improvements in the Animation. Updated that at two places Workspace and Profile.

I would say roughly +350. But I’d also highlight that @roryabraham was the one who helped with the Animation rewrite (Something that would then reduce the ask?)

@botify
Copy link

botify commented Sep 9, 2021

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@mananjadhav
Copy link
Collaborator

Also an fyi, I had reported the feature requests here: #4801 (comment)

@roryabraham
Copy link
Contributor

@mananjadhav went above-and-beyond the original scope on this one and was a good sport with lots of refactoring - I think we can bump the pay to $500

@botify
Copy link

botify commented Sep 9, 2021

🚀 Deployed to staging by @roryabraham in version: 1.0.95-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 10, 2021
@botify botify changed the title Workspace - Add Loading UI after user saves profile photo [HOLD for payment 2021-09-17] Workspace - Add Loading UI after user saves profile photo Sep 10, 2021
@botify
Copy link

botify commented Sep 10, 2021

🚀 Deployed to production by @roryabraham in version: 1.0.96-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@jboniface
Copy link

paid

@mananjadhav
Copy link
Collaborator

@mananjadhav went above-and-beyond the original scope on this one and was a good sport with lots of refactoring - I think we can bump the pay to $500

@jboniface Did we decide not to increase the budget? I received 250$ only on Upwork

@jboniface
Copy link

Ah, shoot, I didn't scroll up. I'll send you another contract, just a sec.

@jboniface
Copy link

ok, sent

@mananjadhav
Copy link
Collaborator

Applied

Ah, shoot, I didn't scroll up. I'll send you another contract, just a sec.

No worries. Thanks

@jboniface
Copy link

all set!

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 Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants