Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@github/markdownlint-github": "^0.8.0",
"@github/mini-throttle": "2.1.1",
"@github/prettier-config": "0.0.6",
"@github-ui/storybook-addon-performance-panel": "0.1.2",
"@mdx-js/react": "1.6.22",
"@playwright/test": "^1.56.1",
"@prettier/sync": "0.5.5",
Expand Down
1 change: 1 addition & 0 deletions packages/react/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const config: StorybookConfig = {
getAbsolutePath('@storybook/addon-a11y'),
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-docs'),
'@github-ui/storybook-addon-performance-panel',
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addon is not using the getAbsolutePath() helper function like the other Storybook addons on lines 20-22. This is inconsistent with the established pattern in this configuration file. Consider wrapping it with getAbsolutePath() for consistency.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getAbolute seems to fail fo rhtis - not sure why - are they needed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the reason is that storybook looks for manager.js or preview.js or preset.js at the package root (https://github.com/storybookjs/storybook/blob/main/code/core/src/common/presets.ts#L81)

If the storybook-addon-performance-panel re-exports one of them at the package root, getAbsolutePath() would work. But I think using just '@github-ui/storybook-addon-performance-panel' should be fine.

],

framework: {
Expand Down
Loading