Skip to content

Conversation

@JonasBa
Copy link
Member

@JonasBa JonasBa commented Oct 25, 2025

We need to get rid of Chonk layer before this can be merged, as the component names here are largely wrong due to that layer, but it will be possible to directly copy import path from the UI in the future once component names are correct

CleanShot 2025-10-25 at 10 46 53@2x

@JonasBa JonasBa requested a review from a team as a code owner October 25, 2025 17:47
@JonasBa JonasBa marked this pull request as draft October 25, 2025 17:47
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 25, 2025
importPath = moduleName;
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Import Statement Fails for Split Exports

The getImportStatement function may fail to collect all related exports when the component and its Props type are in different modules. The if (importPath) break; on line 816 exits the outer loop after finding the first module with a match, preventing collection of ${componentName}Props if it exists in a different module than componentName. This will result in incomplete import statements when exports are spread across multiple modules.

Fix in Cursor Fix in Web

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.

2 participants