- 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
17 lines
720 B
TypeScript
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;
|