codeant-ai-for-open-source[bot] commented on PR #37771:
URL: https://github.com/apache/superset/pull/37771#issuecomment-3863857249
## **Sequence Diagram**
This PR removes the standalone demo package and co-locates Storybook stories
with their source, updating Storybook globs, webpack alias, and TypeScript
config so the unified Storybook build discovers stories and resolves shared
utilities.
```mermaid
sequenceDiagram
participant Dev as Developer (PR)
participant Repo as Repository (files)
participant StorybookCfg as .storybook (main.js, shared/)
participant TS as tsconfig & Webpack
participant Build as build-storybook / CI
Dev->>Repo: Remove packages/superset-ui-demo and move stories into
plugins/*/src/stories and packages/*/src/*/stories
Dev->>StorybookCfg: Update story globs and add .storybook/shared +
@storybook-shared alias
Dev->>TS: Add @storybook-shared path mapping and exclude story files
from production TypeScript checking
Build->>StorybookCfg: Run build-storybook (now picks up co-located
stories)
StorybookCfg->>TS: Resolve imports via @storybook-shared alias
Build-->>Dev: 200 OK (storybook build completes and stories discoverable)
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
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]