updated rewards assignment and reward progress

This commit is contained in:
JCEEE
2026-08-31 16:44:37 +01:00
parent cda2cbfcab
commit 3bf78d777c
10 changed files with 549 additions and 209 deletions
+9
View File
@@ -229,6 +229,15 @@ export const SCHEMA_PLAN: CollectionPlanEntry[] = [
select("period", ["schedule", "daily", "weekly", "monthly"]),
select("status", ["active", "completed"], true),
bool("isPocketMoney"),
// Standalone/one-off reward progress window. `period` stays empty for
// these (they're measured once, not per-cycle). `completeBy` bounds how
// far progress counts: `unlimited` (cumulative since startDate),
// `week` (end of current week), or `custom` (a specific completeByDate).
// `startDate` is when tracking begins — without it "unlimited" would
// count points earned before the reward existed.
select("completeBy", ["unlimited", "week", "custom"]),
text("startDate"),
text("completeByDate"),
], {
createRule: RULE_PARENT_WRITE,
updateRule: RULE_PARENT_SCOPED,