feat: implement extraction event handling and update extraction list on status changes
Some checks failed
Frontend CI / lint (push) Failing after 17s
Frontend CI / build (push) Has been skipped

This commit is contained in:
JSC
2025-08-25 10:58:10 +02:00
parent e029a692a6
commit 8f233aaef7
3 changed files with 52 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ export const authEvents = new EventEmitter()
export const playerEvents = new EventEmitter()
export const soundEvents = new EventEmitter()
export const userEvents = new EventEmitter()
export const extractionEvents = new EventEmitter()
// Auth event types
export const AUTH_EVENTS = {
@@ -60,3 +61,11 @@ export const SOUND_EVENTS = {
export const USER_EVENTS = {
USER_CREDITS_CHANGED: 'user_credits_changed',
} as const
// Extraction event types
export const EXTRACTION_EVENTS = {
EXTRACTION_STATUS_UPDATED: 'extraction_status_updated',
EXTRACTION_CREATED: 'extraction_created',
EXTRACTION_COMPLETED: 'extraction_completed',
EXTRACTION_FAILED: 'extraction_failed',
} as const