[Desktop Navigation] Add a responsive LHB#60024
Conversation
8f6e37c to
074d76e
Compare
|
@Expensify/design @flaviadefaria @mountiny Feel free to run builds and test the new LHB :) I still need to improve some features, but it should be ready to check out the new functionality |
|
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
Siiiiiiiick. It's coming along!
Yeah in Figma I made it 350 basically exactly for the reason of reclaiming some of the space that the LHB is taking up. Also happy to do a base-4 number like 360, 352, 340, etc. No real strong feelings from me. But we should probably avoid making it TOO narrow since we don't want too too too much truncation in the the Inbox LHN. Any thoughts @dubielzyk-expensify? |
|
Agree with not making it too low, but it's probably important to take the Reports view into consideration given there the LHN doesn't need much but the table does, right? Part of me actually wants to go for 340 (or 344 as it's divisible by 8). Second choice is 352px. I agree with Danny's consern, but I think we need to claw back a bit of main area space. |
|
I say we try them out and see how they feel! Down to try the smaller sizes (340 or 344) and widen it from there if needed. |
355e0d6 to
69fb036
Compare
|
@Expensify/design Let me know when the figma designs are updated, then I'll change the sidebar width in code :) |
|
Can you try doing 340px and we'll run a quick test build from there? |
|
Or actually maybe 344px as Jon indicated above :) |
|
Sure, but I have to ask one more thing :) Currently the sidebar width is also used as RHP width, should this value be reduced as well? |
|
I would say no, we should leave the RHP width as-is. So seems like we need a new, separate var here. |
| ); | ||
|
|
||
| // Temporary solution to display LHB | ||
| const shouldWrapBottomContentWithView = shouldUseNarrowLayout; |
There was a problem hiding this comment.
Can you explain why we need it? What happens without this change?
|
@dukenv0307 It's still in progress, it requires some improvements before it's ready for review |
|
@WojtekBoman Thank you, please let me know when it's ready for review. Thanks |
|
@Expensify/design I changed the sidebar width to 344px, feel free to run new builds :) |
|
@Expensify/design As you start testing the new version, please check out the educational tooltips to see if they look good on the new layout 🙏 |
|
Love it, can't wait for this one! |
|
reviewing |
|
@WojtekBoman @shawnborton What do you think about this point? |
Yes this is the intended behavior! |
|
Yup, agree! |
|
Code looks good now |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-04-15.at.23.00.13.movAndroid: mWeb ChromeScreen.Recording.2025-04-15.at.22.58.13.moviOS: NativeScreen.Recording.2025-04-15.at.23.00.03.moviOS: mWeb SafariScreen.Recording.2025-04-15.at.22.57.51.movMacOS: Chrome / SafariScreen.Recording.2025-04-15.at.22.57.16.movMacOS: DesktopScreen.Recording.2025-04-15.at.23.02.12.mov |
mountiny
left a comment
There was a problem hiding this comment.
Thanks, changes look good to me
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.29-0 🚀
|
|
Hi friends! I think this caused #60502 - do you know if there is a design in place for what the debug pop up should look like? not sure how to fix at the moment because I don't know what we're going for. cc @Expensify/design |
|
Hmm, I'm honestly not familiar with that pop up and don't know what it's supposed to look like! Is it something separate from the |
|
DebugTabView apparently |
|
Haha - I bet you're right! I think it should probably just stick to the bottom of the LHN. So basically, same position as it used to be, there just won't be a tab bar below it on desktop. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.1.29-10 🚀
|
|
Oh wow, good catch! I agree with Danny's comment above - let's just slap it to the bottom of the LHN, similar to where it used to be. |
|
Great! @WojtekBoman and team, should I assign you to #60502 to knock out that change? Or should we treat it as a new issue? |
|
Assigned Wojtek there |



Explanation of Change
This PR adds support for LHB display on wide layout. This feature is hidden behind the
leftHandBarbeta.Fixed Issues
$ #59372
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Screen.Recording.2025-04-14.at.17.07.20.mov
Android: mWeb Chrome
Screen.Recording.2025-04-14.at.17.09.30.mov
iOS: Native
Screen.Recording.2025-04-15.at.10.03.52.mov
iOS: mWeb Safari
Screen.Recording.2025-04-15.at.10.08.37.mov
MacOS: Chrome / Safari
Screen.Recording.2025-04-15.at.14.58.00.mov
MacOS: Desktop
Screen.Recording.2025-04-15.at.14.56.33.mov