-
Notifications
You must be signed in to change notification settings - Fork 91
chore(app): Improve Table column header menu positioning and styling #4012
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
c84a17e
to
5f253fe
Compare
96173f4
to
7657231
Compare
155e073
to
67380e2
Compare
67380e2
to
c912d15
Compare
<ItemIcon | ||
style={{marginRight: '8px', marginLeft: 0}} | ||
name={ | ||
option.icon ?? (selected && option.icon !== null ? 'check' : 'blank') |
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 this be NVM I see what youre doing.selected && option.icon ? 'check' : 'blank'
?
Maybe this can be clearer though
const handleOpenChange = useCallback((open: boolean) => { | ||
setMenuOpen(open); | ||
}, []); | ||
|
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.
useCallback
doesn't seem necessary here, have you tested this?
Thanks @onx2 ! I updated the PR to address your comments:
|
Description
JIRA: WB-24222
This PR improves the styling of the column action menu:
a. editing actions (edit cell expr)
b. organization actions (group, sort, pin)
c. column manipulation actions (insert, remove)
I had to bring over
weave-js/src/common/components/WBPopupMenuTrigger.tsx
from wandb/ui (no longer built for app) to update the ordering of the icon and text by passing in an optionRenderer.Design doc used as reference: https://www.notion.so/wandbai/RFC-Query-panels-Table-usability-improvements-Draft-1a4e2f5c7ef380cf8d3fd7c28c51b992?pvs=4
Testing
How was this PR tested?