-
Notifications
You must be signed in to change notification settings - Fork 99
[BUGFIX] Table: fix reorder columns button tooltip #2722
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
[BUGFIX] Table: fix reorder columns button tooltip #2722
Conversation
The children component of a <Tooltip> must accept a ref and spread the passed props: https://mui.com/material-ui/react-tooltip/#custom-child-element Fixes the following error in the JS console when editing a Table Panel and opening the "Column Settings" tab: ``` ColumnEditorContainer.tsx:91 Warning: Failed prop type: Invalid prop `children` supplied to `ForwardRef(Tooltip)`. Expected an element that can hold a ref. Did you accidentally use a plain function component for an element instead? For more information see https://mui.com/r/caveat-with-refs-guide at Tooltip (http://localhost:3000/plugins/Table/static/js/async/vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Divider_Divider_-a0c33b.js:14539:97) at ColumnEditorContainer (http://localhost:3000/plugins/Table/static/js/async/__federation_expose_Table.js:1387:11) ``` Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
@AntoineThebaud the CI is failing here because (I think) when the PR is coming from a fork, github-action does not inject any secret (for security matter) |
Perhaps that's a use case that should be shared with the Cuelang team. We cannot import the Cuelang dependencies in a CI/CD as it require a token to get them and when the PR is coming from a fork, the token cannot be used. |
I asked on CUE's slack about this, let's see.. |
This is what they replied: We plan on supporting OIDC Connect in Github Actions, which I think would solve this use case. For now, I'm afraid that people will probably have to provide their own secrets, otherwise there's a clear security risk: anyone contributing to a fork could steal the token because they control the action script. -> I wonder if there is a way to avoid requesting every contributor to set up their own token. Like, could we isolate these tests in a dedicated job workflow/job that would somehow require a maintainer's approval to be triggered? EDIT Other input provided since regarding short-term workaround: An alternative for now, which we use in the main CUE repo, is to use the https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request_target event. |
I have isolated the tests requiring the cuelang dependency manager with the PR #2729. @andreasgerstmayr can you update your PR with |
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.
otherwise, once the CI is green, approved !
done I pressed the merge button :) |
The children component of a <Tooltip> must accept a ref and spread the passed props: https://mui.com/material-ui/react-tooltip/#custom-child-element Fixes the following error in the JS console when editing a Table Panel and opening the "Column Settings" tab: ``` ColumnEditorContainer.tsx:91 Warning: Failed prop type: Invalid prop `children` supplied to `ForwardRef(Tooltip)`. Expected an element that can hold a ref. Did you accidentally use a plain function component for an element instead? For more information see https://mui.com/r/caveat-with-refs-guide at Tooltip (http://localhost:3000/plugins/Table/static/js/async/vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Divider_Divider_-a0c33b.js:14539:97) at ColumnEditorContainer (http://localhost:3000/plugins/Table/static/js/async/__federation_expose_Table.js:1387:11) ``` Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
Description
The children component of a
<Tooltip>
must accept a ref and spread the passed props:https://mui.com/material-ui/react-tooltip/#custom-child-element
Fixes the following error in the JS console when editing a Table Panel and opening the "Column Settings" tab:
Screenshots
no UI changes
Checklist
[<catalog_entry>] <commit message>
naming convention using one of thefollowing
catalog_entry
values:FEATURE
,ENHANCEMENT
,BUGFIX
,BREAKINGCHANGE
,DOC
,IGNORE
.UI Changes
See Storybook
and e2e docs for more details. Common issues
include: