-
Notifications
You must be signed in to change notification settings - Fork 3k
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
enable tooltip for group title #40528
Conversation
src/pages/home/HeaderView.tsx
Outdated
@@ -202,7 +202,7 @@ function HeaderView({report, personalDetails, parentReport, parentReportAction, | |||
const brickRoadIndicator = ReportUtils.hasReportNameError(report) ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : ''; | |||
const shouldShowBorderBottom = !isTaskReport || !isSmallScreenWidth; | |||
const shouldDisableDetailPage = ReportUtils.shouldDisableDetailPage(report); | |||
|
|||
const shouldUseGroupTitle = report?.reportName !== ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const shouldUseGroupTitle = report?.reportName !== ''; | |
const shouldUseGroupTitle = isGroupChat && !!report?.reportName; |
- Limit this to group chat
- If the reportName is
undefined
we should not use full title (checking for truthy is safer than checking for empty string)
While at it, I found a minor bug that we should fix. In if (values[INPUT_IDS.NEW_CHAT_NAME] !== currentChatName) {
...
} The bug:
|
Do same ^ with |
@s77rt Hey, I've made the changes, and the code is functioning well. Could you please test the code again? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb Safari |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for the fix! And great catch on the minor bug @s77rt 🙇
✋ 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/marcaaron in version: 1.4.65-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.65-5 🚀
|
Details
Fixed Issues
$ #40457
PROPOSAL: #40457 (comment)
Tests
Now,
click on the header,
navigate to 'Settings' and select 'Name'.
Change the name and verify that the header reflects the updated name.
Hover over the header to ensure that the tooltip is not visible.
Verify that no errors appear in the JS console
Offline tests
Now,
QA Steps
Now,
click on the header,
navigate to 'Settings' and select 'Name'.
Change the name and verify that the header reflects the updated name.
Hover over the header to ensure that the tooltip is not visible.
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-04-19.at.7.27.35.AM.mov
MacOS: Desktop
Screen.Recording.2024-04-19.at.7.38.09.AM.mov