-
Notifications
You must be signed in to change notification settings - Fork 126
Show the related activity events on hover/click in timeline #2790
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
andrewzamojc
left a comment
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.
Code looks pretty good to me! I'll try it shortly.
| tr[data-testid='event-summary-row'].active:hover { | ||
| @apply border-l-4 border-slate-600 bg-slate-300; | ||
| } |
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.
Suggestion: Any reason not to do this with tailwind? Instead of conditionally applying the .active class and styling it here, you could probably modify you're first class entry
class={[
// existing
'hover:cursor-pointer',
// new
hasRelatedActivities(group, hoveredEventId) && 'bg-slate-800 hover:bg-slate-300 etc'
]}
or something like that.
| /> | ||
| {:else} | ||
| <EventSummaryRow | ||
| bind:hoveredEventId |
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.
Comment: Pretty slick solution.
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.
Works great! LGTM pending the light mode comment from Alex.
|
Looking awesome! Couple of tiny little things: I would have all rows be the interactive bg on hover, it's a little confusing when they are different colors depending on what the row is (workflow task doesn't have the interactive bg for example) On light mode, let's make the event id white text on row hover. all the other text is white on hover except that. RowHighlighting.mov |
…-hover for better contrast and consistency on hover


This is the first step in adding highlighting related activities in the event timeline/summary row.
when hovering on an activity event row, a user can see a visual indicator on the related event rows


Next steps: