vibe-design-system 2.5.34 → 2.5.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-design-system",
3
- "version": "2.5.34",
3
+ "version": "2.5.35",
4
4
  "description": "Auto-generate design systems for vibe coding projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -69,6 +69,17 @@ Kullanıcının her projede ayrı ayrı provider eklemesi, manuel story düzeltm
69
69
 
70
70
  **"Failed to fetch dynamically imported module"** artık manuel adım gerektirmez: story'ler dinamik import ile üretilir; component yüklenemezse canvas'ta "Component could not be loaded (import error)." mesajı gösterilir, Storybook çökmez.
71
71
 
72
+ ### Test projesinde çıkan hatalar (sorun giderme)
73
+
74
+ | Gördüğünüz mesaj | Ne yapmalı |
75
+ |------------------|------------|
76
+ | **Failed to fetch dynamically imported module: …/X.stories.tsx** | Story dosyası yüklenemiyor. En güncel VDS template’i kullanıp story’leri yeniden üretin: `npm run vds:stories`. Eski template’te statik import vardı; yeni sürümde dinamik import + catch kullanılıyor. |
77
+ | **Cannot read properties of undefined (reading 'dateRange')** (örn. TimeFilterPanel) | `filters` / `dateRange` varsayılanı generator’da var. `npm run vds:stories` tekrar çalıştırın; hâlâ olursa ilgili story’de `args.filters` veya `args.dateRange` manuel ekleyin. |
78
+ | **Cannot read properties of undefined (reading 'toString')** (örn. TaskEstimateInput) | `estimate` / sayısal proplar için varsayılan eklendi. `npm run vds:stories` ile story’leri yenileyin. |
79
+ | **Başlık/component boş** (örn. UnlockModuleModal) | Modal/drawer için `isOpen` veya `open: true` varsayılanı veriliyor. Story’leri yeniden üretin; gerekirse o story’de `args.open = true` veya `args.isOpen = true` kontrol edin. |
80
+
81
+ Genel adım: `vibe-design-system` güncel olsun, sonra proje kökünde **`npm run vds:stories`** çalıştırıp Storybook’u yeniden başlatın.
82
+
72
83
  ## Layout
73
84
 
74
85
  - `vds-core/scan.mjs` — Projeyi tarar (src/components, CSS, Tailwind). `vds-output.json` ve `public/vds-output.json` yazar.
@@ -676,13 +676,13 @@ function buildDefaultArgsForRequiredProps(props, usageFromPages = null, componen
676
676
  } else if (/string/.test(type)) {
677
677
  argLines.push(` ${name}: ${stringFallback(name)},`);
678
678
  added.add(name);
679
- } else if (/number/.test(type) || /^(value|amount|total|count|hours|minutes|progress|percent)$/.test(name)) {
679
+ } else if (/number/.test(type) || /^(value|amount|total|count|hours|minutes|progress|percent|estimate)$/.test(name)) {
680
680
  argLines.push(` ${name}: 0,`);
681
681
  added.add(name);
682
682
  }
683
683
  }
684
- // Optional props that often cause "reading X of undefined" in Storybook if missing
685
- const NUMBER_LIKE_OPTIONAL = new Set(["value", "amount", "total", "count", "hours", "minutes", "progress", "percent", "visibility"]);
684
+ // Optional props that often cause "reading X of undefined" or "reading 'toString'" in Storybook if missing
685
+ const NUMBER_LIKE_OPTIONAL = new Set(["value", "amount", "total", "count", "hours", "minutes", "progress", "percent", "visibility", "estimate"]);
686
686
  const DATE_RANGE_DEFAULT = `{ dateRange: { from: new Date().toISOString(), to: new Date().toISOString() } }`;
687
687
  for (const p of props) {
688
688
  const type = String(p.type || "").trim();
@@ -715,6 +715,9 @@ function buildDefaultArgsForRequiredProps(props, usageFromPages = null, componen
715
715
  } else if (name === "defaultProjectId") {
716
716
  argLines.push(` ${name}: "1",`);
717
717
  added.add(name);
718
+ } else if (name === "task" || /Task\b/.test(type)) {
719
+ argLines.push(` ${name}: { id: "1", title: "Example", estimate: 0 },`);
720
+ added.add(name);
718
721
  }
719
722
  }
720
723
  }