// Application◌ WIP
Bauhaus Logistics Dashboard
Logistics intelligence, scheduling, and order tracking for Bauhaus Slovenia

About
A full-stack internal dashboard for Bauhaus Slovenia's logistics department. Combines real-time supply chain analytics (pallets, transport, suppliers) with BKU customer order management and AI-powered monthly worker scheduling (Urnik) — including shift planning, validation, Excel export, and automated compliance checks.
Tech Stack
Next.js 16React 19TypeScriptSupabaseAnthropic Claude APITailwind CSS 4XLSXReact-PDFResendVercel
Info
- Category
- Application
- Status
- WIP
- Technologies
- 10
Architecture
Code Preview
TypeScriptschedule_optimizer.ts
1async function generateSchedule(month: Date) {2const workers = await db.from("workers").select("*");3const constraints = await db.from("rules").select("*");45const prompt = buildSchedulePrompt({6workers,7constraints,8holidays: getHolidays(month),9previousMonth: await getLastSchedule(month),10});1112const schedule = await anthropic.messages.create({13model: "claude-sonnet-4-20250514",14messages: [{ role: "user", content: prompt }],15});1617const parsed = parseScheduleResponse(schedule);18const violations = validateCompliance(parsed);1920if (violations.length === 0) {21return exportToExcel(parsed);22}23return { schedule: parsed, violations };24}