updated rewards assignment and reward progress
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user