feat(card-browser): edge to edge support & code cleanup - #20938
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
b6e5519 to
1815add
Compare
This comment was marked as resolved.
This comment was marked as resolved.
95ed22c to
d126936
Compare
d126936 to
725a33e
Compare
|
I want to fix this for rounded corners and the |
This comment was marked as outdated.
This comment was marked as outdated.
9981ea4 to
15968e5
Compare
This comment was marked as outdated.
This comment was marked as outdated.
15968e5 to
525858c
Compare
ericli3690
left a comment
There was a problem hiding this comment.
Looks awesome, thanks!! Tested on both my phone and tablet and looks good, code looks clean
CI is failing on MacOS only for some reason, I tried re-triggering it and it failed again, looks to be a CI environment link error. It's probably safe for me to hit merge right away but I'll leave it to your discretion.
| * is a side inset (wider than the rounded corner it clears), with the camera cutout on the | ||
| * opposite side. | ||
| */ | ||
| private fun CardBrowser.simulateSideNavigationBar() { |
There was a problem hiding this comment.
nit: there looks to be a lot of repetition between simulateNavigationBar, simulateGestureNavigationBar, and simulateSideNavigationBar that could maybe be extracted into a common function but eh it's probably fine since it's just a test file.
|
I was in the process of fixing up the commits, then went out for the weekend. Let's hold off on the merge for now, it's next on my TO-DO list Thanks so much for the fast review! |
0e570ad to
87ea415
Compare
|
Blocked on I'll initially work on |
Roborazzi test added to catch future regressions Issue 17334 - edge to edge Assisted-by: Claude Opus 4.7 - unit tests
Enable edge-to-edge support * The app bar handles landscape mode (3-button navigation) * The color expands the full width; touchable elements are not underneath the nav * The rows are drawn under the nav in portrait mode * When scrolled to the bottom, the last row is tappable Issue 17334 Assisted-by: Claude Opus 4.7 - unit tests + frame fix Assisted-by: Claude Fable 5
Added at bind time in BrowserMultiColumnAdapter.kt Assisted-by: Claude Opus 4.7 - diagnostic
After edge-to-edge, some interactive elements were hard to use as my Google Pixel 9 Pro had rounded corners * Corner handling is applied, so touchable controls at the bottom of the page are not obscured by the corner radius * Special-case: in landscape mode, the fast scroller does not hug the side if 3-button nav is implemented, so the corner detection is relaxed/removed depending on the corner radius Asserted in CardBrowserInsetsTest; captured in a landscape gesture-navigation screenshot test. Assisted-by: Claude Fable 5
87ea415 to
b93b082
Compare
|
@ericli3690 I've made a few updates, it could do with a second review if you have the time. I'll merge in 24 hours - we've got a lot to get through with edge to edge, and I want to start aggressively tackling this |
ericli3690
left a comment
There was a problem hiding this comment.
All I see are minor changes to CardBrowserScreenshotTest (correct me if I'm wrong) and a rebase, so it looks good to me!! Not sure why macOS tests are failing now, I think I saw you retrigger them and they failed again, so I'll leave the merge to you.
|
Seems like there's unrelated flakiness. We /need/ these changes to get a new release out (edge to edge has become mandatory), so I'll merge to keep things moving. |
Note
Assisted-by: Claude Opus 4.7 - understanding and fix of
windowBackgroundissueAssisted-by: Claude Fable 5 - last commit
Fixes
How Has This Been Tested?
API 24 + API 33 emulators, private branch with Roborazzi
(scrolling to the bottom does not truncate rows)
Checklist