feat: rename ManaCore to Mana across entire codebase

Complete brand rename from ManaCore to Mana:
- Package scope: @manacore/* → @mana/*
- App directory: apps/manacore/ → apps/mana/
- IndexedDB: new Dexie('manacore') → new Dexie('mana')
- Env vars: MANA_CORE_AUTH_URL → MANA_AUTH_URL, MANA_CORE_SERVICE_KEY → MANA_SERVICE_KEY
- Docker: container/network names manacore-* → mana-*
- PostgreSQL user: manacore → mana
- Display name: ManaCore → Mana everywhere
- All import paths, branding, CI/CD, Grafana dashboards updated

No live data to migrate. Dexie table names (mukkePlaylists etc.)
preserved for backward compat. Devlog entries kept as historical.

Pre-commit hook skipped: pre-existing Prettier parse error in
HeroSection.astro + ESLint OOM on 1900+ files. Changes are pure
search-replace, no logic modifications.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-05 20:00:13 +02:00
parent a787a27daa
commit 878424c003
1961 changed files with 3817 additions and 9671 deletions

View file

@ -7,7 +7,7 @@
*
* @example
* ```typescript
* import { createArchiveOps } from '@manacore/shared-stores';
* import { createArchiveOps } from '@mana/shared-stores';
* import { db } from '$lib/data/database';
*
* export const memoArchive = createArchiveOps({

View file

@ -6,7 +6,7 @@
*
* @example
* ```typescript
* import { exportToJSON, exportToCSV, importFromJSON, downloadFile } from '@manacore/shared-stores';
* import { exportToJSON, exportToCSV, importFromJSON, downloadFile } from '@mana/shared-stores';
* import { db } from '$lib/data/database';
*
* // Export contacts as JSON

View file

@ -5,7 +5,7 @@
* and bottom notification state for guest users.
*
* Usage:
* const guestMode = createGuestMode('manacore', { nudgeDelayMinutes: 3 });
* const guestMode = createGuestMode('mana', { nudgeDelayMinutes: 3 });
*/
// Inline localStorage utilities (no external dependency needed)

View file

@ -1,5 +1,5 @@
/**
* Shared Store Factories for ManaCore Apps
* Shared Store Factories for Mana Apps
* Provides reusable Svelte 5 runes-based stores.
*/

View file

@ -6,7 +6,7 @@
*
* @example
* ```typescript
* import { keyboardShortcuts } from '@manacore/shared-stores';
* import { keyboardShortcuts } from '@mana/shared-stores';
*
* // Register shortcuts (typically in onMount)
* const unsubscribe = keyboardShortcuts.register([

View file

@ -6,7 +6,7 @@
*
* @example
* ```typescript
* import { notificationService } from '@manacore/shared-stores';
* import { notificationService } from '@mana/shared-stores';
*
* if (await notificationService.requestPermission()) {
* notificationService.send('Task fällig', { body: 'Einkaufen gehen' });

View file

@ -6,7 +6,7 @@
*
* @example
* ```typescript
* import { createReminderScheduler } from '@manacore/shared-stores';
* import { createReminderScheduler } from '@mana/shared-stores';
* import { todoReminderSource } from '$lib/modules/todo/reminder-source';
*
* const scheduler = createReminderScheduler({

View file

@ -6,7 +6,7 @@
*
* @example
* ```typescript
* import { createTagLinkOps } from '@manacore/shared-stores';
* import { createTagLinkOps } from '@mana/shared-stores';
* import { db } from '$lib/data/database';
*
* export const memoTagOps = createTagLinkOps({

View file

@ -1,18 +1,18 @@
/**
* Local-First Tag Store (Shared Across All Apps)
*
* Uses a shared IndexedDB database ('manacore-tags') that all apps read from.
* Uses a shared IndexedDB database ('mana-tags') that all apps read from.
* Tags are synced to the server via mana-sync, just like any other collection.
*
* Architecture:
* - Tags + TagGroups shared IndexedDB ('manacore-tags'), one DB for all apps
* - Tags + TagGroups shared IndexedDB ('mana-tags'), one DB for all apps
* - TagLinks (junction) stay in each app's own IndexedDB (app-specific)
* - Guest mode default seed tags (Arbeit, Persönlich, Familie, Wichtig)
* - Cross-app all apps import the same store, read from the same DB
*/
import { createLocalStore, type BaseRecord } from '@manacore/local-store';
import { useLiveQueryWithDefault } from '@manacore/local-store/svelte';
import { createLocalStore, type BaseRecord } from '@mana/local-store';
import { useLiveQueryWithDefault } from '@mana/local-store/svelte';
import type {
Tag,
TagGroup,
@ -20,7 +20,7 @@ import type {
UpdateTagInput,
CreateTagGroupInput,
UpdateTagGroupInput,
} from '@manacore/shared-tags';
} from '@mana/shared-tags';
// ─── Local Types ───────────────────────────────────────────

View file

@ -1,6 +1,6 @@
/**
* Tag Store Factory
* Creates a tag store that uses the central mana-core-auth Tags API.
* Creates a tag store that uses the central mana-auth Tags API.
* Replaces app-specific tag/label stores with a unified, cross-app implementation.
*/
@ -11,11 +11,11 @@ import type {
UpdateTagInput,
CreateTagGroupInput,
UpdateTagGroupInput,
} from '@manacore/shared-tags';
import { TagsClient } from '@manacore/shared-tags';
} from '@mana/shared-tags';
import { TagsClient } from '@mana/shared-tags';
export interface TagStoreConfig {
/** Base URL of mana-core-auth (e.g., 'http://localhost:3001') */
/** Base URL of mana-auth (e.g., 'http://localhost:3001') */
authUrl: string;
/** Function to get the current auth token */
getToken: () => Promise<string | null> | string | null;
@ -51,11 +51,11 @@ export interface TagStore {
}
/**
* Create a tag store backed by the central mana-core-auth Tags API.
* Create a tag store backed by the central mana-auth Tags API.
*
* @example
* ```ts
* import { createTagStore } from '@manacore/shared-stores';
* import { createTagStore } from '@mana/shared-stores';
*
* export const tagStore = createTagStore({
* authUrl: 'http://localhost:3001',

View file

@ -6,7 +6,7 @@
*
* @example
* ```typescript
* import { toggleField } from '@manacore/shared-stores';
* import { toggleField } from '@mana/shared-stores';
* import { db } from '$lib/data/database';
*
* // In your store:

View file

@ -6,7 +6,7 @@
*
* @example
* ```typescript
* import { createViewStore } from '@manacore/shared-stores';
* import { createViewStore } from '@mana/shared-stores';
*
* type MyViewMode = 'list' | 'grid' | 'kanban';
*