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:
parent
22b7343fa8
commit
21f61ca33f
4 changed files with 18 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ const TARGET_COLLECTIONS = [
|
||||||
{ label: "Loadouts", value: "loadouts" },
|
{ label: "Loadouts", value: "loadouts" },
|
||||||
{ label: "Market Listings", value: "market-listings" },
|
{ label: "Market Listings", value: "market-listings" },
|
||||||
{ label: "Market Negotiations", value: "market-negotiations" },
|
{ label: "Market Negotiations", value: "market-negotiations" },
|
||||||
|
{ label: "Evaluations", value: "evaluations" },
|
||||||
{ label: "Tickets", value: "tickets" },
|
{ label: "Tickets", value: "tickets" },
|
||||||
{ label: "Game Servers", value: "game-servers" },
|
{ label: "Game Servers", value: "game-servers" },
|
||||||
] as const;
|
] as const;
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,15 @@ export const PERMISSION_GROUPS: PermissionGroup[] = [
|
||||||
{ value: "user-notifications:delete", label: "Delete" },
|
{ 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 --------------------------------------------------------
|
// ---- Intelligence --------------------------------------------------------
|
||||||
{
|
{
|
||||||
|
|
@ -503,6 +512,10 @@ export const ALL_PERMISSION_VALUES = PERMISSION_GROUPS.flatMap((g) =>
|
||||||
"user-notifications:read",
|
"user-notifications:read",
|
||||||
"user-notifications:update",
|
"user-notifications:update",
|
||||||
"user-notifications:delete",
|
"user-notifications:delete",
|
||||||
|
"evaluations:create",
|
||||||
|
"evaluations:read",
|
||||||
|
"evaluations:update",
|
||||||
|
"evaluations:delete",
|
||||||
"missions:create",
|
"missions:create",
|
||||||
"missions:read",
|
"missions:read",
|
||||||
"missions:update",
|
"missions:update",
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ interface GameEventInput {
|
||||||
| "loadouts"
|
| "loadouts"
|
||||||
| "market-listings"
|
| "market-listings"
|
||||||
| "market-negotiations"
|
| "market-negotiations"
|
||||||
|
| "evaluations"
|
||||||
| "tickets"
|
| "tickets"
|
||||||
| "game-servers";
|
| "game-servers";
|
||||||
targetId?: number;
|
targetId?: number;
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,9 @@ export const EventTypes = {
|
||||||
// Attendance
|
// Attendance
|
||||||
MissionAttendanceChange: "mission:attendance-change",
|
MissionAttendanceChange: "mission:attendance-change",
|
||||||
|
|
||||||
|
// Evaluations
|
||||||
|
EvaluationSubmit: "evaluation:submit",
|
||||||
|
|
||||||
// Missions
|
// Missions
|
||||||
MissionAutoComplete: "mission:auto-complete",
|
MissionAutoComplete: "mission:auto-complete",
|
||||||
MissionObjectiveRedactedToggle: "mission:objective-redacted-toggle",
|
MissionObjectiveRedactedToggle: "mission:objective-redacted-toggle",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue