-
Notifications
You must be signed in to change notification settings - Fork 227
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
feat: top reader in user short info #3748
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
d2ad478
to
0cd48a8
Compare
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.
Minor comment on abstracting it :)
{topReader && ( | ||
<> | ||
<Separator /> | ||
<SimpleTooltip |
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.
Why do we tooltip here and not on the other one?
Maybe we can abstract into common component rather?
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.
Mostly because UserShortInfo
is used in the user lists, where that row already has a tooltip, so adding a second tooltip doesn't really work well 😬
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.
I see, I see :) no worries.
We could do generic component and make tooltip optional, wdyt?
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.
Yeah, I can do that :)
{transformUsername ? transformUsername(user) : `@${username}`} | ||
</TruncateText> | ||
|
||
{topReader && ( |
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.
Re-used again, so component might be good
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.
Refactored
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.
Didn't we have many of these changes already in some PRs?
8d7342e
to
6febe5d
Compare
Co-authored-by: Chris Bongers <[email protected]>
{topReader && ( | ||
<> | ||
<Separator /> | ||
<TopReaderIn topReader={topReader} tooltip /> |
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.
We might have to truncate this whole row? Probably noticeable on mobile devices.
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.
Can you add these comments to #3739?
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.
Apologies, I just got back to my GH emails 🙈
I will check if this hasn't been resolved.
<Separator /> | ||
<TopReaderIn topReader={author.topReader} /> |
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.
Same here, we should maybe truncate it.
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.
Can you add these comments to #3739?
Changes
Depends on dailydotdev/daily-api#2382
Events
Did you introduce any new tracking events?
Experiment
Did you introduce any new experiments?
Manual Testing
Caution
Please make sure existing components are not breaking/affected by this PR
AS-670
Preview domain
https://as-670-top-reader-user-info.preview.app.daily.dev
Preview inline in comment
https://as-670-top-reader-user-info.preview.app.daily.dev/posts/dream-machine--7agaxxtvx