bito-code-review[bot] commented on code in PR #40449:
URL: https://github.com/apache/superset/pull/40449#discussion_r3469835699
##########
superset-frontend/packages/superset-ui-core/src/components/Table/cell-renderers/ActionCell/fixtures.ts:
##########
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-import { action } from 'storybook/actions';
+import { action } from '@storybook/addon-actions';
Review Comment:
<div>
<div id="suggestion">
<div id="issue"><b>Wrong import path for Storybook v10</b></div>
<div id="fix">
The `import` on line 19 uses `@storybook/addon-actions`, which was
deprecated and removed in Storybook v10. Change to `storybook/actions` to match
the correct v10+ import path and the pattern used across 6 other story files in
the codebase.
</div>
<details>
<summary>
<b>Code suggestion</b>
</summary>
<blockquote>Check the AI-generated fix before applying</blockquote>
<div id="code">
```
---
a/superset-frontend/packages/superset-ui-core/src/components/Table/cell-renderers/ActionCell/fixtures.ts
+++
b/superset-frontend/packages/superset-ui-core/src/components/Table/cell-renderers/ActionCell/fixtures.ts
@@ -16,4 +16,4 @@
* under the License.
*/
- import { action } from '@storybook/addon-actions';
+ import { action } from 'storybook/actions';
import { ActionMenuItem } from './index';
```
</div>
</details>
</div>
<small><i>Code Review Run #b6ed0f</i></small>
</div>
---
Should Bito avoid suggestions like this for future reviews? (<a
href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
- [ ] Yes, avoid them
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]