-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-14] [$250] Extra space shown above next steps when viewing report in the RHP #61218
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
Comments
Triggered auto assignment to @twisterdotcom ( |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
Okay, can set External and make you C+ @ZhenjaHorbach. |
Job added to Upwork: https://www.upwork.com/jobs/~021917684655094235087 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-04-30 21:32:53 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Extra space shown above next steps when viewing report in the RHP What is the root cause of that problem?We render our next step message here App/src/components/MoneyReportHeaderStatusBar.tsx Lines 46 to 48 in ec1dd0c
And we need to make this vertically align What changes do you think we should make in order to solve the problem?We should pass this work on both view new UI (under beta) and previous UI What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.There is a large, unintended vertical space above the “Next Steps” section in the Right Hand Panel (RHP) when viewing a report, which affects the visual layout and user experience. What is the root cause of that problem?The prop What changes do you think we should make in order to solve the problem?We should either remove Snippet: here <View style={[
styles.dFlex,
styles.flexColumn,
// Updated condition: only apply gap if Next Steps is not shown
!shouldShowNextStep && styles.gap3,
styles.pb3,
styles.ph5,
]}>
<View style={[styles.dFlex, styles.w100, styles.flexRow, styles.gap3]}>
{shouldShowSelectedTransactionsButton && shouldUseNarrowLayout && (
<ButtonWithDropdownMenu
onPress={() => null}
options={selectedTransactionsOptions}
customText={translate('workspace.common.selected', {count: selectedTransactionsID.length})}
isSplitButton={false}
shouldAlwaysShowDropdownMenu
wrapperStyle={styles.w100}
/>
)}
</View>
{shouldShowNextStep && <MoneyReportHeaderStatusBar nextStep={optimisticNextStep} />}
{!!statusBarProps && (
<MoneyRequestHeaderStatusBar
icon={statusBarProps.icon}
description={statusBarProps.description}
/>
)}
</View> What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
🚨 Edited by proposal-police: This proposal was edited at 2025-04-30 21:45:04 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?Wrong conditional rendering here App/src/components/MoneyReportHeader.tsx Lines 704 to 706 in ec1dd0c
Currently when either of App/src/components/MoneyReportHeader.tsx Line 703 in ec1dd0c
What changes do you think we should make in order to solve the problem?We should conditionally render the App/src/components/MoneyReportHeader.tsx Lines 704 to 706 in ec1dd0c
{shouldShowSelectedTransactionsButton && shouldUseNarrowLayout && (
<View style={[styles.dFlex, styles.w100, styles.flexRow, styles.gap3]}>
<ButtonWithDropdownMenu
onPress={() => null}
options={selectedTransactionsOptions}
customText={translate('workspace.common.selected', {count: selectedTransactionsID.length})}
isSplitButton={false}
shouldAlwaysShowDropdownMenu
wrapperStyle={styles.w100}
/>
</View>
)} Additionally check the other components of the page and correct the condition in case of similar mistake What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional)NA |
|
🚨 Edited by proposal-police: This proposal was edited at 2025-04-30 22:07:52 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Extra space shown above next steps when viewing report in the RHP What is the root cause of that problem?We are adding a gap of 3 if next step or status bar is shown App/src/components/MoneyReportHeader.tsx Line 347 in 03dfc95
to the parent view that holds next step here App/src/components/MoneyReportHeader.tsx Lines 703 to 723 in 03dfc95
so even if next step is the only item in the flex a gap is creating unnecessary space above next step What changes do you think we should make in order to solve the problem?This App/src/components/MoneyReportHeader.tsx Lines 471 to 474 in 4f8cfd7
but this pr removed those conditions and now the parent view is having an unnecessary gap while it is only having the next step as its flex item.
Alternatively we can set the gap when any two of the three children components of the parent view are displayed (from shouldShowSelectedTransactionsButton, statusBarProps , shouldShowNextStep) but I think the above is better because we will follow the pattern we used to use before the regression was caused by the above pr mentioned. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N / A style bug What alternative solutions did you explore? (Optional) |
Thanks for your proposals ! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I recommend setting the price to $125 due to simplicity of this issue @MonilBhavsar |
@mountiny but I could tell you that identifying the regression and a fix that aligns with the previous behavior was not at all straightforward to come up with my proposal from my perspective. |
Agreed with @FitseTLT |
Hey! I have a PR to fix this one already #61242. I'll close it in favor of the selected proposal here though, since I saw that we have already selected one |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.40-7 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 2025-05-14. 🎊 For reference, here are some details about the assignees on this issue:
|
@ZhenjaHorbach @twisterdotcom @ZhenjaHorbach The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
@twisterdotcom Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Payment Summary:
|
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:
Reproducible in staging?: Needs Reproduction
Reproducible in production?: Needs Reproduction
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: @shawnborton
Slack conversation (hyperlinked to channel name): #Expensify Bugs
Action Performed:
Expected Result:
The spacing above the “Next Steps” section and below the action buttons should match the standard
Actual Result:
There is a visibly large gap above the “Next Steps” section and/or below the buttons,
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Select the officially supported platforms where the issue was reproduced:
Platforms Tested:
On which of our officially supported platforms was this issue tested:Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @twisterdotcomThe text was updated successfully, but these errors were encountered: