-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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(notebooks): make panels focusable #18233
Conversation
This causes the focus behavior to do weird things
}) | ||
|
||
const updatePanelFocus = (focus: boolean): void => { |
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 wrap these in useCallback
indexed on [index]
? i dont think it'll have an immediate difference, it just saves some memory as we're stretching out functional components
@@ -63,7 +64,7 @@ export const NotebookProvider: FC = ({children}) => { | |||
_setPipes(add(pipe)) | |||
_setMeta( | |||
add({ | |||
title: `Notebook_${++GENERATOR_INDEX}`, | |||
title: `Cell_${++GENERATOR_INDEX}`, |
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.
saw sam's comments. 💯
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'm having some flashbacks from that week of auditing re-rendering triggers, but that comment is just nit level if the page seems to be working fine
Closes https://github.com/influxdata/idpe/issues/7381
focus
key toPipeMeta
focus
totrue
focus
tofalse
title
attribute to all the panel buttons for usabilityCell_