Fix: Hide Concierge help button on every Search RHP#80994
Fix: Hide Concierge help button on every Search RHP#80994carlosmiceli merged 15 commits intoExpensify:mainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a105211d5e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| <HeaderWithBackButton | ||
| title={translate('search.filtersHeader')} | ||
| shouldDisplayHelpButton={false} |
There was a problem hiding this comment.
Make help button conditional on RHP layout
This forces shouldDisplayHelpButton={false} for the advanced filters header, which removes the Concierge button even when this screen is full‑page on narrow layouts. SearchFiltersBar (used in SearchPageNarrow) navigates to ROUTES.SEARCH_ADVANCED_FILTERS via openAdvancedFilters in src/components/Search/SearchPageHeader/SearchFiltersBar.tsx, so this page is not RHP‑only. If the requirement is to hide the button only in the RHP, this unconditional prop will regress help access on mobile; consider gating it on an “is in RHP / shouldUseNarrowLayout” check instead.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
I think we want to hide the Concierge button on these Search screens in all contexts (wide and narrow layout)
There was a problem hiding this comment.
@JmillsExpensify Curious to know of cases where RHP screen takes full-page on narrow layouts.
Should we show or not show the help button here in such cases?
80994-query-001.mp4
There was a problem hiding this comment.
Confirmed here that even when RHP screen takes full-page on narrow layouts, we should not show the Concierge or Help button.
So, let us ignore codex review comments.
|
@ryntgh We also have RHP under 80994-web-chrome-i_001.mp4 |
JmillsExpensify
left a comment
There was a problem hiding this comment.
I reported this one, so also agree with the product changes here.
|
Only this comment is pending to be addressed. |
|
@rojiphil Do we need to address RHP under |
@ryntgh Yeah... That would be lot of changes as there are quite a lot of RHP components. |
Agreed, I think we can do it that way. I’ll update the PR soon |
|
@rojiphil I've updated the PR, could you please review it again? |
JmillsExpensify
left a comment
There was a problem hiding this comment.
Still looks good to me.
|
For narrow layout versions (mobile), 80994-issue-001.mp4 |
|
Also on narrow window versions, opening individual expense report in RHP keeps showing 80994-issue-002.mp4 |
|
@ryntgh Just left few comments for you. Also, there are conflicts. Please have a look. Thanks |
Agree. Would be good to get a test build when it's ready so we can test further |
|
I also don't feel super strongly, so I slightly prefer search being placed to the left of Concierge. |
|
Yeah, I think I agree with that. |
|
@ryntgh let's swap the locations of those two and then we can run a test build. |
Sure, PR updated 👍 Desktop-.-Mobile-Web.mp4 |
|
Oh yeah I like that placement better. Good call gents! |
|
Latest video looks good. |
|
Yup, same! |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp80994-android-hybrid-001.mp4Android: mWeb Chrome80994-mweb-chrome-002.mp4iOS: HybridApp80994-ios-hybrid-001.mp4iOS: mWeb Safari80994-mweb-safari-002.mp480994-mweb-safari-003.mp4MacOS: Chrome / Safari80994-web-chrome-003.mp480994-web-chrome-002.mp4 |
|
@ryntgh Please merge with the latest main as we have conflicts. |
|
@rojiphil Merged with the latest main and updated the PR description |
rojiphil
left a comment
There was a problem hiding this comment.
Thanks @ryntgh for the updates.
@carlosmiceli Changes LGTM and works well too.
All yours. Thanks.
|
🚧 @carlosmiceli 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! 🧪🧪
|
|
✋ 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/carlosmiceli in version: 9.3.28-0 🚀
|
|
🚀 Deployed to staging by https://github.com/carlosmiceli in version: 9.3.30-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.30-3 🚀
|
|
Hmm am I missing something - I thought we were putting the Concierge icon back in the top right of every top-level mobile page? I don't see it in the latest builds. cc @ryntgh @rojiphil can you please confirm? cc @Expensify/design @JmillsExpensify |
Oh! Just checked and noticed that it works for the mobile web versions but not on the native versions. |
|
Yes, let's address it |
|
I mentioned this in my comment earlier. I thought it was expected based on the original PR 🤔 |
|
Sorry for any confusion. Let's just address it in another PR. |
Explanation of Change
This PR sets the default value of
shouldDisplayHelpButtonto false and explicitly sets it to true only for central pane components to hide the Concierge help button on RHP. This PR also adds aTopBarcomponent to theAccountpage on the mobile layout (InitialSettingsPage) and swaps the positions of the search button and the Concierge help buttonFixed Issues
$ #80956
PROPOSAL: #80956 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
TopBarwith the text "Account" is displayed at the top for mobile viewPR 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-App.mp4
Android: mWeb Chrome
Android-mWeb.mp4
iOS: Native
iOS-App.mp4
iOS: mWeb Safari
iOS-mWeb.mp4
MacOS: Chrome / Safari
MacOS-Chrome.mp4