1
0
Fork 0
polaris-task-force/src/lib/awards
Z8MB1E db9248244d feat(awards): add award automation platform
- award-rules collection: metric/operator/value threshold rules linked to
  awards, with auto-retire-lower-tiers and once-per-series flags, active
  toggle, and award-rules:* permissions
- src/lib/awards/metrics.ts: pure metric resolvers (years of service from
  dossier.enlistmentDate with account-age fallback, account age, missions
  attended, total XP) plus operator comparison, unit tested
- evaluateAwardRules() sweeper: idempotent, dry-run capable; grants land as
  profile rows with awardedBy null so the existing afterChange hook sends
  award:granted notifications; upgrades replace the lower series tier in
  place preserving the original date; emits award:rule-granted events
- award-tick payload bin for daily evaluation + admin Award Automation
  view with Evaluate now (dry run) preview and Apply grants
- seedYearsOfServiceRules.ts wires the four years-of-service ribbons into
  one advancement series and creates their rules (idempotent, dev seeded)
- migration add_award_rules_automation (table + awards event target enum)
2026-10-12 15:11:38 -04:00
..
automation.ts feat(awards): add award automation platform 2026-10-12 15:11:38 -04:00
automationActions.ts feat(awards): add award automation platform 2026-10-12 15:11:38 -04:00
grant.ts feat(awards): add award advancement series 2026-09-11 17:07:37 -04:00
index.ts feat(awards): add cleanupDuplicateAwards utility and CLI tool skeleton 2026-09-02 16:14:12 -04:00
metrics.ts feat(awards): add award automation platform 2026-10-12 15:11:38 -04:00
ribbonValidation.ts feat(awards): add ribbon submissions collection, design validation and migration 2026-09-11 03:25:59 -04:00