Add automatic generation of favourite buttons

favourite buttons are based on how often a good i added to list
finished implementing setting category
made number of days until button an environment variable

rebase on main and fix

ran cargo fmt
This commit is contained in:
ide
2026-08-19 23:48:19 +02:00
parent c7782c82c4
commit 22cf928852
10 changed files with 314 additions and 36 deletions
+6 -2
View File
@@ -7,9 +7,13 @@ pub struct Item {
}
#[derive(Serialize, Deserialize, Default, Debug, Clone)]
pub struct ItemData {
pub checked: bool,
pub amount: i64,
// TODO: add number
}
#[derive(Serialize, Deserialize, Default, Debug, Clone)]
pub struct ButtonItem {
pub name: String,
pub category: Option<String>,
}