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

Chat - "Pay" button is not completely fitted in request preview #29651

Closed
2 of 6 tasks
kbecciv opened this issue Oct 16, 2023 · 5 comments
Closed
2 of 6 tasks

Chat - "Pay" button is not completely fitted in request preview #29651

kbecciv opened this issue Oct 16, 2023 · 5 comments
Assignees
Labels
DeployBlockerCash This issue or pull request should block deployment Engineering Hourly 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?: n
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: @ishpaul777
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697387154663989

Action Performed:

  1. Request money from a workspace chat.
  2. Navigate to workspace chat.

Expected Result:

"Pay" button is fitted in the preview completely and no empty space on right

Actual Result:

"Pay" button is fitted in the preview completely and there is empty space.

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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

Screenshot 2023-10-15 at 9 56 20 PM

Recording.5004.mp4
MacOS: Desktop

Screenshot 2023-10-15 at 10 18 48 PM

View all open jobs on GitHub

@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Oct 16, 2023
@OSBotify
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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

@hungvu193
Copy link
Contributor

hungvu193 commented Oct 16, 2023

Proposal

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

"Pay" button is not completely fitted in request preview

What is the root cause of that problem?

It's a regression from this PR: #29431
Where we tried to set the maxWidth of MoneyRequestPreview to variables.reportPreviewMaxWidth (302px) while we also used it for our SettlementButton in ReportPreview which had the width of 375px

App/src/styles/styles.ts

Lines 2635 to 2645 in 0e64161

requestPreviewBox: {
marginTop: 12,
maxWidth: variables.reportPreviewMaxWidth,
},
moneyRequestPreviewBox: {
backgroundColor: theme.cardBG,
borderRadius: variables.componentBorderRadiusLarge,
maxWidth: variables.reportPreviewMaxWidth,
width: '100%',
},

style={[styles.requestPreviewBox]}

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

I'm not sure if we also want to limit the width of ReportPreview to 302px like MoneyRequestPreview but incase that's true, we also need to apply the maxWidth: variables.reportPreviewMaxWidth to our ReportPreview container View.

Otherwise, we should create a new style with the old maxWidth (maxWidth: variables.sideBarWidth) for our SettlementButton in ReportPreview.

What alternative solutions did you explore? (Optional)

N/A

@hungvu193
Copy link
Contributor

oh it's dupe of this one: #29639

@hayata-suenaga
Copy link
Contributor

nice thank you for letting us know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DeployBlockerCash This issue or pull request should block deployment Engineering Hourly KSv2
Projects
None yet
Development

No branches or pull requests

4 participants