Skip to content
Draft
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
6 changes: 1 addition & 5 deletions extensions/ql-vscode/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,15 @@ import type { StorybookConfig } from "@storybook/react-vite";
const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-docs",
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-a11y",
"./vscode-theme-addon/preset.ts",
],
framework: {
name: "@storybook/react-vite",
options: {},
},
docs: {
autodocs: "tag",
},
};

export default config;
4 changes: 2 additions & 2 deletions extensions/ql-vscode/.storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { addons } from "@storybook/manager-api";
import { themes } from "@storybook/theming";
import { addons } from "storybook/manager-api";
import { themes } from "storybook/theming";

addons.setConfig({
theme: themes.dark,
Expand Down
5 changes: 3 additions & 2 deletions extensions/ql-vscode/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Preview } from "@storybook/react";
import { themes } from "@storybook/theming";
import { action } from "@storybook/addon-actions";
import { themes } from "storybook/theming";
import { action } from "storybook/actions";

// Allow all stories/components to use Codicons
import "@vscode/codicons/dist/codicon.css";
Expand All @@ -20,6 +20,7 @@ window.acquireVsCodeApi = () => ({

// https://storybook.js.org/docs/react/configure/overview#configure-story-rendering
const preview: Preview = {
tags: ["autodocs"],
parameters: {
// All props starting with `on` will automatically receive an action as a prop
actions: { argTypesRegex: "^on[A-Z].*" },
Expand Down
2 changes: 1 addition & 1 deletion extensions/ql-vscode/.storybook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"target": "es2021",
"outDir": "out",
"lib": ["ES2021", "dom"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import * as React from "react";
import type { FunctionComponent } from "react";
import { useCallback } from "react";

import { useGlobals } from "@storybook/manager-api";
import { useGlobals } from "storybook/manager-api";
import {
IconButton,
TooltipLinkList,
Comment on lines 6 to 8
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

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

The import for components should use storybook/internal/components instead of @storybook/components to be consistent with Storybook 10's consolidated package structure. The PR description mentions this update was made in commit ef85f1d, but this file still imports from the old v8 path.

See below for a potential fix:

} from "storybook/internal/components";

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.

Fixed in commit d7cfd8c. Updated the import to use storybook/internal/components.

WithTooltip,
} from "@storybook/components";
} from "storybook/internal/components";
import { DashboardIcon } from "@storybook/icons";

import { themeNames, VSCodeTheme } from "./theme";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { addons } from "@storybook/manager-api";
import { addons } from "storybook/manager-api";
import { Addon_TypesEnum } from "storybook/internal/types";
import { ThemeSelector } from "./ThemeSelector";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { dirname, join } from "path";
import { fileURLToPath } from "url";

const __dirname = dirname(fileURLToPath(import.meta.url));

export function previewAnnotations(entry = []) {
return [...entry, require.resolve("./preview.ts")];
return [...entry, join(__dirname, "preview.ts")];
}

export function managerEntries(entry = []) {
return [...entry, require.resolve("./manager.tsx")];
return [...entry, join(__dirname, "manager.tsx")];
}
Loading