1
0
Fork 0

feat(evaluations): add permissions and event logging

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Jason Fraley 2026-08-27 18:36:04 -04:00
parent 22b7343fa8
commit 21f61ca33f
4 changed files with 18 additions and 0 deletions

View file

@ -23,6 +23,7 @@ const TARGET_COLLECTIONS = [
{ label: "Loadouts", value: "loadouts" },
{ label: "Market Listings", value: "market-listings" },
{ label: "Market Negotiations", value: "market-negotiations" },
{ label: "Evaluations", value: "evaluations" },
{ label: "Tickets", value: "tickets" },
{ label: "Game Servers", value: "game-servers" },
] as const;

View file

@ -112,6 +112,15 @@ export const PERMISSION_GROUPS: PermissionGroup[] = [
{ value: "user-notifications:delete", label: "Delete" },
],
},
{
group: "Evaluations",
permissions: [
{ value: "evaluations:create", label: "Create" },
{ value: "evaluations:read", label: "Read" },
{ value: "evaluations:update", label: "Update" },
{ value: "evaluations:delete", label: "Delete" },
],
},
// ---- Intelligence --------------------------------------------------------
{
@ -503,6 +512,10 @@ export const ALL_PERMISSION_VALUES = PERMISSION_GROUPS.flatMap((g) =>
"user-notifications:read",
"user-notifications:update",
"user-notifications:delete",
"evaluations:create",
"evaluations:read",
"evaluations:update",
"evaluations:delete",
"missions:create",
"missions:read",
"missions:update",

View file

@ -28,6 +28,7 @@ interface GameEventInput {
| "loadouts"
| "market-listings"
| "market-negotiations"
| "evaluations"
| "tickets"
| "game-servers";
targetId?: number;

View file

@ -89,6 +89,9 @@ export const EventTypes = {
// Attendance
MissionAttendanceChange: "mission:attendance-change",
// Evaluations
EvaluationSubmit: "evaluation:submit",
// Missions
MissionAutoComplete: "mission:auto-complete",
MissionObjectiveRedactedToggle: "mission:objective-redacted-toggle",