Add isActive field to challenge chains and update localization; implement functionality to toggle chain status in the UI, enhancing task management and user experience.
This commit is contained in:
@@ -27,6 +27,7 @@ export interface ChallengeChain {
|
||||
id: string
|
||||
name: string
|
||||
tasks: ChallengeTask[] // Populated
|
||||
isActive: boolean
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
}
|
||||
@@ -132,11 +133,13 @@ export interface UpdateTaskRequest {
|
||||
export interface CreateChainRequest {
|
||||
name: string
|
||||
taskIds: string[] // Array of task IDs
|
||||
isActive?: boolean
|
||||
}
|
||||
|
||||
export interface UpdateChainRequest {
|
||||
name?: string
|
||||
taskIds?: string[]
|
||||
isActive?: boolean
|
||||
}
|
||||
|
||||
// ========== Stats v2 Types ==========
|
||||
|
||||
Reference in New Issue
Block a user