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

[$500] Workspace - No padding around workspace upload error #29652

Closed
6 tasks done
kbecciv opened this issue Oct 16, 2023 · 36 comments
Closed
6 tasks done

[$500] Workspace - No padding around workspace upload error #29652

kbecciv opened this issue Oct 16, 2023 · 36 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Oct 16, 2023

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


Version Number: 1.3.84.1
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697206853776269

Action Performed:

  1. Open the app
  2. Open settings->workspaces->any workspace->settings
  3. Click on profile and click upload
  4. Upload file greater then 6mb
  5. Observe error has no padding around
  6. Try similar file upload in settings->profile->click on profile->upload
  7. Observe that it has proper padding around error

Expected Result:

App should display proper padding around workspace upload errors like it does for user profile upload errors

Actual Result:

App does not display proper padding around workspace upload errors

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Android: Native
Android.native.no.padding.workspace.upload.error.mp4
Android: mWeb Chrome
Android.chrome.no.padding.workspace.upload.error.mp4
iOS: Native
ios.native.no.padding.workspace.upload.error.mov
iOS: mWeb Safari
ios.safari.no.padding.workspace.upload.error.mov
MacOS: Chrome / Safari
windows.chrome.no.padding.around.workspace.upload.errors.mp4
mac.chrome.no.padding.workspace.upload.error.mov
Recording.5005.mp4
MacOS: Desktop
mac.desktop.no.padding.workspace.upload.error.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01226fa069ff423c98
  • Upwork Job ID: 1713727632636690432
  • Last Price Increase: 2023-10-30
  • Automatic offers:
    • esh-g | Contributor | 27451133
    • dhanashree-sawant | Reporter | 27451134
@c3024
Copy link
Contributor

c3024 commented Oct 16, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

No margin around the error when uploading large image for workspace image upload but in profile pic update there is a proper margin

What is the root cause of that problem?

There is a horizontal margin for AvatarWithImagePicker here

style={[styles.mh5]}

but not here

What changes do you think we should make in order to solve the problem?

We need to add the horizontal margin mh5 for the AvatarWithImagePicker of WorkspaceSettingsPage also.

What alternative solutions did you explore? (Optional)

@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 16, 2023
@esh-g
Copy link
Contributor

esh-g commented Oct 16, 2023

Proposal

Please re-state the problem we are trying to solve:

No padding around workspace upload error

What is the root cause of this problem?

The root cause is that there is no horizonal margin on the AvatarWithImagePicker component in WorkspaceSettingsPage:
Screenshot 2023-10-14 at 6 00 31 PM

Unlike the profile page with has margin on AvatarWithImagePicker:
Screenshot 2023-10-14 at 6 00 22 PM

I also noticed that the name field errorr on this page does not have margin as well. I believe this can be fixed as a part of this issue.

Screenshot 2023-10-16 at 6 27 01 PM

On almost every page with form, the Form has the style styles.ph5 but since this page has the currency picker that needs to span the width of the entire page, that style is not used here.

What changes should be made to fix this?

  1. We should add the styles.ph5 style to this Form so that all the errors are padded. We do this on almost every page with a form.

    <Form
    formID={ONYXKEYS.FORMS.WORKSPACE_SETTINGS_FORM}
    submitButtonText={translate('workspace.editor.save')}
    style={styles.flexGrow1}
    submitButtonStyles={[styles.mh5]}

  2. We should remove the styles.mh5 from the name text input here:

    containerStyles={[styles.mt4, styles.mh5]}

  3. Since we need the currency selector to span the entire width, we should add the styles.mhn5 to the following View which adds negative margin so that it can span the entire length.

    <View style={[styles.mt4]}>

If you are having doubts about using negative margin, here are some examples of it being used in pages like this where there are both text inputs with padding and value selectors that need to span full width.

In WorkspaceNewRoomPage

<View style={[styles.mhn5]}>

