refactor: rename planta → plants, clean up codebase

- Rename planta module to plants everywhere (routes, modules, API,
  branding, i18n, docker, docs, shared packages)
- Fix package name collisions: @mana/credits-service, @mana/subscriptions-service
  (unblocks turbo)
- Extract layout composables: use-ai-tier-items, use-sync-status-items,
  RouteTierGate (layout 1345→1015 lines)
- Create shared DB pool for apps/api (lib/db.ts), migrate 5 modules
- Add automations module queries.ts with useAllAutomations/useEnabledAutomations
- Remove debug console.log statements from production code
- Rename storage display name: Ablage → Speicher

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-12 18:59:44 +02:00
parent c6c19dbc77
commit a91a6076cc
110 changed files with 831 additions and 707 deletions

View file

@ -37,7 +37,7 @@ import { z } from 'zod';
//
// History:
// 1 — initial schemas (foods/totalNutrition for nutriphi,
// scientificName/commonNames/etc for planta)
// scientificName/commonNames/etc for plants)
export const AI_SCHEMA_VERSION = '1' as const;
export type AiSchemaVersion = typeof AI_SCHEMA_VERSION;
@ -107,7 +107,7 @@ export type MealAnalysis = z.infer<typeof MealAnalysisSchema>;
export type AnalyzedFood = z.infer<typeof AnalyzedFoodSchema>;
export type NutritionData = z.infer<typeof NutritionDataSchema>;
// ─── Planta: plant photo identification ──────────────────────────
// ─── Plants: plant photo identification ──────────────────────────
export const PlantIdentificationSchema = z.object({
scientificName: z.string().optional().describe('Latin binomial, e.g. "Monstera deliciosa"'),