Initial commit: everythingbutwork MVP
ci / quality (push) Has been cancelled
ci / build (push) Has been cancelled

Internes Project-Management-Tool für ToolCTRL — ergänzend zu Plane (Tickets)
und Outline (Doku). Umfasst Puls-Übersicht, Tagesrhythmus (Lock-in + Reflexion),
Bereichs-Detail-Views (Entwicklung/Vertrieb/Marketing), Pflicht-Minimum-Check
und Blocker-Lifecycle gemäß Projektmanagement-Leitfaden v3.0.

Stack: pnpm-Monorepo · Vite + React 18 + Tailwind · Fastify + tRPC v11 +
Drizzle ORM · Postgres 16 · Authentik OIDC (Phase 2, Dev-Auto-Login aktiv).

Planungs-Artefakte unter _bmad-output/planning-artifacts/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
dejanandClaude Opus 4.7 committed 2026-05-25 22:47:26 +02:00
commit 4f33509a0f
131 files changed
+34339

No files matched your search

+59
View File
@@ -0,0 +1,59 @@
import { z } from 'zod';
export const ampelSchema = z.enum(['green', 'amber', 'red']);
export const trendSchema = z.enum(['besser', 'gleich', 'schlechter']);
export const bezugKindSchema = z.enum(['project', 'deal', 'campaign', 'allgemein']);
export const todoStatusSchema = z.enum(['open', 'done', 'dropped']);
export const todoInputSchema = z.object({
title: z.string().min(1).max(200),
bezugKind: bezugKindSchema.optional(),
bezugId: z.string().uuid().optional(),
});
export type TodoInput = z.infer<typeof todoInputSchema>;
export const checkInInput = z.object({
todos: z.array(todoInputSchema).min(1),
date: z
.string()
.regex(/^\d{4}-\d{2}-\d{2}$/)
.optional(), // Default: heute
});
export type CheckInInput = z.infer<typeof checkInInput>;
export const submitReflectionInput = z.object({
dayEntryId: z.string().uuid(),
todos: z
.array(
z.object({
id: z.string().uuid(),
status: todoStatusSchema,
dropReason: z.string().max(200).optional(),
}),
)
.default([]),
reflectionText: z.string().max(1000).default(''),
ampel: ampelSchema,
trend: trendSchema.nullable().optional(),
blocker: z
.object({
title: z.string().min(1).max(200),
description: z.string().max(1000).optional(),
})
.optional(),
url: z.string().url().optional(),
});
export type SubmitReflectionInput = z.infer<typeof submitReflectionInput>;
export const todoMutationInput = z.object({
dayEntryId: z.string().uuid(),
todos: z.array(todoInputSchema).min(0),
});
export type TodoMutationInput = z.infer<typeof todoMutationInput>;
export const markAbsentInput = z.object({
from: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
to: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
reason: z.enum(['urlaub', 'krank', 'sonstiges']),
});
export type MarkAbsentInput = z.infer<typeof markAbsentInput>;