App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment + bonus] Make bank account loading animations consistently top docked in the right hand pane

Open MitchExpensify opened this issue 5 years ago • 42 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. Open New Expensify
  2. Click "+"
  3. Click "Create Workspace"
  4. Click "Get Started"

Expected Result:

We expect all loading animations in the bank account connection flow to be positioned at the top of right hand pane here:

image

Actual Result:

Some loading animations are positioned in the center here (Validate step): image

And here (clicking Get Started) image

https://user-images.githubusercontent.com/36425901/129765531-565686a8-546e-4771-b682-87a702b8c08b.mov

Workaround:

Simply ignore, this is a design change.

Platform:

Where is this issue occurring?

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

Version Number: v1.0.85-9 Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL:

View all open jobs on GitHub

MitchExpensify avatar Aug 17 '21 16:08 MitchExpensify

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

MelvinBot avatar Aug 17 '21 16:08 MelvinBot

Thinking this is a good external candidate issue

MitchExpensify avatar Aug 17 '21 16:08 MitchExpensify

Proposal

We do pass the below styles to that component for the loading animation view

https://github.com/Expensify/App/blob/6b3a938b3074ec64816ea5188683f383171543c9/src/styles/styles.js#L1789-L1796

We could remove the justifyContent: 'center' that solves the issue.

We could modify and create a new style for this Component alone.

I'll update more after further investigation thanks!

Santhosh-Sellavel avatar Aug 17 '21 17:08 Santhosh-Sellavel

Updated Proposal

After investigation, I conclude that we should create a new style. Because it was used by common FullScreenLoadingIndicator also!

So, we could create a new style as below in styles.js

Screenshot 2021-08-17 at 10 48 10 PM

And use it in the below line, https://github.com/Expensify/App/blob/d386f424a00b9026729342cdab58091b0c2c0ad8/src/components/VBALoadingIndicator.js#L13

Like this Screenshot 2021-08-17 at 10 47 39 PM

Demo Video

https://user-images.githubusercontent.com/85645967/129773177-5d322fc6-a092-4421-b647-21d0c10ae8b7.mov

Santhosh-Sellavel avatar Aug 17 '21 17:08 Santhosh-Sellavel

Screenshot 2021-08-17 at 11 04 44 PM

Also, I noticed in the expected Image there is a nav header with a close option it's not available currently will add that post discussion!

Also, a different message is shown, will update that too based on the input. Thanks!

Santhosh-Sellavel avatar Aug 17 '21 17:08 Santhosh-Sellavel

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

MelvinBot avatar Aug 17 '21 17:08 MelvinBot

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

MelvinBot avatar Aug 17 '21 18:08 MelvinBot

Applying the label so a posting can be made. Agreed this can be external (and there's a proposal a few comments up)

TomatoToaster avatar Aug 17 '21 18:08 TomatoToaster

Upwork post: https://www.upwork.com/jobs/~0176449bcbd8e3cd2c

kadiealexander avatar Aug 18 '21 00:08 kadiealexander

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

MelvinBot avatar Aug 18 '21 00:08 MelvinBot

Still waiting on proposals, double-checked that the links were still in the job post (they're still good).

kadiealexander avatar Aug 22 '21 22:08 kadiealexander

@Jag96 when you get a moment could you please take a look at @Santhosh-Sellavel's proposal above?

kadiealexander avatar Aug 22 '21 23:08 kadiealexander

@Santhosh-Sellavel your updated proposal looks good on web, one thing I noticed on mobile is that the indicator is pretty close to the top, maybe we can add update the style to ensure it has some more space on mobile as well? Tagging @Expensify/design to confirm we'd want to add more space:

Also, I noticed in the expected Image there is a nav header with a close option it's not available currently will add that post discussion!

@MitchExpensify is this something we want to add to the steps in the beginning? I thought we only had these for certain steps in the flow, but not sure. If we end up wanting to update every step to show the title while the loading screen is active I think we should create a new issue, since that increases the scope of work here.

@Santhosh-Sellavel also could you apply to the Upwork job so once design clarifies we can accept your proposal and get an offer sent over?

Jag96 avatar Aug 23 '21 18:08 Jag96

Screenshot 2021-08-17 at 11 04 44 PM

Also, I noticed in the expected Image there is a nav header with a close option it's not available currently will add that post discussion!

Also, a different message is shown, will update that too based on the input. Thanks!

@Jag96 Any thoughts on this? Can we skip it now?

Santhosh-Sellavel avatar Aug 23 '21 20:08 Santhosh-Sellavel

@kadiealexander @Jag96 Applied for the job on Upwork, thanks!

Santhosh-Sellavel avatar Aug 23 '21 20:08 Santhosh-Sellavel

I think we can skip updating the Nav Header for this issue, I will defer to @MitchExpensify about the copy change and I'll defer to @Expensify/design regarding the spacing on the top on mobile. Once we get clarification on those 2 items you're good to move forward with a PR. cc @kadiealexander

Jag96 avatar Aug 23 '21 20:08 Jag96

In terms of spacing, I would expect this view to look like this where we have a header above the empty state: image

shawnborton avatar Aug 24 '21 07:08 shawnborton

cc: @shawnborton @Jag96 We have a header height defined as 65 here https://github.com/Expensify/App/blob/95bf36d950f57d01ae37af2e0d8f2e664a273b75/src/styles/variables.js#L2 So we can just add a marginTop: variables.contentHeaderHeight to the below style which proposed earlier. (Along with a temporary comment saying "until header is added leaving a void space.")

Screenshot 2021-08-17 at 10 48 10 PM

This is how it looks,

iOS

Simulator Screen Shot - iPhone 12 - 2021-08-24 at 20 14 05

Web

https://user-images.githubusercontent.com/85645967/130638916-d3298848-68ff-4d56-838a-4c0c31af6023.mov

Santhosh-Sellavel avatar Aug 24 '21 14:08 Santhosh-Sellavel

Apologies for the confusion here, but why can't we use a header here? I would say that if there is no actual header that is shown, we just center the content in the view. But that being said, I don't particularly like the idea of showing this view without a header, which means there is no way to exit if things get stuck.

shawnborton avatar Aug 24 '21 15:08 shawnborton

Are you suggesting a header with just a close button, no title?

P.S we can use a header component itself

Santhosh-Sellavel avatar Aug 24 '21 15:08 Santhosh-Sellavel