Skip to content

Conversation

@nineteen88
Copy link
Contributor

Proposed behaviour

  • update storybook and all dependencies to use v9
  • change the way we hide stories to the documented method as per Storybook docs

Current behaviour

  • update is currently on v8

Checklist

  • Commits follow our style guide
  • Storybook added or updated if required
  • Related docs have been updated if required

QA

  • Tested in provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

TooltipLinkList,
TooltipLinkListLink,
} from "@storybook/components";
} from "storybook/internal/components";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: the migration docs indicate anything moved to internal might be deprecated in v10, is this the right package to use here and if we have to do we have a ticket/plan for migrating off it asap?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is within our addon (version-picker) and the migration docs also mention:

"Addon authors may continue to use the internal packages, there is currently not yet any replacement."

I might create a ticket to keep an eye on it essentially, but not sure there's much that can be done right now other that rewrite all these components and make them internal for our Storybook only?

Copy link
Contributor

@Parsium Parsium Jun 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: what do you think about adding a comment briefing explaining this and/or linking to the ticket once its raised?

Might be worth being clear Storybook only recommend addon authors use this API and it shouldn't be used elsewhere.

import { ADDON_ID, TOOL_ID } from "./version-picker/constants";
import { VersionPicker } from "./version-picker";
import { API_PreparedIndexEntry, API_StatusObject } from "@storybook/types";
import { API_PreparedIndexEntry } from "storybook/internal/types";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: is this still needed? If it is, is it the appropriate type to use given that it's now internal?

@nineteen88 nineteen88 self-assigned this Jun 9, 2025
@nineteen88 nineteen88 force-pushed the FE-7277 branch 2 times, most recently from db4acba to 79d67fa Compare June 9, 2025 14:38
edleeks87
edleeks87 previously approved these changes Jun 10, 2025
@Parsium Parsium self-requested a review June 11, 2025 07:53
Parsium
Parsium previously approved these changes Jun 11, 2025
- change the way we hide stories to the documented method as per Storybook docs
@nineteen88 nineteen88 dismissed stale reviews from Parsium and edleeks87 via 9976de6 July 10, 2025 10:53
@nineteen88 nineteen88 force-pushed the FE-7277 branch 2 times, most recently from 9976de6 to 6a5f8c6 Compare July 10, 2025 12:35
@nineteen88
Copy link
Contributor Author

Blocked until this is resolved storybookjs/storybook#32007

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

Development

Successfully merging this pull request may close these issues.

3 participants