-
Notifications
You must be signed in to change notification settings - Fork 71
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(ui): navigate up/down on the calls page from the peek drawer #2798
Conversation
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=c60b0b63ebc6507d283a486bf9a68620db6e0b02 |
|
||
const getNextRowId = useCallback( | ||
(currentId: string) => { | ||
console.log('getNextRowId', currentId, rowIds); |
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.
dev tracks
@@ -479,6 +481,15 @@ export const CallsTable: FC<{ | |||
} | |||
} | |||
}, [rowIds, peekId]); | |||
const {setRowIds} = useContext(TableRowSelectionContext); | |||
useEffect(() => { |
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 would use const {isPeeking} = useContext(WeaveflowPeekContext);
instead
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.
which returns true if the component is inside a peek drawer
active={showTraceTree ?? false} | ||
onClick={onToggleTraceTree} | ||
/> | ||
<Box |
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.
seems like these should only be present if it is peaking AND there are row ids set in the context. I think these arrows will show up on the primary call page right now
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.
Yup, fixed.
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.
Description
WB-21663
use
shift
+up arrow
orshift
+down arrow
to control the selected call in the calls table.implementation can be extended to the other main page tables, although the rowIds behave slightly differently.
Testing
How was this PR tested?