App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-11-29] [HOLD for payment 2021-11-22] Payments - Improve payments option floating menu design - Reported by: @Santhosh-Sellavel

Open isagoico opened this issue 5 years ago • 22 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. Navigate to payments
  2. Click on add new payment method

Expected Result:

Floating menu should have a good and balanced design

Actual Result:

Floating menu needs a bit of tweaks for a more balanced design.

Workaround:

N/A, visual issue.

Platform:

Where is this issue occurring?

  • Web
  • Desktop App

Version Number: 1.1.8-0

Reproducible in staging?: Yes Reproducible in production?: Yes

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation image

Expensify/Expensify Issue URL:

Issue reported by: @Santhosh-Sellavel Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1634144159225800

View all open jobs on GitHub

isagoico avatar Oct 15 '21 22:10 isagoico

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

MelvinBot avatar Oct 15 '21 22:10 MelvinBot

Triggered auto assignment to @sylveawong (Design), see these Stack Overflow questions for more details.

MelvinBot avatar Oct 15 '21 22:10 MelvinBot

This looks like a good candidate for an External label.

joelbettner avatar Oct 15 '21 23:10 joelbettner

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

MelvinBot avatar Oct 15 '21 23:10 MelvinBot

removing myself and tagging @shawnborton and @michelle-thompson to work on this!

sylveawong avatar Oct 18 '21 19:10 sylveawong

Well! https://github.com/Expensify/App/issues/5915 seems like a minor change and can be merged into a single issue.

parasharrajat avatar Oct 18 '21 19:10 parasharrajat

I think we can easily solve this by just adding more padding to the right side of these options on desktop.

shawnborton avatar Oct 20 '21 19:10 shawnborton

The outcome is decided here: Add right padding of 60.

Proposal

  1. In spacing.js add a new spacing for paddingRight 60,
pr15: {
        paddingRight: 60,
},
  1. We need to modify the below lines to add padding. https://github.com/Expensify/App/blob/b7e9054d73b80a01aa1679d57f723a4d3d8161ac/src/pages/settings/Payments/PaymentsPage.js#L141-L150

We can add padding in two ways here.

The first way

We can just pass the prop wrapperStyle={styles.pr15} to both MenuItem components.

Second way

We can just need to move both menu options into a container and style there. Like below,

<View style={styles.pr15}>
      // Move MenuItems here
</View>

Adding the right padding does not affect anything visually in mobile, but still, we can remove the style using windowDimensionProps isSmallScreenWidth if needed.

Santhosh-Sellavel avatar Oct 21 '21 21:10 Santhosh-Sellavel

Looks good to me!

shawnborton avatar Oct 25 '21 17:10 shawnborton

Job posted @Santhosh-Sellavel feel free to apply and I'll hire you!

https://www.upwork.com/jobs/~019b7a61e42f7c39f7

kevinksullivan avatar Oct 27 '21 21:10 kevinksullivan

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

MelvinBot avatar Oct 27 '21 21:10 MelvinBot

Applied for the job! @kevinksullivan

Santhosh-Sellavel avatar Oct 28 '21 06:10 Santhosh-Sellavel

Hired 👍

kevinksullivan avatar Oct 29 '21 19:10 kevinksullivan

Thanks! @kevinksullivan

@deetergp Here is my proposal https://github.com/Expensify/App/issues/5906#issuecomment-948999691 Can you review it let me know which way you prefer, whether I can start PR?

Santhosh-Sellavel avatar Oct 29 '21 19:10 Santhosh-Sellavel

@deetergp bump

Santhosh-Sellavel avatar Nov 01 '21 17:11 Santhosh-Sellavel

@Santhosh-Sellavel I think the second way is a little cleaner so let's go with that. Thanks!

deetergp avatar Nov 03 '21 17:11 deetergp

Not overdue

deetergp avatar Nov 11 '21 19:11 deetergp

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.14-4 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/6196
  • https://github.com/Expensify/App/pull/6237

If no regressions arise, payment will be issued on 2021-11-22. :confetti_ball:

botify avatar Nov 15 '21 22:11 botify

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.15-15 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/6237

If no regressions arise, payment will be issued on 2021-11-29. :confetti_ball:

botify avatar Nov 22 '21 19:11 botify

Mention PR for this issue has been deployed earlier.

1st deploy https://github.com/Expensify/App/pull/6237#issuecomment-969396123

2nd deploy Deployed again two days ago https://github.com/Expensify/App/pull/6237#issuecomment-975879438

The payment was due on 22 Nov. it's updated to 29 Nov.

Can someone clarify what's wrong here, why it is deployed twice!

Santhosh-Sellavel avatar Nov 25 '21 00:11 Santhosh-Sellavel