{isPolicyAdmin && (
<View style={styles.mhn5}>

<View style={[styles.mb1, styles.mhn5]}>

In AddressPage

@namhihi237
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

The app should display proper padding around workspace upload errors as user profile upload errors

What is the root cause of that problem?

Currently, we do not have padding paddingHorizontal for AvatarWithImagePicker in WorkspaceSettingsPage, which mean when the long error show we can easily see

What changes do you think we should make in order to solve the problem?

We should add ph5 into AvatarWithImagePicker the same as with the profile page here

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot melvin-bot bot changed the title Workspace - No padding around workspace upload error [$500] Workspace - No padding around workspace upload error Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

Triggered auto assignment to @peterdbarkerUK (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01226fa069ff423c98

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@saranshbalyan-1234
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

No padding around workspace upload error

What is the root cause of that problem?

We have not passed styles for horizontal margin here.


unlike the profile page where we are sending the horizontal style here.
style={[styles.mh5]}

What changes do you think we should make in order to solve the problem?

We need to add horizontal margin in the style prop of AvatarWithImagePicker when calling in WorkspaceSettingsPage like this.

style={[styles.mb3,styles.mh5]}

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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

@dukenv0307
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

No padding around workspace upload error

What is the root cause of that problem?

We have no horizontal padding or margin style for AvatarWithImagePicker in WorkspaceSettingPage

That is added here in ProfilePage

style={[styles.mh5]}

What changes do you think we should make in order to solve the problem?

To consistent the AvatarWithImagePicker component between two page, we can add style styles.mh5 in WorkspaceSettingPage

And add style styles.mb3 in ProfilePage.

style={[styles.mh5]}

That means both page with add style prop with value as {[styles.mb3,styles.mh5]} into AvatarWithImagePicker

What alternative solutions did you explore? (Optional)

@PiyushChandra17
Copy link

Proposal

Please re-state the problem that we are trying to solve in this issue.

Workspace - No padding around workspace upload error

What is the root cause of that problem?

We are applying mh5 here in AvatarWithImagePicker component in profile page,

style={[styles.mh5]}

But we are not applying this style mh5 in workspace

What changes do you think we should make in order to solve the problem?

We need to apply mh5 in AvatarWithImagePicker component in workspace page aswell like we did in profile page,

What alternative solutions did you explore? (Optional)

NA

Result:

Screenshot 2023-10-16 at 10 27 14 AM

@abdel-h66
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Workspace settings avatar container has no horizontal paddings

What is the root cause of that problem?

For both profile settings and workspace settings, we are using the same component AvatarWithImagePicker to display the handle the display and upload of avatar. In the profile settings page we are passing horizontal paddings to the component, we should do the same in the Workspace settings

What changes do you think we should make in order to solve the problem?

<AvatarWithImagePicker
    style={[styles.mb3, styles.mh5]}

What alternative solutions did you explore? (Optional)

I noticed some differences in margins of the profile page vs the workspace settings page.

Profile settings page:
The AvatarWithImagePicker has styles.mh5
The section right under it has styles.mt4

Workspace settings page
If we apply suggestion above AvatarWithImagePicker will have style={[styles.mb3, styles.mh5]}

I suggest removing the styles.mt4 from the View in the profile settings page.
And moving it to the AvatarWithImagePicker to have [styles.mb3, styles.mh5]

image

@peterdbarkerUK
Copy link
Contributor

One note for future reference: expensify.com user accounts will get the MISSING TRANSLATION error here instead.

@dhairyasenjaliya
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

  •  Workspace name Red dot error does not align horizontally with the text field

What is the root cause of that problem?

  • The root cause is we have not added marginHorizontal directly to <Form> instead we have added it on the separate component which is placed inside <Form> making the error style to broke

What changes do you think we should make in order to solve the problem?

What alternative solutions did you explore? (Optional)

  • N/A

Result

Screenshot 2023-10-17 at 4 07 13 PM

@melvin-bot melvin-bot bot added the Overdue label Oct 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2023

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

@peterdbarkerUK
Copy link
Contributor

@eVoloshchak could you take a look at these proposals? Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Oct 22, 2023
@eVoloshchak
Copy link
Contributor

I think we should proceed with @c3024's proposal, as this was the first proposal to fund the root cause for this and propose a valid fix
The fix is simple and straightforward with zero potential regressions
There are a couple of proposals that extend @c3024's proposal finding further inconsistencies on this page, but those should be reported and handled in a separate issue.

🎀👀🎀 C+ reviewed!

@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

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

@esh-g
Copy link
Contributor

esh-g commented Oct 23, 2023

@eVoloshchak if we create a separate issue for those inconsistencies, we will end up undoing what we are going to do here... because to fix the whole page, we need to add padding to the whole form and if we do that, the change that @c3024 proposed (of adding margin to avatar) will need to reversed...

@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@Beamanator
Copy link
Contributor

Hmm I'm actually leaning toward @esh-g 's proposal here - because it is an attempt to make the entire page layout similar to other pages - Plus it fixes that additional name error message issue. What do you think, @eVoloshchak ?

@melvin-bot melvin-bot bot added the Overdue label Oct 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 27, 2023

@Beamanator, @eVoloshchak, @peterdbarkerUK Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@Beamanator
Copy link
Contributor

Bump @eVoloshchak

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 27, 2023
@eVoloshchak
Copy link
Contributor

I'm actually leaning toward @esh-g 's proposal #29652 (comment) - because it is an attempt to make the entire page layout similar to other pages - Plus it fixes that additional name error message issue

Yeah, that is a good point. While this isn't the first proposal, it will allow us to make the whole page consistent with the rest of the app, and the UX is more important
Let's proceed with @esh-g's proposal

@melvin-bot melvin-bot bot removed the Overdue label Oct 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

@Beamanator @eVoloshchak @peterdbarkerUK this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 31, 2023

📣 @eVoloshchak Please request via NewDot manual requests for the Reviewer role ($500)

@melvin-bot
Copy link

melvin-bot bot commented Oct 31, 2023

📣 @esh-g 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Oct 31, 2023

📣 @dhanashree-sawant 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 31, 2023
@esh-g
Copy link
Contributor

esh-g commented Oct 31, 2023

PR is here: #30638

cc @eVoloshchak

@peterdbarkerUK
Copy link
Contributor

peterdbarkerUK commented Nov 15, 2023

PR deployed to production without issue.

UpWork job

Payment summary:

@eVoloshchak please request payment in NewDot (assigned to @JmillsExpensify for payout)

@JmillsExpensify
Copy link

Haven't received a money request yet, though feel free to close this out and I'll comment with approval once I receive it via NewDot.

@eVoloshchak
Copy link
Contributor

Requested the payment

@JmillsExpensify
Copy link

Alright, missed this earlier. @peterdbarkerUK Can you please update that payment summary to clarify the correct payment amount for @eVoloshchak? Thanks!

@peterdbarkerUK
Copy link
Contributor

Updated! It should be $500.

@JmillsExpensify
Copy link

$500 payment approved for @eVoloshchak based on comment above.

@peterdbarkerUK
Copy link
Contributor

Thanks Jason!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests