Skip to content

Conversation

JonasBa
Copy link
Member

@JonasBa JonasBa commented Sep 16, 2025

First pass at migrating Layering and Elevation to documentation.

@JonasBa JonasBa requested a review from a team as a code owner September 16, 2025 01:13
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Sep 16, 2025
@@ -333,7 +343,7 @@ export function useStoryTree(
}

if (i === parts.length - 1) {
parent.children[name] = new StoryTreeNode(name, type, file);
parent.children[name] = new StoryTreeNode(formatName(name), type, file);
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Node Naming Inconsistency Affects Tree Structure

Applying formatName to StoryTreeNode names at creation changes their internal representation. This creates inconsistency with how nodes are keyed in the tree, breaks special handling for "use" hook files, and universally alters the display of all story names, potentially affecting search.

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

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

We only format the last component, which is the filename, so this is ok.

Copy link

codecov bot commented Sep 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #99560   +/-   ##
=======================================
  Coverage   81.23%   81.23%           
=======================================
  Files        8585     8585           
  Lines      380206   380205    -1     
  Branches    24122    24122           
=======================================
  Hits       308865   308865           
+ Misses      70979    70978    -1     
  Partials      362      362           

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant