managarten/packages/help/src
Till JS 9bf73fffa3 fix(help): correct broken imports + tighten SupportedLanguage typing
Two unrelated bugs in the @mana/help package surface that together
accounted for ~40 type errors:

Broken component imports
  Ten components inside packages/help/src/components/ were importing
  from `'../types.js'` and `'./content'` — neither path resolves.
  The actual files are at `../ui-types` (where FAQSectionProps,
  FeaturesOverviewProps etc. live) and `../content` (where FAQItem,
  FeatureItem, FAQCategory live). Fix the imports to point at the
  real files. ESM resolution doesn't need `.js` suffixes when
  TypeScript is feeding tsc, and the existing index.ts already
  re-exports under the correct paths.

  Net: -19 type errors across:
    ChangelogEntry, ChangelogSection, ContactSection, FAQItem,
    FAQSection, FeatureCard, FeaturesOverview, GettingStartedGuide,
    HelpSearch, KeyboardShortcuts

content/help/index.ts SupportedLanguage cast
  `getManaHelpContent()` was passing `currentLocale` (typed `string`)
  into FAQ rows that expect a `SupportedLanguage` enum — 9 errors
  from each FAQ row. Add a small `asSupportedLanguage()` guard that
  validates the locale string against the union and falls back to
  'de' for unknown values. Single source of truth lives next to
  the function that needed it.

  Net: -9 type errors.

Combined with the spiral-db dist rebuild (local-only, gitignored)
and the previous Observable migration commit, the total error count
drops from 418 → 115.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 18:13:18 +02:00
..
components fix(help): correct broken imports + tighten SupportedLanguage typing 2026-04-09 18:13:18 +02:00
pages fix(packages): fix type errors in consolidated packages + add missing files 2026-03-28 17:53:34 +01:00
content.ts fix(help): re-export schemas from content.ts for loader.ts compatibility 2026-03-28 20:52:07 +01:00
index.ts feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
loader.ts fix(packages): fix type errors in consolidated packages + add missing files 2026-03-28 17:53:34 +01:00
mana-faq.ts feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
merger.ts fix(packages): fix type errors in consolidated packages + add missing files 2026-03-28 17:53:34 +01:00
parser.ts fix(packages): fix type errors in consolidated packages + add missing files 2026-03-28 17:53:34 +01:00
privacy-faq.ts feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
sanitize.ts fix(packages): fix type errors in consolidated packages + add missing files 2026-03-28 17:53:34 +01:00
schemas.ts fix(packages): fix type errors in consolidated packages + add missing files 2026-03-28 17:53:34 +01:00
search-engine.ts fix(packages): fix type errors in consolidated packages + add missing files 2026-03-28 17:53:34 +01:00
search-types.ts fix(packages): fix type errors in consolidated packages + add missing files 2026-03-28 17:53:34 +01:00
translations.ts fix(packages): fix type errors in consolidated packages + add missing files 2026-03-28 17:53:34 +01:00
ui-types.ts fix(packages): fix type errors in consolidated packages + add missing files 2026-03-28 17:53:34 +01:00