1
0
Fork 0
polaris-task-force/src/collections/users
Z8MB1E 74b116b9cf fix(awards): save awards without an advancement tier
The beforeChange hook compared advancement values against undefined, but the admin form always submits the group, so an award outside a lineup arrived as { seriesKey: null, tier: null }. Null counted as set, which tripped the duplicate tier check for standalone ribbons and the ribbons-only guard for medals and commendations.

Normalize null, empty, and non-finite values to "not set" before validating. Non-ribbon awards clear leftover lineup values on a type change instead of throwing on a hidden field, and partial API updates that omit advancement keep the stored lineup.
2026-11-24 08:03:30 -05:00
..
Assignments.ts feat(assignments): add AssignmentMembersField component for managing assignment members 2026-08-29 23:53:13 -04:00
AssignmentTransfers.ts feat(collections): Add AssignmentTransfers collection and migrations 2026-08-31 23:40:02 -04:00
AwardRules.ts feat(awards): add award automation platform 2026-10-12 15:11:38 -04:00
Awards.ts fix(awards): save awards without an advancement tier 2026-11-24 08:03:30 -05:00
ContributionEntries.ts feat(contributions): award XP for published journal entries 2026-10-13 14:37:53 -04:00
Evaluations.ts fix(evaluations): require attendance from both players and route direct-supervisor reviews 2026-11-01 15:51:45 -05:00
Experience.ts feat(rbac): migrate collection access controls to RBAC permissions 2026-08-19 19:47:51 -04:00
LeadershipTransfers.ts feat(promotions): add promotion nominations and leadership transfers 2026-10-03 03:29:24 -04:00
Profiles.ts perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
PromotionNominations.ts feat(promotions): add promotion nominations and leadership transfers 2026-10-03 03:29:24 -04:00
Qualifications.ts feat(rbac): migrate collection access controls to RBAC permissions 2026-08-19 19:47:51 -04:00
Ranks.ts feat(promotions): add rank promotion ceiling with GM promote flow 2026-09-14 15:37:05 -04:00
RibbonSubmissions.ts feat(awards): add ribbon submissions collection, design validation and migration 2026-09-11 03:25:59 -04:00
Roles.ts style: remove em-dashes from user-visible prose (wave 1) 2026-09-07 01:34:28 -04:00
UserNotifications.ts fix(notifications): scope user notification reads 2026-09-01 17:17:34 -04:00
Users.ts feat(sidebar): add server-persisted section reorder with customize mode 2026-10-12 13:46:48 -04:00