Sortieren und Filtern wie in Excel in jeder Tabelle, Ansichten je Benutzer (0.13.0)
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-10-20 07:47:06 +00:00
parent d5f861318b
commit 6d0c5f238b
19 changed files with 966 additions and 157 deletions

View File

@@ -12,6 +12,7 @@ import m007 from "../src/server/migrations/007_anmeldung.sql";
import m008 from "../src/server/migrations/008_personal.sql";
import m009 from "../src/server/migrations/009_zeiterfassung.sql";
import m010 from "../src/server/migrations/010_dauer_aus_besetzung.sql";
import m011 from "../src/server/migrations/011_ansichten.sql";
const MIGRATIONEN: [string, string][] = [
["001_grundlage.sql", m001], ["002_v70_uebernahme.sql", m002], ["003_vorgangsnummer.sql", m003], ["004_besetzung.sql", m004],
@@ -19,6 +20,7 @@ const MIGRATIONEN: [string, string][] = [
["007_anmeldung.sql", m007], ["008_personal.sql", m008],
["009_zeiterfassung.sql", m009],
["010_dauer_aus_besetzung.sql", m010],
["011_ansichten.sql", m011],
];
export async function starte(db: PGlite, v70?: unknown) {

View File

@@ -62,7 +62,7 @@ async function main() {
if (speicher) {
melde("Deine Daten werden geladen …");
const daten: Record<string, Record<string, unknown>[]> = {};
for (const pfad of [...TABELLEN, ...NUR_SICHERUNG].map((t) => t.pfad).concat("benutzer")) daten[pfad] = await nochmal(() => alle(speicher, pfad));
for (const pfad of [...TABELLEN, ...NUR_SICHERUNG].map((t) => t.pfad).concat("benutzer", "ansichten")) daten[pfad] = await nochmal(() => alle(speicher, pfad));
const e = await nochmal(() => speicher.doc("meta/einstellungen").get());
if (Object.values(daten).some((z) => z.length) || e.exists) {
const r = await app.verarbeite("POST", "/api/import/stand", { programm: "betrieb", einstellungen: e.data()?.daten, daten });