-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add tooltips to overflow text on streams table #21253
Conversation
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.
So many tips!
A few notes:
- My understanding is we only want the Tooltip if there is overflow, but maybe check in with Nico on that if you think I'm off there.
- I did not see a Tooltip on the cursor and primary key cells.
- I think all of our other Tooltips use a dark variant. I'm not sure if we want dark or light here? No strong feeling.
Left a few other, more specific thoughts, too!
@@ -80,9 +80,6 @@ export const CatalogTreeTableHeader: React.FC = () => { | |||
<HeaderCell size="small"> | |||
<FormattedMessage id="sources.sync" /> | |||
</HeaderCell> | |||
{/* <TextCell> |
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.
Suppose this is fine to remove for now? We do want to have this field once we introduce column selection to the new table (#21058) we want this column. Unless the designs have changed and I'm not up to date.
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 just removed it since it had been sitting around. I can re-add 👍
airbyte-webapp/src/components/connection/CatalogTree/next/CatalogTreeTableRow.tsx
Show resolved
Hide resolved
<Text size="md" className={styles.cellText}> | ||
{stream.stream?.name} | ||
</Text> | ||
</CatalogTreeTableCell> | ||
<CatalogTreeTableCell size="large"> | ||
<CatalogTreeTableCell size="large" withTooltip={disabled}> |
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.
This is one of the main reasons we're introducing the Tooltip -- the sync mode "incremental | deduped + history" always has overflow. We want a Tooltip on 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.
So we want the value of the dropdown as a tooltip here?
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! That was the idea as I understood it.
I thought light looked better, but honestly they're both fine. I'll go w/ dark since that's the default. |
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.
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.
Tested locally and both of the issues from earlier were resolved 🎉
What
Resolves #20450
On the new streams table, fields that may have text that overflows now have a tooltip that shows the full text.
How
Adds a
withTooltip
property to the CatalogTreeTableCell component to enable the tooltip functionality.https://www.loom.com/share/711bed4eb0434808a3f736cb861833ca