chore: upgrade to storybook 9 (#18983)

This commit is contained in:
ケイラ
2025-08-08 14:36:27 -06:00
committed by GitHub
parent ce935657f6
commit 4f1db8b866
453 changed files with 1009 additions and 1484 deletions
+1 -9
View File
@@ -5,17 +5,9 @@ module.exports = {
addons: [
"@chromatic-com/storybook",
{
name: "@storybook/addon-essentials",
options: {
backgrounds: false,
},
},
"@storybook/addon-docs",
"@storybook/addon-links",
"@storybook/addon-mdx-gfm",
"@storybook/addon-themes",
"@storybook/addon-actions",
"@storybook/addon-interactions",
"storybook-addon-remix-react-router",
],
+2 -2
View File
@@ -9,8 +9,8 @@
* @typedef {import("react").PropsWithChildren} PropsWithChildren
* @typedef {import("react").FC<PropsWithChildren>} FC
*
* @typedef {import("@storybook/react").StoryContext} StoryContext
* @typedef {import("@storybook/react").Preview} Preview
* @typedef {import("@storybook/react-vite").StoryContext} StoryContext
* @typedef {import("@storybook/react-vite").Preview} Preview
*
* @typedef {(Story: FC, Context: StoryContext) => React.JSX.Element} Decorator A
* Storybook decorator function used to inject baseline data dependencies into
+1 -1
View File
@@ -20,7 +20,7 @@ test("setup deployment", async ({ page }) => {
await page.getByLabel(Language.passwordLabel).fill(users.owner.password);
await page.getByTestId("create").click();
await expectUrl(page).toHavePathName("/workspaces");
await expectUrl(page).toHavePathName("/templates");
await page.getByTestId("button-select-template").isVisible();
for (const user of Object.values(users)) {
+10 -16
View File
@@ -14,7 +14,7 @@
"format": "biome format --write .",
"format:check": "biome format .",
"lint": "pnpm run lint:check && pnpm run lint:types && pnpm run lint:circular-deps && knip",
"lint:check": " biome lint --error-on-warnings .",
"lint:check": "biome lint --error-on-warnings .",
"lint:circular-deps": "dpdm --no-tree --no-warning -T ./src/App.tsx",
"lint:knip": "knip",
"lint:fix": "biome lint --error-on-warnings --write . && knip --fix",
@@ -103,7 +103,7 @@
"react-markdown": "9.0.3",
"react-query": "npm:@tanstack/react-query@5.77.0",
"react-resizable-panels": "3.0.3",
"react-router-dom": "6.26.2",
"react-router": "7.8.0",
"react-syntax-highlighter": "15.6.1",
"react-textarea-autosize": "8.5.9",
"react-virtualized-auto-sizer": "1.0.24",
@@ -125,19 +125,13 @@
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@chromatic-com/storybook": "3.2.2",
"@chromatic-com/storybook": "4.0.1",
"@octokit/types": "12.3.0",
"@playwright/test": "1.47.0",
"@storybook/addon-actions": "8.5.2",
"@storybook/addon-essentials": "8.4.6",
"@storybook/addon-interactions": "8.5.3",
"@storybook/addon-links": "8.5.2",
"@storybook/addon-mdx-gfm": "8.5.2",
"@storybook/addon-themes": "8.4.6",
"@storybook/preview-api": "8.5.3",
"@storybook/react": "8.4.6",
"@storybook/react-vite": "8.4.6",
"@storybook/test": "8.4.6",
"@storybook/addon-docs": "9.0.17",
"@storybook/addon-links": "9.0.17",
"@storybook/addon-themes": "9.0.17",
"@storybook/react-vite": "9.0.17",
"@swc/core": "1.3.38",
"@swc/jest": "0.2.37",
"@tailwindcss/typography": "0.5.16",
@@ -182,8 +176,8 @@
"rollup-plugin-visualizer": "5.14.0",
"rxjs": "7.8.1",
"ssh2": "1.16.0",
"storybook": "8.5.3",
"storybook-addon-remix-react-router": "3.1.0",
"storybook": "9.0.17",
"storybook-addon-remix-react-router": "5.0.0",
"tailwindcss": "3.4.17",
"ts-proto": "1.164.0",
"typescript": "5.6.3",
@@ -197,7 +191,7 @@
"semver": "7.6.2"
},
"engines": {
"npm": ">=9.0.0 <10.0.0",
"pnpm": ">=9.0.0 <10.0.0",
"node": ">=18.0.0 <21.0.0"
},
"pnpm": {
+300 -762
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -9,7 +9,7 @@ import type {
import type { Permissions } from "modules/permissions";
import type { QueryKey } from "react-query";
declare module "@storybook/react" {
declare module "@storybook/react-vite" {
type WebSocketEvent =
| { event: "message"; data: string }
| { event: "error" | "close" };
+1 -1
View File
@@ -9,7 +9,7 @@ import {
} from "react";
import { HelmetProvider } from "react-helmet-async";
import { QueryClient, QueryClientProvider } from "react-query";
import { RouterProvider } from "react-router-dom";
import { RouterProvider } from "react-router";
import { GlobalSnackbar } from "./components/GlobalSnackbar/GlobalSnackbar";
import { ThemeProvider } from "./contexts/ThemeProvider";
import { AuthProvider } from "./contexts/auth/AuthProvider";
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Abbr } from "./Abbr";
const meta: Meta<typeof Abbr> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { ActiveUserChart } from "./ActiveUserChart";
const meta: Meta<typeof ActiveUserChart> = {
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "components/Button/Button";
import { Alert } from "./Alert";
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "components/Button/Button";
import { mockApiError } from "testHelpers/entities";
import { ErrorAlert } from "./ErrorAlert";
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Avatar } from "./Avatar";
const meta: Meta<typeof Avatar> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { AvatarCard } from "./AvatarCard";
const meta: Meta<typeof AvatarCard> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { AvatarData } from "./AvatarData";
const meta: Meta<typeof AvatarData> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { AvatarDataSkeleton } from "./AvatarDataSkeleton";
const meta: Meta<typeof AvatarDataSkeleton> = {
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Settings, TriangleAlert } from "lucide-react";
import { Badge } from "./Badge";
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import {
AlphaBadge,
Badges,
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import {
Breadcrumb,
BreadcrumbEllipsis,
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { BuildIcon } from "./BuildIcon";
const meta: Meta<typeof BuildIcon> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { PlusIcon } from "lucide-react";
import { Button } from "./Button";
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Area, AreaChart, CartesianGrid, XAxis, YAxis } from "recharts";
import {
type ChartConfig,
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import React from "react";
import { Checkbox } from "./Checkbox";
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { CodeExample } from "./CodeExample";
const meta: Meta<typeof CodeExample> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "components/Button/Button";
import { ChevronsUpDown } from "lucide-react";
import {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "../Button/Button";
import { CollapsibleSummary } from "./CollapsibleSummary";
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";
import { expect, screen, userEvent, waitFor, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { useState } from "react";
import { expect, screen, userEvent, waitFor, within } from "storybook/test";
import { Combobox } from "./Combobox";
const simpleOptions = ["Go", "Gleam", "Kotlin", "Rust"];
@@ -31,7 +31,9 @@ const advancedOptions = [
const ComboboxWithHooks = ({
options = advancedOptions,
}: { options?: React.ComponentProps<typeof Combobox>["options"] }) => {
}: {
options?: React.ComponentProps<typeof Combobox>["options"];
}) => {
const [value, setValue] = useState("");
const [open, setOpen] = useState(false);
const [inputValue, setInputValue] = useState("");
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { ChooseOne, Cond } from "./ChooseOne";
const meta: Meta<typeof ChooseOne> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { CopyButton } from "./CopyButton";
const meta: Meta<typeof CopyButton> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { CopyableValue } from "./CopyableValue";
const meta: Meta<typeof CopyableValue> = {
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";
import { userEvent, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "components/Button/Button";
import { userEvent, within } from "storybook/test";
import {
Dialog,
DialogContent,
@@ -1,5 +1,5 @@
import { action } from "@storybook/addon-actions";
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { action } from "storybook/actions";
import { ConfirmDialog } from "./ConfirmDialog";
const meta: Meta<typeof ConfirmDialog> = {
@@ -1,7 +1,7 @@
import { action } from "@storybook/addon-actions";
import type { Meta, StoryObj } from "@storybook/react";
import { userEvent } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { within } from "@testing-library/react";
import { action } from "storybook/actions";
import { userEvent } from "storybook/test";
import { DeleteDialog } from "./DeleteDialog";
const meta: Meta<typeof DeleteDialog> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { chromatic } from "testHelpers/chromatic";
import { DropdownArrow } from "./DropdownArrow";
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";
import { userEvent, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "components/Button/Button";
import { userEvent, within } from "storybook/test";
import {
DropdownMenu,
DropdownMenuContent,
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";
import { expect, userEvent, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { useState } from "react";
import { expect, userEvent, within } from "storybook/test";
import { DurationField } from "./DurationField";
const meta: Meta<typeof DurationField> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "components/Button/Button";
import { EmptyState } from "./EmptyState";
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from "@storybook/react";
import { expect, userEvent } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { within } from "@testing-library/react";
import type { ErrorResponse } from "react-router-dom";
import type { ErrorResponse } from "react-router";
import { expect, userEvent } from "storybook/test";
import { GlobalErrorBoundaryInner } from "./GlobalErrorBoundary";
/**
@@ -9,7 +9,7 @@ import {
isRouteErrorResponse,
useLocation,
useRouteError,
} from "react-router-dom";
} from "react-router";
const errorPageTitle = "Something went wrong";
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Expander } from "./Expander";
const meta: Meta<typeof Expander> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { FeatureStageBadge } from "./FeatureStageBadge";
const meta: Meta<typeof FeatureStageBadge> = {
@@ -1,5 +1,5 @@
import Link from "@mui/material/Link";
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { FileUpload } from "./FileUpload";
const meta: Meta<typeof FileUpload> = {
+1 -1
View File
@@ -16,7 +16,7 @@ import { useDebouncedFunction } from "hooks/debounce";
import { ExternalLinkIcon } from "lucide-react";
import { ChevronDownIcon } from "lucide-react";
import { type FC, type ReactNode, useEffect, useRef, useState } from "react";
import type { useSearchParams } from "react-router-dom";
import type { useSearchParams } from "react-router";
type PresetFilter = {
name: string;
@@ -1,8 +1,8 @@
import { action } from "@storybook/addon-actions";
import type { Meta, StoryObj } from "@storybook/react";
import { expect, userEvent, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Avatar } from "components/Avatar/Avatar";
import { useState } from "react";
import { action } from "storybook/actions";
import { expect, userEvent, within } from "storybook/test";
import { withDesktopViewport } from "testHelpers/storybook";
import {
SelectFilter,
+1 -1
View File
@@ -1,4 +1,4 @@
import { action } from "@storybook/addon-actions";
import { action } from "storybook/actions";
import type { UseFilterResult } from "./Filter";
import type { UseFilterMenuResult } from "./menu";
+1 -1
View File
@@ -1,5 +1,5 @@
import TextField from "@mui/material/TextField";
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Form, FormFields, FormSection } from "./Form";
const meta: Meta<typeof Form> = {
@@ -1,5 +1,5 @@
import TextField from "@mui/material/TextField";
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "components/Button/Button";
import { FormFooter } from "components/Form/Form";
import type { FC } from "react";
@@ -1,6 +1,6 @@
import { type Interpolation, type Theme, useTheme } from "@emotion/react";
import type { ComponentProps, FC, HTMLAttributes } from "react";
import { Link, type LinkProps } from "react-router-dom";
import { Link, type LinkProps } from "react-router";
import { TopbarIconButton } from "./Topbar";
export const Sidebar: FC<HTMLAttributes<HTMLDivElement>> = (props) => {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { EnterpriseSnackbar } from "./EnterpriseSnackbar";
const meta: Meta<typeof EnterpriseSnackbar> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import {
HelpTooltip,
HelpTooltipLink,
@@ -1,5 +1,5 @@
import { action } from "@storybook/addon-actions";
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { action } from "storybook/actions";
import { IconField } from "./IconField";
const meta: Meta<typeof IconField> = {
@@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { expect, userEvent, waitFor, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { expect, userEvent, waitFor, within } from "storybook/test";
import { InfoTooltip } from "./InfoTooltip";
const meta = {
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Input } from "./Input";
const meta: Meta<typeof Input> = {
@@ -1,6 +1,6 @@
import Button from "@mui/material/Button";
import TextField from "@mui/material/TextField";
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { InputGroup } from "./InputGroup";
const meta: Meta<typeof InputGroup> = {
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Label } from "./Label";
const meta: Meta<typeof Label> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import dayjs from "dayjs";
import { LastSeen } from "./LastSeen";
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Latency } from "./Latency";
const meta: Meta<typeof Latency> = {
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Link } from "./Link";
const meta: Meta<typeof Link> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Loader } from "./Loader";
const meta: Meta<typeof Loader> = {
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { chromatic } from "testHelpers/chromatic";
import { LogLine, LogLinePrefix } from "./LogLine";
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { chromatic } from "testHelpers/chromatic";
import { MockWorkspaceBuildLogs } from "testHelpers/entities";
import type { Line } from "./LogLine";
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Margins } from "./Margins";
const meta: Meta<typeof Margins> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Markdown } from "./Markdown";
const meta: Meta<typeof Markdown> = {
@@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { expect, userEvent, waitFor, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { expect, userEvent, waitFor, within } from "storybook/test";
import { MockOrganization, MockOrganization2 } from "testHelpers/entities";
import { MultiSelectCombobox } from "./MultiSelectCombobox";
@@ -1,6 +1,6 @@
import { action } from "@storybook/addon-actions";
import type { Meta, StoryObj } from "@storybook/react";
import { userEvent, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { action } from "storybook/actions";
import { userEvent, within } from "storybook/test";
import {
MockOrganization,
MockOrganization2,
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { OverflowY } from "./OverflowY";
const numbers: number[] = [];
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { PageHeader, PageHeaderSubtitle, PageHeaderTitle } from "./PageHeader";
const meta: Meta<typeof PageHeader> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import type {
ComponentProps,
FC,
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { PaginationWidgetBase } from "./PaginationWidgetBase";
const meta: Meta<typeof PaginationWidgetBase> = {
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from "@storybook/react";
import { expect, spyOn, userEvent, waitFor, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { API } from "api/api";
import { useState } from "react";
import { expect, spyOn, userEvent, waitFor, within } from "storybook/test";
import { PasswordField } from "./PasswordField";
const meta: Meta<typeof PasswordField> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Paywall } from "./Paywall";
const meta: Meta<typeof Paywall> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { PopoverPaywall } from "./PopoverPaywall";
const meta: Meta<typeof PopoverPaywall> = {
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { InfoIcon } from "lucide-react";
import { Pill, PillSpinner } from "./Pill";
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";
import { expect, screen, userEvent, waitFor, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "components/Button/Button";
import { expect, screen, userEvent, waitFor, within } from "storybook/test";
import { Popover, PopoverContent, PopoverTrigger } from "./Popover";
const meta: Meta<typeof Popover> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { RadioGroup, RadioGroupItem } from "./RadioGroup";
const meta: Meta<typeof RadioGroup> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import type { TemplateVersionParameter } from "api/typesGenerated";
import { chromatic } from "testHelpers/chromatic";
import { RichParameterInput } from "./RichParameterInput";
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Search, SearchInput } from "./Search";
const meta: Meta<typeof SearchInput> = {
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";
import { userEvent, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { useState } from "react";
import { userEvent, within } from "storybook/test";
import { SearchField } from "./SearchField";
const meta: Meta<typeof SearchField> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import {
Select,
SelectContent,
@@ -1,7 +1,7 @@
import { action } from "@storybook/addon-actions";
import type { Meta, StoryObj } from "@storybook/react";
import { userEvent, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Avatar } from "components/Avatar/Avatar";
import { action } from "storybook/actions";
import { userEvent, within } from "storybook/test";
import { withDesktopViewport } from "testHelpers/storybook";
import {
SelectMenu,
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { docs } from "utils/docs";
import {
SettingsHeader,
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Avatar } from "components/Avatar/Avatar";
import {
CalendarCogIcon,
+1 -1
View File
@@ -3,7 +3,7 @@ import type { CSSObject, Interpolation, Theme } from "@emotion/react";
import { Stack } from "components/Stack/Stack";
import { type ClassName, useClassName } from "hooks/useClassName";
import type { ElementType, FC, ReactNode } from "react";
import { Link, NavLink } from "react-router-dom";
import { Link, NavLink } from "react-router";
import { cn } from "utils/cn";
interface SidebarProps {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import React from "react";
import { Slider } from "./Slider";
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { PlusIcon } from "lucide-react";
import { Spinner } from "./Spinner";
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Stack } from "./Stack";
const meta: Meta<typeof Stack> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { StatusIndicator, StatusIndicatorDot } from "./StatusIndicator";
const meta: Meta<typeof StatusIndicator> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Switch } from "./Switch";
const meta: Meta<typeof Switch> = {
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import {
Table,
TableBody,
@@ -1,7 +1,7 @@
import Table from "@mui/material/Table";
import TableBody from "@mui/material/TableBody";
import TableContainer from "@mui/material/TableContainer";
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { CodeExample } from "components/CodeExample/CodeExample";
import { TableEmpty } from "./TableEmpty";
@@ -1,7 +1,7 @@
import Table from "@mui/material/Table";
import TableBody from "@mui/material/TableBody";
import TableContainer from "@mui/material/TableContainer";
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { TableLoader } from "./TableLoader";
const meta: Meta<typeof TableLoader> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { PaginationStatus, TableToolbar } from "./TableToolbar";
const meta: Meta<typeof TableToolbar> = {
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { TabLink, Tabs, TabsList } from "./Tabs";
const meta: Meta<typeof Tabs> = {
+1 -1
View File
@@ -1,5 +1,5 @@
import { type FC, type HTMLAttributes, createContext, useContext } from "react";
import { Link, type LinkProps } from "react-router-dom";
import { Link, type LinkProps } from "react-router";
import { cn } from "utils/cn";
// Keeping this for now because of a workaround in WorkspaceBUildPageView
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { TagInput } from "./TagInput";
const meta: Meta<typeof TagInput> = {
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";
import { expect, userEvent, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { useState } from "react";
import { expect, userEvent, within } from "storybook/test";
import { Textarea } from "./Textarea";
const meta: Meta<typeof Textarea> = {
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "components/Button/Button";
import {
Tooltip,
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { MockOrganizationMember } from "testHelpers/entities";
import { MemberAutocomplete } from "./UserAutocomplete";
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { MockUserOwner } from "testHelpers/entities";
import { UserAutocomplete } from "./UserAutocomplete";
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Welcome } from "./Welcome";
const meta: Meta<typeof Welcome> = {
@@ -1,6 +1,6 @@
import Button from "@mui/material/Button";
import type { Meta, StoryObj } from "@storybook/react";
import { expect, screen, userEvent, waitFor, within } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { expect, screen, userEvent, waitFor, within } from "storybook/test";
import { Popover, PopoverContent, PopoverTrigger } from "./Popover";
const meta: Meta<typeof Popover> = {

Some files were not shown because too many files have changed in this diff Show More