Repository navigation
Keep last report row border to avoid FlashList overlap - #102426
arosiclair merged 1 commit into
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@bernhardoj Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
| style={[ | ||
| styles.transactionListItemStyle, | ||
| !shouldUseNarrowLayout | ||
| ? [StyleUtils.getSearchTableRowPressableStyle(false, isSelected), isLastItem && styles.tableBottomRadius, lastRowBorderStyle] |
There was a problem hiding this comment.
Why do we add isLastItem && styles.tableBottomRadius here?
getSearchTableRowPressableStyle already has that.
Line 1970 in 4a21ed6
There was a problem hiding this comment.
Oh wait, I just realized we now pass false to getSearchTableRowPressableStyle.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb Chromeandroid.mweb.mp4iOS: HybridAppios.mp4iOS: mWeb Safariios.mweb.mp4MacOS: Chrome / Safariweb.mp4 |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #101328 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
🚧 arosiclair has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
This comment has been minimized.
This comment has been minimized.
|
🚧 arosiclair has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 9.4.95-0 🚀
|
|
No help site changes are needed for this PR, so I did not create a docs PR. This PR only fixes how row dividers render in the expense report list. It keeps the last row's bottom border (made transparent) so a duplicated expense added below it still shows a divider. It does not change any feature, setting, label, button, or workflow. The help articles under What I checked
|
|
Confirming QA pass here |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.95-4 🚀
|
Explanation of Change
Fixed Issues
$ #101328
PROPOSAL:
Tests
Main repro
Variations
5. Repeat the main repro with grouping off.
6. Repeat it with Date descending, so the duplicate lands at the top or middle rather than the end.
7. Repeat it in narrow layout (mobile web or a narrow window).
8. Repeat it while offline. The duplicate should show as pending, still with correct dividers.
Last-row regressions
9. On the last row, check that the bottom corners are still rounded and there's no visible line or gap under it.
10. Select the last row with its checkbox. It should show no bottom border, while the other selected rows show the selected border colour.
11. Delete the last expense. The new last row should lose its divider and get rounded corners.
12. Check both light and dark themes.
Unaffected areas
13. Open a Search expenses list and confirm the rows and last-row border look the same as on
main, since this change doesn't touch Search.Offline tests
QA Steps
Same as tests
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
android_mWeb.mp4
iOS: Native
ios_hybrid.mp4
iOS: mWeb Safari
ios_mWeb.mp4
MacOS: Chrome / Safari
web_chrome.mp4