Skip to content

Commit 0f1123f

Browse files
fix(webapp): regen openapi-ts client + drop lodash import from storybook manager
@hey-api/openapi-ts 0.90→0.97 produces a slightly different sdk/transformers shape (idiomatic-modules path renames). Regenerated to keep CI's openapi-sync gate happy. The Storybook manager imported lodash/startCase, but lodash was never a declared webapp dep — npm's hoisting masked it; pnpm's strict resolution exposes it. Replace with a six-line inline implementation; no need to pull ~600 KB of lodash into the manager bundle. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5eb339d commit 0f1123f

14 files changed

Lines changed: 243 additions & 394 deletions

webapp/.storybook/manager.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import { addons } from 'storybook/manager-api';
2-
3-
import startCase from 'lodash/startCase.js';
4-
2+
3+
const startCase = (input: string): string =>
4+
input
5+
.replace(/([a-z])([A-Z])/g, '$1 $2')
6+
.replace(/[_-]+/g, ' ')
7+
.trim()
8+
.split(/\s+/)
9+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
10+
.join(' ');
11+
512
addons.setConfig({
613
sidebar: {
714
renderLabel: ({ name, type }) => type === 'story' ? name : startCase(name),

0 commit comments

Comments
 (0)