Reorganize into monorepo layout, move mitarbeiter-app to legacy reference

Consolidates the previously separate omsorgapp and omsorgCore repos
(each had their own nested .git with GitHub history) plus the old
root-level website/mitarbeiter-app into a single monorepo, matching
the structure already documented in the root CLAUDE.md. Also moves
the PHP employee app aside as omsorgWeb/mitarbeiter-app-legacy/ to
serve as a template for a ground-up rewrite.

Fixes .gitignore in the same pass: the config-secrets/uploads/data
patterns were unanchored (relative to repo root, not depth-agnostic),
so they silently stopped matching once the app moved under omsorgWeb/.
Patterns are now **/-prefixed and cover both mitarbeiter-app and
mitarbeiter-app-legacy, keeping DB/SMTP credentials and uploaded
employee documents out of version control.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Felix Kemmler
2026-08-07 14:21:37 +02:00
co-authored by Claude Sonnet 5
parent 8beb0fcf52
commit b6c1389c55
355 changed files with 24348 additions and 361 deletions
@@ -0,0 +1,54 @@
<?php
require_once __DIR__ . '/../lib/auth.php';
require_once __DIR__ . '/../lib/db.php';
require_login();
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
header('Location: ../pages/einsatzbewertung.php');
exit;
}
$back = '../pages/einsatzbewertung.php';
$einsatzort = trim($_POST['einsatzort'] ?? '');
$von = trim($_POST['von'] ?? '');
$bis = trim($_POST['bis'] ?? '');
$bewertung = (int)($_POST['bewertung'] ?? 0);
$wieder = isset($_POST['wieder']) ? 1 : 0;
$feedback = trim($_POST['feedback'] ?? '');
if ($einsatzort === '') {
header('Location: ' . $back . '?error=' . urlencode('Bitte den Einsatzort angeben.'));
exit;
}
if ($von === '' || $bis === '') {
header('Location: ' . $back . '?error=' . urlencode('Von und Bis sind Pflichtfelder.'));
exit;
}
if (!strtotime($von) || !strtotime($bis)) {
header('Location: ' . $back . '?error=' . urlencode('Ungültiges Datum.'));
exit;
}
if (strtotime($von) > strtotime($bis)) {
header('Location: ' . $back . '?error=' . urlencode('Das Startdatum muss vor dem Enddatum liegen.'));
exit;
}
if ($bewertung < 1 || $bewertung > 5) {
header('Location: ' . $back . '?error=' . urlencode('Bitte eine Bewertung von 1 bis 5 Sternen auswählen.'));
exit;
}
$user_id = current_user()['id'];
$now = date('c');
db()->prepare(
'INSERT INTO einsatzbewertungen (user_id, einsatzort, von, bis, bewertung, wieder, feedback, created_at)
VALUES (?, ?, ?, ?, ?, ?, ?, ?)'
)->execute([$user_id, $einsatzort, $von, $bis, $bewertung, $wieder, $feedback, $now]);
header('Location: ' . $back . '?success=1');
exit;