Add risk center and editable submission flows
This commit is contained in:
@@ -103,6 +103,31 @@ const fallbackAdmin: AdminDashboardResponse = {
|
||||
{ category: 'Bestes Live Event', votes: 132550 },
|
||||
{ category: 'Clip des Jahres', votes: 98210 },
|
||||
],
|
||||
riskFlags: [
|
||||
{
|
||||
id: 1,
|
||||
source: 'vote',
|
||||
type: 'rapid_vote_updates',
|
||||
severity: 'high',
|
||||
status: 'open',
|
||||
summary: 'Mehrere Voting-Aenderungen in kurzer Zeit erkannt.',
|
||||
twitchUserId: 'demo_user',
|
||||
createdFromIp: '127.0.0.1',
|
||||
createdAt: '2026-06-17T08:40:00Z',
|
||||
metadataJson: '{"recentVoteSubmissions":3}',
|
||||
},
|
||||
],
|
||||
auditEntries: [
|
||||
{
|
||||
id: 1,
|
||||
adminTwitchUserId: 'jayuhime_admin',
|
||||
actionType: 'category.update',
|
||||
entityType: 'category',
|
||||
entityId: '1',
|
||||
summary: 'Kategorie VTuber des Jahres wurde aktualisiert.',
|
||||
createdAt: '2026-06-17T08:32:00Z',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
const fallbackAdminSeasons: AdminSeasonListItem[] = [
|
||||
@@ -158,6 +183,8 @@ const emptyAdmin: AdminDashboardResponse = {
|
||||
metrics: [],
|
||||
activities: [],
|
||||
topCategories: [],
|
||||
riskFlags: [],
|
||||
auditEntries: [],
|
||||
}
|
||||
|
||||
const emptyAdminSeasons: AdminSeasonListItem[] = []
|
||||
@@ -269,5 +296,10 @@ export const useAwardsStore = defineStore('awards', {
|
||||
await this.loadAdmin()
|
||||
return result
|
||||
},
|
||||
async resolveRiskFlag(riskFlagId: number, status = 'resolved') {
|
||||
const result = await api.resolveRiskFlag(riskFlagId, status)
|
||||
await this.loadAdmin()
|
||||
return result
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user