Skip to content

Split Toast Storybook examples into independently inspectable scenarios #44509

Closed

Description

@lyzno1

Problem

packages/dify-ui/src/toast/index.stories.tsx exposes only DocsPattern. Its six panels share a module-level manager, so tones and behavior examples cannot be selected independently in the sidebar. Its sole interaction test exercises long-content wrapping.

The description also says the shared viewport matches Base UI's documentation, although the upstream Promise, Undo, Deduplicated, and Varying Heights demos each own their provider.

Proposed change

Split the existing examples into four tone stories and focused stacking, varying-height, action, promise-result, deduplication, update, and long-content stories. Give each mounted example its own manager, deterministic interactions, and isolated Docs previews. Keep the existing Toast public API and Base UI behavior ownership.

Align the Web renderer's name with Toaster by renaming AppToastHost to AppToaster and updating its imports without a compatibility alias.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions