1
0
Fork 0
polaris-task-force/src/lib/missionRatings/xp.ts
Z8MB1E 1db0aabb7c feat(mission-ratings): add permissions, collection, mission field, config, generated types
- permissions: mission-ratings group + ALL_PERMISSION_VALUES, granted in seedRoles
- collection: src/collections/intelligence/MissionRatings.ts (field-gated, Intelligence group)
- Missions: missionRating.customFactors group (array of {label})
- payload.config: register MissionRatings + requireAdminPageAccess
- regenerate payload-types
2026-10-31 10:24:04 -04:00

17 lines
720 B
TypeScript

/**
* Tunable contribution configuration for the mission-rating survey.
*
* The contribution type and XP amount live here (not inline in the server action)
* so they are a single source of truth and easy to rebalance. The type string
* ("mission-rating-completion") must also be registered in
* `src/lib/contributions/rules.ts` so `isContributionType` accepts it.
*/
/** The contribution type recorded when a user submits a mission rating. */
export const CONTRIBUTION_TYPE_MISSION_RATING = "mission-rating-completion" as const;
/**
* Flat XP awarded for submitting a mission rating. Small and intentional: the
* survey is a post-op courtesy, not a primary XP earner.
*/
export const MISSION_RATING_XP = 50;