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 2022-11-02] [$250] Bug: Keyboard shortcut modal doesn't take whole width at the footer reported by @Puneet-here #11588

Closed
kavimuru opened this issue Oct 4, 2022 · 25 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Oct 4, 2022

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


Action Performed:

  1. Change screen to medium screen size and press cmd + i
  2. Change screen to small screen size and press cmd + i

Expected Result:

The modal should take the whole width or it should open in the middle

Actual Result:

The modal doesn't take the full width in medium screen size

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web
  • Desktop App

Version Number:
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Screenshot 2022-09-27 at 8 31 41 PM
<img width="722" alt="Screenshot 2022-09-27 at 8 25 29 PM" src="https://user-images.gi
Screenshot (207)
Screenshot (206)
thubusercontent.com/43996225/193888753-a569be4f-fd6c-4b36-9bfb-a25b26db06e0.png">

Expensify/Expensify Issue URL:
Issue reported by: @Puneet-here
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1664291291091909

View all open jobs on GitHub

@kavimuru kavimuru added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Oct 4, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 4, 2022

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

@melvin-bot melvin-bot bot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Oct 4, 2022
@Puneet-here
Copy link
Contributor

Proposal

we have maxWidth: 600 set in the keyboardShortcutModalContainer but we don't want that in small screen because at small screen the modal will be bottom docked so we can use this.props.isSmallScreenWidth to decide the style. We can create a variable like below for the styles and we can pass it to containerStyle

containerStyle={styles.keyboardShortcutModalContainer}

const containerStyle = {...styles.keyboardShortcutModalContainer, ...this.props.isSmallScreenWidth? styles.mw100: {} }

Or we can also create a function at StyleUtils.js and pass screen size there to get the styles we want.

@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Oct 5, 2022

Ah interesting! This looks similar - #11411 - sending to eng to see if this should be a separate fix.

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2022

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

@AndrewGable
Copy link
Contributor

It does seem like a separate issue, however, I would love @Expensify/design's confirmation that we want this modal to open full screen?

@JmillsExpensify

This comment was marked as outdated.

@michelle-thompson
Copy link
Contributor

I don't think it should be full-screen, but full-width

@shawnborton
Copy link
Contributor

Yeah, basically in this screenshot here:
image

The white modal part should extend to the edges of the device. Do we know why it is not? Just trying to understand if this has implications for other modals/bottom drawers in the app.

@melvin-bot melvin-bot bot added the Overdue label Oct 9, 2022
@Puneet-here
Copy link
Contributor

@shawnborton, we are using maxWidth: 600 for this modal that's why it doesn't take the whole width at the bottom, we only need maxWidth: 600 at large screen so we can solve this by checking the screen size as proposed here

@shawnborton
Copy link
Contributor

Sounds good, thanks for the explanation!

@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 2022

@AndrewGable Huh... This is 4 days overdue. Who can take care of this?

@AndrewGable AndrewGable added the External Added to denote the issue can be worked on by a contributor label Oct 11, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 2022

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 2022

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

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

melvin-bot bot commented Oct 11, 2022

Current assignee @AndrewGable is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot changed the title Bug: Keyboard shortcut modal doesn't take whole width at the footer reported by @Puneet-here [$250] Bug: Keyboard shortcut modal doesn't take whole width at the footer reported by @Puneet-here Oct 11, 2022
@AndrewGable
Copy link
Contributor

External issue

@melvin-bot melvin-bot bot removed the Overdue label Oct 11, 2022
@rushatgabhane
Copy link
Member

rushatgabhane commented Oct 11, 2022

Or we can also create a function at StyleUtils.js and pass screen size there to get the styles we want

@Puneet-here sounds good, let's do that.

@AndrewGable I like @Puneet-here's proposal.
C+ reviewed 🎀 👀 🎀

@melvin-bot melvin-bot bot added the Overdue label Oct 14, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2022

@AndrewGable, @miljakljajic, @rushatgabhane Eep! 4 days overdue now. Issues have feelings too...

@miljakljajic
Copy link
Contributor

Job posted to Upwork here.

@melvin-bot melvin-bot bot removed the Overdue label Oct 17, 2022
@miljakljajic miljakljajic added Weekly KSv2 and removed Daily KSv2 labels Oct 17, 2022
@rushatgabhane
Copy link
Member

rushatgabhane commented Oct 18, 2022

awaiting @AndrewGable's review for #11588 (comment)

@AndrewGable
Copy link
Contributor

👍

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 18, 2022
@puneetlath puneetlath added the Bug Something is broken. Auto assigns a BugZero manager. label Oct 19, 2022
@Puneet-here
Copy link
Contributor

@rushatgabhane, I am testing the code and capturing the screenshot but not sure what to do about mobile screenshots. This modal is only available for desktop app and web. I have taken the screenshots at mobile browser by changing the code but the mobile app crashes because of the styling here

flex: '0 0 auto',

and I tried using the styles like this

        flexGrow: 0,
        flexShrink: 0,
        flexBasis: 'auto',

It solved the issue but I can't figure out why the modal looks like this
Screenshot 2022-10-22 at 3 01 33 AM

It's not related to the code change for this issue but wanted help for the screenshot (or should I leave the app screenshots since it can't be open at mobile app)

@rushatgabhane
Copy link
Member

@Puneet-here it's okay to not add screenshots then. This feature isn't available on mobile

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 26, 2022
@melvin-bot melvin-bot bot changed the title [$250] Bug: Keyboard shortcut modal doesn't take whole width at the footer reported by @Puneet-here [HOLD for payment 2022-11-02] [$250] Bug: Keyboard shortcut modal doesn't take whole width at the footer reported by @Puneet-here Oct 26, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 26, 2022

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

If no regressions arise, payment will be issued on 2022-11-02. 🎊

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 2, 2022
@miljakljajic
Copy link
Contributor

Thank you for handling this! I have extended hiring offers to both of you @Puneet-here and @rushatgabhane

@miljakljajic
Copy link
Contributor

@Puneet-here & @rushatgabhane have been paid, contracts ended, job post closed. Thank you!

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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants