ThreadCount Community edition
Release / release (push) Has been skipped

Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from 794bab5 on 2026-09-16. Licensed under the Functional Source License (FSL-1.1-ALv2).
This commit is contained in:
ThreadCount
2026-09-17 05:49:16 +10:00
commit f72f0626b0
481 changed files with 59411 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { redirect } from "next/navigation";
import { currentStaff } from "@/lib/staffsession";
import { catalogueData, damageData, notifyWays } from "@/lib/staffdata";
import DamageScreen from "@/components/screens/Damage";
export const dynamic = "force-dynamic";
export default async function MyDamage() {
const sess = await currentStaff();
if (!sess) redirect("/my/signin");
const [{ holdings }, { managerName }, ways] = await Promise.all([
damageData(sess),
catalogueData(sess),
// The replacement half ends on the same Sent screen a request does, and that screen's one line
// says how this person will actually hear — a phone, an email, or neither.
notifyWays(sess),
]);
return <DamageScreen holdings={holdings} managerName={managerName} notifyWays={ways} />;
}