mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 18:01:09 +02:00
The context module's UI + Dexie tables + i18n bundle were already
removed in d3e2e73ca. This follow-up cleans up everything else that
still referenced it:
- API: rename POST /api/v1/context/import-url → /api/v1/kontext/import-url
(the kontext singleton was the only consumer); drop the unused
/ai/generate + /ai/estimate endpoints; rename the credit-op label
AI_CONTEXT_IMPORT_URL → KONTEXT_IMPORT_URL; drop AI_CONTEXT_GENERATION
from packages/credits.
- Web: drop registerApp + File icon import from app-registry/apps.ts;
drop contextModuleConfig from data/module-registry.ts (+ snapshot test);
drop useRecentDocuments + useSpaces from cross-app-queries.ts; drop
ContextDocsWidget from widget-registry + dashboard.svelte.ts +
types/dashboard{,.test}.ts; drop dashboard.widgets.context from all 5
dashboard locales; drop context entries from hooks.server allowlist,
splitscreen registry, observatory mockData, spiral collect, crypto
registry + plaintext-allowlist.
- Dexie: remove documents/contextSpaces/documentTags from v1, v31, v53
stores blocks; add v57 dropping the three tables on local dev DBs
that already ran an earlier schema.
- Shared-branding: drop 'context' from AppId union, APP_BRANDING,
MANA_APPS, APP_ICONS (+ contextSvg), ContextLogo.svelte (+ logos
barrel re-export).
- Spiral-DB: drop context: 10 from MANA_APP_INDEX (slot now free).
- i18n hardcoded-string baseline: drop 5 context routes/files.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
93 lines
2 KiB
TypeScript
93 lines
2 KiB
TypeScript
/**
|
|
* Shared branding components and configuration for the Mana ecosystem
|
|
*
|
|
* This package provides:
|
|
* - App logos (AppLogo, AppLogoWithName)
|
|
* - Pre-configured app logos (MemoroLogo, ManaLogo, etc.)
|
|
* - Mana icon (ManaIcon)
|
|
* - Branding configuration (colors, names, taglines)
|
|
*/
|
|
|
|
// Generic Components
|
|
export { default as AppLogo } from './AppLogo.svelte';
|
|
export { default as AppLogoWithName } from './AppLogoWithName.svelte';
|
|
export { default as ManaIcon } from './ManaIcon.svelte';
|
|
|
|
// Pre-configured App Logos
|
|
export {
|
|
MemoroLogo,
|
|
ManaLogo,
|
|
CardsLogo,
|
|
UloadLogo,
|
|
ChatLogo,
|
|
PresiLogo,
|
|
FoodLogo,
|
|
QuotesLogo,
|
|
ContactsLogo,
|
|
CalendarLogo,
|
|
StorageLogo,
|
|
TodoLogo,
|
|
MailLogo,
|
|
MoodlitLogo,
|
|
InventoryLogo,
|
|
ClockLogo,
|
|
QuestionsLogo,
|
|
SkillTreeLogo,
|
|
PlantsLogo,
|
|
LightWriteLogo,
|
|
MusicLogo,
|
|
CitycornersLogo,
|
|
} from './logos';
|
|
|
|
// Configuration
|
|
export { APP_BRANDING, getAppBranding, getAllAppBrandings } from './config';
|
|
|
|
// App Icons (SVG data URLs)
|
|
export { APP_ICONS, type AppIconId } from './app-icons';
|
|
|
|
// Mana Apps Configuration
|
|
export {
|
|
MANA_APPS,
|
|
getManaApp,
|
|
getManaAppsByStatus,
|
|
getAvailableManaApps,
|
|
getActiveManaApps,
|
|
getAccessibleManaApps,
|
|
hasAppAccess,
|
|
getTierLevel,
|
|
APP_STATUS_LABELS,
|
|
APP_SLIDER_LABELS,
|
|
APP_URLS,
|
|
ACCESS_TIER_LABELS,
|
|
getPillAppItems,
|
|
type ManaApp,
|
|
type AppStatus,
|
|
type AccessTier,
|
|
type PillAppItemConfig,
|
|
} from './mana-apps';
|
|
|
|
// Types
|
|
export type { AppId, AppBranding, LogoProps, AppLogoWithNameProps } from './types';
|
|
|
|
// Spaces (multi-tenancy primitive — see docs/plans/spaces-foundation.md)
|
|
// Canonical types live in @mana/shared-types; branding adds only UI strings.
|
|
export {
|
|
SPACE_TYPES,
|
|
SPACE_TYPE_LABELS,
|
|
SPACE_TYPE_DESCRIPTIONS,
|
|
SPACE_MODULE_ALLOWLIST,
|
|
isModuleAllowedInSpace,
|
|
isSpaceType,
|
|
parseSpaceMetadata,
|
|
type SpaceType,
|
|
type SpaceModuleId,
|
|
type SpaceMetadata,
|
|
} from './spaces';
|
|
|
|
// Onboarding templates (see docs/plans/onboarding-flow.md)
|
|
export {
|
|
ONBOARDING_TEMPLATES,
|
|
resolveModulesForTemplates,
|
|
type OnboardingTemplate,
|
|
type OnboardingTemplateId,
|
|
} from './onboarding-templates';
|