Vertrag, Historie, Sortierung: Retest-Punkte vom 20.10.
- Historie: der Papierkorb eines geplanten Vorgangs heisst "Eintrag loeschen". - Vertrag: Austrittsdatum neben dem Eintrittsdatum; Langzeitabwesenheit als "Art ab ... bis ..." (ohne Ende "bis -"); eine geplante und eine anschliessend geplante Abwesenheit stehen mit dabei. - Mitarbeiterliste: mit Statusfilter (etwa aus einer Kachel) nach Eintritt, juengste zuerst, Ausgetretene nach Austritt; ohne Filter alphabetisch. - Rohdaten der Ereignisse: juengstes Ereignis zuerst. Geprueft: lint, tsc, Tests, Uebergabe-Waechter
This commit is contained in:
@@ -13,8 +13,7 @@ import {
|
||||
SORTIERFELDER,
|
||||
naechsteRichtung,
|
||||
sortiere,
|
||||
parseFeld,
|
||||
parseRichtung,
|
||||
sortierungAus,
|
||||
type Richtung,
|
||||
type Sortierfeld,
|
||||
} from "@/lib/employee-sort";
|
||||
@@ -107,8 +106,6 @@ function sortHref(params: SearchParams, feld: Sortierfeld, aktuell: Sortierfeld,
|
||||
export default async function EmployeesPage({ searchParams }: EmployeesPageProps) {
|
||||
const params = glaetten(await searchParams);
|
||||
const page = Math.max(1, Number(params.page ?? "1") || 1);
|
||||
const sortFeld = parseFeld(params.sort);
|
||||
const sortRichtung = parseRichtung(params.dir);
|
||||
const today = todayIso();
|
||||
|
||||
// Comma-separated, so a dashboard tile can link here with the same
|
||||
@@ -117,6 +114,7 @@ export default async function EmployeesPage({ searchParams }: EmployeesPageProps
|
||||
.split(",")
|
||||
.map((s) => s.trim())
|
||||
.filter((s): s is EmploymentStatus => (["Aktiv", "Karenz", "Geplant", "Ausgetreten"] as const).includes(s as EmploymentStatus));
|
||||
const { feld: sortFeld, richtung: sortRichtung } = sortierungAus(params.sort, params.dir, statuses);
|
||||
|
||||
const { orgMaps, employees, count, placements, ueberPosition } = await withUser(await currentUserId(), async (tx) => {
|
||||
// Die Referenzdaten zuerst: der Bereichsfilter braucht den Teilbaum.
|
||||
|
||||
Reference in New Issue
Block a user