Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/facett

.nornir/widgets/facett-calendar.md

facett-calendar — design note

Status: builds (egui 0.33 + chrono) + 4 unit tests green. In ordning/crates/widgets/facett-calendar; destined for facett.

What it is

A Monday-first (Swedish/ISO week) month grid with a date picker and marked events: case deadlines (SLA/handläggningstid due), statutory frister (e.g. FL §12 six-month mark), planned absence (drives the handover model), and appointments (hearings/sammanträden). Navigate months; click a day to select; days with events show a colored dot + count (strongest event kind by rank wins the color).

API

let mut cal = Calendar::new("Frister", 2026, 6).with_today(today);  // host supplies "today"
cal.set_events(vec![ Event{ date, label, kind: EventKind::Frist, case: Some("ÖK-3".into()) }, … ]);
if let Some(date) = cal.ui(ui) { /* user clicked a day */ }
let picked = cal.selected_date();

Design decisions

Move-to-facett notes

TODO when it matures