Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: remove redundant title prefixes and use design system wrappers in stories\n\n- Remove redundant Builder/ prefix from 9 builder story titles (titlePrefix already adds it)\n- Remove redundant Design System/ prefix from 6 design-system story titles\n- Replace raw <div style={}> with Box/Flex and theme tokens in dashboard card/thumbnail stories
Oleg Isonen8292755fb6df
diff --git a/apps/builder/app/builder/features/style-panel/sections/layout/shared/alignment-ui.stories.tsx b/apps/builder/app/builder/features/style-panel/sections/layout/shared/alignment-ui.stories.tsxindex 72184222cf..9a36814640 100644--- a/apps/builder/app/builder/features/style-panel/sections/layout/shared/alignment-ui.stories.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/layout/shared/alignment-ui.stories.tsx@@ -2,7 +2,7 @@ import { Box, Flex, theme } from "@webstudio-is/design-system";import { AlignmentUi } from "./alignment-ui";export default {- title: "Builder/Style Panel/Layout/Alignment UI",+ title: "Style Panel/Layout/Alignment UI",component: AlignmentUi,};diff --git a/apps/builder/app/builder/features/style-panel/shared/show-more.stories.tsx b/apps/builder/app/builder/features/style-panel/shared/show-more.stories.tsxindex 80e52f5775..6aa55634d4 100644--- a/apps/builder/app/builder/features/style-panel/shared/show-more.stories.tsx+++ b/apps/builder/app/builder/features/style-panel/shared/show-more.stories.tsx@@ -2,7 +2,7 @@ import { Text } from "@webstudio-is/design-system";import { ShowMore } from "./show-more";export default {- title: "Builder/Style Panel/Show More",+ title: "Style Panel/Show More",component: ShowMore,};diff --git a/apps/builder/app/builder/features/sync-status.stories.tsx b/apps/builder/app/builder/features/sync-status.stories.tsxindex a57d40a77b..3d5e5d97ab 100644--- a/apps/builder/app/builder/features/sync-status.stories.tsx+++ b/apps/builder/app/builder/features/sync-status.stories.tsx@@ -3,7 +3,7 @@ import { $queueStatus } from "~/shared/sync/project-queue";import { SyncStatus } from "./sync-status";export default {- title: "Builder/Sync Status",+ title: "Sync Status",component: SyncStatus,};diff --git a/apps/builder/app/builder/features/view-mode.stories.tsx b/apps/builder/app/builder/features/view-mode.stories.tsxindex e3220bb716..46d981799d 100644--- a/apps/builder/app/builder/features/view-mode.stories.tsx+++ b/apps/builder/app/builder/features/view-mode.stories.tsx@@ -3,7 +3,7 @@ import { $authPermit } from "~/shared/nano-states";import { ViewMode } from "./view-mode";export default {- title: "Builder/View Mode",+ title: "View Mode",component: ViewMode,};diff --git a/apps/builder/app/builder/shared/topbar-layout.stories.tsx b/apps/builder/app/builder/shared/topbar-layout.stories.tsxindex 37be65c619..e41cc9e974 100644--- a/apps/builder/app/builder/shared/topbar-layout.stories.tsx+++ b/apps/builder/app/builder/shared/topbar-layout.stories.tsx@@ -17,7 +17,7 @@ import {import { TopbarLayout } from "./topbar-layout";export default {- title: "Builder/Topbar Layout",+ title: "Topbar Layout",component: TopbarLayout,};diff --git a/apps/builder/app/dashboard/shared/card.stories.tsx b/apps/builder/app/dashboard/shared/card.stories.tsxindex c9fba8d25a..6852bcfa9b 100644--- a/apps/builder/app/dashboard/shared/card.stories.tsx+++ b/apps/builder/app/dashboard/shared/card.stories.tsx@@ -1,13 +1,13 @@-import { Text, theme } from "@webstudio-is/design-system";+import { Box, Flex, Text, theme } from "@webstudio-is/design-system";import { Card, CardContent, CardFooter } from "./card";export default {- title: "Builder/Dashboard/Card",+ title: "Dashboard/Card",component: Card,};export const Basic = () => (- <div style={{ width: 280 }}>+ <Box css={{ width: theme.spacing[30] }}><Card><CardContentcss={{ background: theme.colors.brandBackgroundProjectCardFront }}@@ -16,11 +16,11 @@ export const Basic = () => (<Text truncate>My project</Text></CardFooter></Card>- </div>+ </Box>);export const Selected = () => (- <div style={{ width: 280 }}>+ <Box css={{ width: theme.spacing[30] }}><Card aria-selected={true}><CardContentcss={{ background: theme.colors.brandBackgroundProjectCardFront }}@@ -29,13 +29,13 @@ export const Selected = () => (<Text truncate>Selected project</Text></CardFooter></Card>- </div>+ </Box>);export const Multiple = () => (- <div style={{ display: "flex", gap: 16, flexWrap: "wrap" }}>+ <Flex gap="3" wrap="wrap">{["Project Alpha", "My Website", "Landing Page"].map((title) => (- <div key={title} style={{ width: 280 }}>+ <Box key={title} css={{ width: theme.spacing[30] }}><Card><CardContentcss={{ background: theme.colors.brandBackgroundProjectCardFront }}@@ -44,7 +44,7 @@ export const Multiple = () => (<Text truncate>{title}</Text></CardFooter></Card>- </div>+ </Box>))}- </div>+ </Flex>);diff --git a/apps/builder/app/dashboard/shared/thumbnail.stories.tsx b/apps/builder/app/dashboard/shared/thumbnail.stories.tsxindex e8a0f0e899..ad08d63050 100644--- a/apps/builder/app/dashboard/shared/thumbnail.stories.tsx+++ b/apps/builder/app/dashboard/shared/thumbnail.stories.tsx@@ -1,50 +1,39 @@+import { Box, theme } from "@webstudio-is/design-system";import { ThumbnailWithAbbr, ThumbnailLinkWithAbbr } from "./thumbnail";export default {- title: "Builder/Dashboard/Thumbnail",+ title: "Dashboard/Thumbnail",};-export const Abbreviation = () => (- <div- style={{- width: 280,+const ThumbnailWrapper = ({ children }: { children: React.ReactNode }) => (+ <Box+ css={{+ width: theme.spacing[30],aspectRatio: "1.91/1",display: "flex",alignItems: "center",justifyContent: "center",- background: "var(--ws-colors-brand-background-project-card-front)",+ background: theme.colors.brandBackgroundProjectCardFront,}}>+ {children}+ </Box>+);++export const Abbreviation = () => (+ <ThumbnailWrapper><ThumbnailWithAbbr title="My Next Project" onClick={() => {}} />- </div>+ </ThumbnailWrapper>);export const AbbreviationLink = () => (- <div- style={{- width: 280,- aspectRatio: "1.91/1",- display: "flex",- alignItems: "center",- justifyContent: "center",- background: "var(--ws-colors-brand-background-project-card-front)",- }}- >+ <ThumbnailWrapper><ThumbnailLinkWithAbbr title="Landing Page" to="#" />- </div>+ </ThumbnailWrapper>);export const SingleWord = () => (- <div- style={{- width: 280,- aspectRatio: "1.91/1",- display: "flex",- alignItems: "center",- justifyContent: "center",- background: "var(--ws-colors-brand-background-project-card-front)",- }}- >+ <ThumbnailWrapper><ThumbnailWithAbbr title="Portfolio" onClick={() => {}} />- </div>+ </ThumbnailWrapper>);diff --git a/apps/builder/app/shared/copy-to-clipboard.stories.tsx b/apps/builder/app/shared/copy-to-clipboard.stories.tsxindex 3ab6e220c7..1837d74827 100644--- a/apps/builder/app/shared/copy-to-clipboard.stories.tsx+++ b/apps/builder/app/shared/copy-to-clipboard.stories.tsx@@ -2,7 +2,7 @@ import { Button } from "@webstudio-is/design-system";import { CopyToClipboard } from "./copy-to-clipboard";export default {- title: "Builder/Copy To Clipboard",+ title: "Copy To Clipboard",component: CopyToClipboard,};diff --git a/apps/builder/app/shared/error/error-message.stories.tsx b/apps/builder/app/shared/error/error-message.stories.tsxindex fccf693c3f..26dbf7c145 100644--- a/apps/builder/app/shared/error/error-message.stories.tsx+++ b/apps/builder/app/shared/error/error-message.stories.tsx@@ -1,7 +1,7 @@import { ErrorMessage } from "./error-message.client";export default {- title: "Builder/Error Message",+ title: "Error Message",component: ErrorMessage,};diff --git a/packages/design-system/src/components/avatar.stories.tsx b/packages/design-system/src/components/avatar.stories.tsxindex 8be81b799f..8c83dfd58e 100644--- a/packages/design-system/src/components/avatar.stories.tsx+++ b/packages/design-system/src/components/avatar.stories.tsx@@ -2,7 +2,7 @@ import { Flex } from "./flex";import { Avatar } from "./avatar";export default {- title: "Design System/Avatar",+ title: "Avatar",component: Avatar,};diff --git a/packages/design-system/src/components/card.stories.tsx b/packages/design-system/src/components/card.stories.tsxindex ba8f5bf8b5..a6e74327e3 100644--- a/packages/design-system/src/components/card.stories.tsx+++ b/packages/design-system/src/components/card.stories.tsx@@ -2,7 +2,7 @@ import { Text } from "./text";import { Card } from "./card";export default {- title: "Design System/Card",+ title: "Card",component: Card,};diff --git a/packages/design-system/src/components/dropdown-menu.stories.tsx b/packages/design-system/src/components/dropdown-menu.stories.tsxindex 411756b607..5e63000357 100644--- a/packages/design-system/src/components/dropdown-menu.stories.tsx+++ b/packages/design-system/src/components/dropdown-menu.stories.tsx@@ -11,7 +11,7 @@ import {} from "./dropdown-menu";export default {- title: "Design System/Dropdown Menu",+ title: "Dropdown Menu",};export const Basic = () => {diff --git a/packages/design-system/src/components/primitives/small-button.stories.tsx b/packages/design-system/src/components/primitives/small-button.stories.tsxindex 7ab9321028..20e986b56b 100644--- a/packages/design-system/src/components/primitives/small-button.stories.tsx+++ b/packages/design-system/src/components/primitives/small-button.stories.tsx@@ -3,7 +3,7 @@ import { XSmallIcon, TrashIcon, PlusIcon } from "@webstudio-is/icons";import { SmallButton } from "./small-button";export default {- title: "Design System/Primitives/Small Button",+ title: "Primitives/Small Button",component: SmallButton,};diff --git a/packages/design-system/src/components/pro-badge.stories.tsx b/packages/design-system/src/components/pro-badge.stories.tsxindex 4489469b15..9805d2b8fb 100644--- a/packages/design-system/src/components/pro-badge.stories.tsx+++ b/packages/design-system/src/components/pro-badge.stories.tsx@@ -2,7 +2,7 @@ import { Flex } from "./flex";import { ProBadge } from "./pro-badge";export default {- title: "Design System/ProBadge",+ title: "ProBadge",component: ProBadge,};diff --git a/packages/design-system/src/components/progress.stories.tsx b/packages/design-system/src/components/progress.stories.tsxindex 0f3fbc3d75..239e749a58 100644--- a/packages/design-system/src/components/progress.stories.tsx+++ b/packages/design-system/src/components/progress.stories.tsx@@ -4,7 +4,7 @@ import { Button } from "./button";import { Progress } from "./progress";export default {- title: "Design System/Progress",+ title: "Progress",component: Progress,};