Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:
When a component is deprecated, it is no longer recommended for use. Though the component will be removed from the codebase and will no longer receive feature updates, we will apply bug fixes to the package as necessary. We will also provide a migration path to a recommended alternative.
Deprecation of a component is typically initiated and communicated by the design team. They will indicate that a component is going to be deprecated and identify reccomended alternatives and proposed language around migrating away from that component's use.
Before starting a deprecation, connect with the Spectrum Web Components team to align on the timing of the deprecation. Make sure downstream users are aware that the component is being deprecated and have a migration path to the recommended alternative. Give downstream consumers time to express any concerns or blockers.
Add a new Announcement to the Spectrum CSS repository to notify the community of the deprecation. Include the deprecation notice and any additional migration details that would be important for consumers. See the template below for an example of what to include in the announcement. Title should follow this format: Deprecation notice: <component name>
.
As of Feb 15, 2024, the @spectrum-css/quickactions has been deprecated. Please use an Action bar to allow users to perform actions on either a single or multiple items at the same time, instead. This component has been removed from the Spectrum CSS monorepo and will no longer receive new features. Bug fixes will be patched on a as-needed basis. If you find a critical bug, please open a bug report. Bug fixes will not longer be supported after the project migrates fully to Spectrum 2 (date TBD). If you have any questions or concerns about this deprecation, please feel free to contribute to the discussion here or reach out to us directly.
Before removing the component from the codebase, we need to flag the component as deprecated and publish those changes to the package registry. This will allow downstream consumers to see that the component is being deprecated and provide them with the deprecation notice and migration path. It will also provide a foundation for removal of the component from the codebase without breaking local references.
git checkout -b deprecate-quickaction
.*.stories.js
files inside the component's folder:
a. Edit the title of any exported stories to be prefixed with the Deprecated
category, i.e., title: "Quick actions"
.
b. Update any local references to point to the package name instead, i.e.,import { Template } from "./template.js";
import { Template } from "@spectrum-css/quickaction/stories/template.js";
.
c. In the parameters section, there are 2 important updates to make: - Add chromatic: { disableSnapshot: true },
to ensure it no longer runs regression tests. - Update the status
type to deprecated
:
parameters: { chromatic: { disableSnapshot: true }, status: { type: "deprecated" } },
**This component is deprecated.**
. This can be done in either the *.stories.js
file or the *.mdx
file, if it exists. Add any additional migration notes that were provided by the design team.git commit -m "chore(quickaction): prepare for deprecation"
.At this point you can choose to either immediate move on to the next steps or give a preset amount of time for feedback and concerns to be raised. If you choose to wait, make sure to communicate the timeline to the Spectrum Web Components team and downstream consumers.
Once the deprecation notice has been communicated and the above steps completed, we can remove the component from the codebase safely without breaking local references.
.storybook/deprecated
, i.e., .storybook/deprecated/quickaction
.*.stories.js
and *.mdx
into the new folder (directly, not nested inside subfolders).components
directory."@spectrum-css/quickaction": "^3.1.1",
.npm deprecate @spectrum-css/quickaction@3.1.1 "This package has been deprecated. Use an action bar to allow users to perform actions on either a single or multiple items at the same time, instead."
.#spectrum-css
channel in Slack with the deprecation notice and any additional migration notes.