-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Added Tooltips to the report users' titles. #1632
Added Tooltips to the report users' titles. #1632
Conversation
Let me know if we need the same behaviour for the Report title in the Header of chat as per the sidebar. |
Ready for Review @roryabraham |
Yeah, that would be great to see added |
Would be great to see this added! cc @shawnborton |
Nice, sounds good to me. |
@parasharrajat do you still need some guidance here? Can you show me what it currently looks like? |
@shawnborton the List looks like the below tooltip. |
Ah apologies, I was mostly responding to the comment about "hovering over the ellipsis" - can you show me what you mean by that? |
@shawnborton Look at this one. |
Ah, thanks for clarifying. I think with the ellipsis, we'd just show all of the logins in the tooltip as you are already doing. |
Updated. Thanks. |
@parasharrajat any update on this one? I see there's a merge conflict |
@roryabraham I just resolved it. Thanks. |
I am going on vacation next week so I am removing my requested review. However, I took a look at the PR but since I am not as good as @tgolen or @roryabraham with React Native, I will defer the final review to them. |
Co-authored-by: Rocio Perez <pecanoro@users.noreply.github.com>
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.
Nice, LGTM! Tested it out a bit too and it seems to work well! All yours @tgolen
{props.report && props.report.reportName && ( | ||
<View | ||
style={[ | ||
styles.flex1, |
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.
NAB maybe rather than composing 4 styles into a new one here you could add a new style that composes these four, like flexRowCenterChildren
. Up to you though. I personally think it's better not to compose too many styles inline, because it's equivalent to creating a new style, and we want our JSX to have as little style logic as possible in general.
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.
Hmm. I actually prefer is granular. All four of the classes are generic and it makes sense to create a class if we use all of them together very often. But I prefer tailwind-styled code. Let's see what @tgolen has to say here.
Ok. I tried some way but that doesn't seem to work with a dynamic number of names on the chat title. So the current PR is still valid. |
OK, thanks for the heads up. Let me know when you want me to look at it
again!
…On Fri, Mar 19, 2021 at 10:50 AM Rajat Parashar ***@***.***> wrote:
Please don't merge yet. I am trying some logic that could potentially
remove some logic.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1632 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJMAB2W3UF5WS2XDJWAZSLTEN6D3ANCNFSM4YTLQ2EQ>
.
|
@tgolen . Sorry I updated the old comment. Here is the update #1632 (comment) |
Ah, OK. I'll look at this PR next then. |
@tgolen Updated. Please review. |
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, thank you for those changes!
@pecanoro All you! |
@tgolen She is going on leave #1632 (comment) |
Ah, thanks. I missed that. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
OSBotify is lying! He did deploy this to staging 😠 https://github.com/Expensify/Expensify.cash/runs/2152639657?check_suite_focus=true |
Hi @parasharrajat, unfortunately this PR introduced a bug on mobile web. Tooltips in the left-hand-nav are appearing on screen and persisting after the report is opened: So we need a clever way to make sure that the tooltip isn't opened by taps on touch-screen devices. Any ideas? |
I don't quite understand why we are using a component called This should have been given a more generic name and hopefully we can get it cleaned up? Thanks. |
Good point, thanks for finding that @marcaaron. I'll create a PR |
@roryabraham Please review.
Details
A lot has been going on.
Passing the
participantList
&tooltipText
in options from thecreateOption
method in the OptionsListUtils.js.Changed the Tooltip Code.
Added a new Component
OptionRowTitle
which is used to Show tooltips for Each participant name and...
. It does optional tooltip rendering. For places where we don't need tooltips, it renders the Option title(Chat title).It was very hard to render the tooltips on each user name and keep the ellipsis on the chat title, so I had to use
display: inline
for tooltip containers. and Shift the tooltip horizontally for the names which were overflowing the container.Tooltips are added to the following places.
Fixed Issues
Fixes #1490Tests
Tested On
screen-.2.mp4