App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-12-15] Profile - There's no gap between the growl and the edges of the app - Reported by: @parasharrajat

Open isagoico opened this issue 5 years ago • 15 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 profile settings
  2. Make some changes and hit save

Expected Result:

There should be some spaces between the growl and the edges of the app

Actual Result:

There's no gap between the growl and the edges of the app

Workaround:

No need, visual issue.

Platform:

Where is this issue occurring?

  • iOS
  • Android

Version Number: 1.1.17-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: @parasharrajat Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1638203292033200

View all open jobs on GitHub

isagoico avatar Nov 30 '21 01:11 isagoico

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

MelvinBot avatar Nov 30 '21 01:11 MelvinBot

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

MelvinBot avatar Nov 30 '21 03:11 MelvinBot

Proposed Solution:

Here is the problem: At line 18 it is using StyleUtils.getSafeAreaPadding(insets) i.e. we are passing insets within it, so here insets.left and insets.right consist 0 value that results to no gap at left or right of growl.

https://github.com/Expensify/App/blob/b40d03e09a08b57af2adfeb2bbbb3f95e9c574f9/src/components/GrowlNotification/GrowlNotificationContainer/index.native.js#L15-L23

Here is Solution: At line 18 we have to pass left and right value, so it will create gap at left right of growl. It will solve problem for all places where growl used in native. (We can change left right value as per design requirement).

StyleUtils.getSafeAreaPadding({...insets, left: 20, right: 20}),

It works as expected after this changes:

https://user-images.githubusercontent.com/7823358/144028612-dd4419bc-93d7-4be6-b496-72d6d44d93cc.mov

PrashantMangukiya avatar Nov 30 '21 10:11 PrashantMangukiya

Proposal

We only have to add marginHorizontal style property of growlNotificationBox: https://github.com/Expensify/App/blob/b40d03e09a08b57af2adfeb2bbbb3f95e9c574f9/src/styles/styles.js#L1966 ...spacing.mh5

Android and iOS

developvsn avatar Nov 30 '21 10:11 developvsn

Created the job in Upwork! @parasharrajat ty for reporting

Internal listing External listing

adelekennedy avatar Dec 01 '21 01:12 adelekennedy

Triggered auto assignment to @parasharrajat (Exported)

MelvinBot avatar Dec 01 '21 01:12 MelvinBot

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

MelvinBot avatar Dec 01 '21 01:12 MelvinBot

Proposal

  1. Add marginHorizontal of 5px in growlNotificationWrapper to give some space between the growl and the edges of the app.
 growlNotificationWrapper: {
    zIndex: 2,
    ...spacing.mh5,
  },

https://github.com/Expensify/App/blob/2d90756a2579a94ce3798b1cada48dd2c2ea492f/src/styles/styles.js#L1963-L1965

shoaibzkhalid avatar Dec 01 '21 04:12 shoaibzkhalid

Just checked that this is a regression caused by https://github.com/Expensify/App/pull/6291. Let me check what should I do here.

parasharrajat avatar Dec 01 '21 12:12 parasharrajat

Update: Thanks, everyone for proposing a fix.

As mentioned above the issue is a regression and the regression period is still active for that PR. Thus the author of #6291 should fix it. @kakajann Could you please fix it?

@adelekennedy We will not be needing the Upwork job for this. Thanks. cc: @deetergp .

parasharrajat avatar Dec 01 '21 14:12 parasharrajat

Upwork job closed - un-assigning myself from the issue

adelekennedy avatar Dec 01 '21 16:12 adelekennedy

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.18-3 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/6559

If no regressions arise, payment will be issued on 2021-12-15. :confetti_ball:

botify avatar Dec 08 '21 19:12 botify

@adelekennedy I think forgot to mention earlier that I am eligible for a reporting bonus here or I waited for PR deployment.

parasharrajat avatar Dec 15 '21 18:12 parasharrajat

@adelekennedy Bump.

parasharrajat avatar Dec 17 '21 17:12 parasharrajat

@parasharrajat hired!

adelekennedy avatar Dec 17 '21 17:12 adelekennedy