1
0
Fork 0
polaris-task-force/src/tools/seed
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
..
documentation feat(wiki): add welcome-to-the-unit starter guide 2026-10-09 17:56:13 -04:00
backfillOpordBestTimes.ts feat(opord): track per-tier best times with leaderboard column and par backfill 2026-09-09 11:37:51 -04:00
backfillProfiles.ts fix(tools): exit backfillProfiles script after completion 2026-08-23 18:52:36 -04:00
reconcileContributionXp.ts feat(contributions): add crowdsourced XP reward system 2026-10-09 16:30:05 -04:00
seedDocumentation.ts feat(wiki): add welcome-to-the-unit starter guide 2026-10-09 17:56:13 -04:00
seedEverything.ts feat(minigames): add period, entry, achievement and registry schema 2026-10-11 17:06:52 -04:00
seedExperience.ts style: remove em-dashes from user-visible prose (wave 1) 2026-09-07 01:34:28 -04:00
seedFactions.ts feat: application staging deployment (ensure better commits after this) 2025-12-15 01:14:30 -05:00
seedMinigames.ts feat(minigames): add period, entry, achievement and registry schema 2026-10-11 17:06:52 -04:00
seedProfiles.ts fix(types): add draft:false and dossier to profiles create calls 2026-08-19 22:48:45 -04:00
seedRanks.ts feat: initial payload scaffolding 2025-10-24 02:07:13 -04:00
seedRoles.ts feat(map): gate feature authoring and structure placement behind dedicated permissions 2026-09-30 14:50:14 -04:00
seedUsers.ts chore(seed): update seed scripts for RBAC roles 2026-08-19 19:48:31 -04:00
seedYearsOfServiceRules.ts feat(awards): add award automation platform 2026-10-12 15:11:38 -04:00