working with UI library now

This commit is contained in:
Priec
2026-05-16 14:59:17 +02:00
parent 6006e1e7b1
commit 231b11b8b3
10 changed files with 153 additions and 24 deletions

View File

@@ -50,7 +50,10 @@ pub struct Cell {
pub booked: bool,
pub color: String,
pub booking_id: i32,
/// Private — admin only. Never rendered on the public calendar.
pub name: String,
/// Public-facing label shown on the calendar when set.
pub title: String,
}
#[derive(Debug, Serialize)]
@@ -173,6 +176,7 @@ pub async fn build_calendar(
color: b.color.clone(),
booking_id: b.id,
name: b.name.clone(),
title: b.title.clone().unwrap_or_default(),
},
None => Cell {
date: iso,
@@ -181,6 +185,7 @@ pub async fn build_calendar(
color: String::new(),
booking_id: 0,
name: String::new(),
title: String::new(),
},
}
})