From ab24db36ddf45755e59018c4d611b2ec649b10ca Mon Sep 17 00:00:00 2001 From: Till JS Date: Thu, 9 Apr 2026 20:23:34 +0200 Subject: [PATCH] fix(packages): cross-package broken imports + missing exports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Five unrelated packages each had a few imports pointing at the wrong file or missing from their public surface. Grouped because none of the individual fixes warrants its own commit and they all unblock the same downstream consumer (apps/mana/apps/web type-check). packages/help - HelpPage.svelte: `'../types.js'` and `'./content'` for HelpPageProps/HelpSection/SearchResult — neither path exists. Real homes are `../ui-types` (props) and `../search-types` (search shapes). Fix the imports. - HelpSearch.svelte: same `'../content'` typo for SearchResult → `'../search-types'`. - translations.ts: `'./types.js'` for HelpPageTranslations → `'./ui-types'`. - ui-types.ts: was importing SearchResult from `'./content'` but that module only exports content shapes. Split into two imports so HelpContent stays from content.ts and SearchResult comes from search-types.ts. packages/feedback - FeedbackPage.svelte: imported `Feedback` and `CreateFeedbackInput` from `'./createFeedbackService'` but the service module only exports the service factory. Real homes are `'./feedback'` (Feedback) and `'./api'` (CreateFeedbackInput). - FeedbackForm.svelte: same `'./feedback'` typo for CreateFeedbackInput → `'./api'`. packages/subscriptions - UsageCard / CostCard / pages/SubscriptionPage: all imported UsageData / CostItem from `'./plans'` but those types live in `'./usage'`. SubscriptionPage additionally had a relative-path bug — it's at `src/pages/`, not `src/`, so `./plans` resolved to `pages/plans` (nonexistent). Now imports `'../plans'` for plan types and `'../usage'` for usage/cost types. packages/shared-ui - index.ts: re-exports the QuickInputItem family from `./quick-input` but had forgotten `HighlightPattern`. Added. Apps that build their own InputBar pattern config (e.g. mana/web/src/lib/quick-input/types.ts) need it as a public type. - PillNavigation.svelte: imported `SpotlightAction` and `ContentSearcher` from `./GlobalSpotlight.svelte` (a Svelte component file), which only re-exports the default. Both types live in `./types`. Move them to the existing types-import block; the GlobalSpotlight import becomes a plain default. packages/shared-auth-ui - stores/createAuthStore.svelte.ts: imported AuthServiceAdapter / AuthResult / BaseUser from `'./types'` (nonexistent — the file is `'./store-types'`). Net: -23 type errors. Zero behavior change. Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/feedback/src/FeedbackForm.svelte | 2 +- packages/feedback/src/FeedbackPage.svelte | 8 +++----- packages/help/src/components/HelpSearch.svelte | 2 +- packages/help/src/pages/HelpPage.svelte | 4 ++-- packages/help/src/translations.ts | 2 +- packages/help/src/ui-types.ts | 3 ++- .../shared-auth-ui/src/stores/createAuthStore.svelte.ts | 2 +- packages/shared-ui/src/index.ts | 8 +++++++- packages/shared-ui/src/navigation/PillNavigation.svelte | 7 +++---- packages/subscriptions/src/CostCard.svelte | 2 +- packages/subscriptions/src/UsageCard.svelte | 2 +- packages/subscriptions/src/pages/SubscriptionPage.svelte | 9 ++------- 12 files changed, 25 insertions(+), 26 deletions(-) diff --git a/packages/feedback/src/FeedbackForm.svelte b/packages/feedback/src/FeedbackForm.svelte index 3896316ea..22f337729 100644 --- a/packages/feedback/src/FeedbackForm.svelte +++ b/packages/feedback/src/FeedbackForm.svelte @@ -1,5 +1,5 @@