Add workplaceNumber field to user authentication and statistics API. Update frontend components and localization to support new field. Enhance user experience by displaying workplace information in relevant areas.
This commit is contained in:
@@ -4,6 +4,7 @@ export interface ChallengeUser {
|
||||
_id: string
|
||||
id: string
|
||||
nickname: string
|
||||
workplaceNumber?: string
|
||||
createdAt: string
|
||||
}
|
||||
|
||||
@@ -180,6 +181,7 @@ export interface ChainProgress {
|
||||
export interface ActiveParticipant {
|
||||
userId: string
|
||||
nickname: string
|
||||
workplaceNumber?: string
|
||||
totalSubmissions: number
|
||||
completedTasks: number
|
||||
chainProgress: ChainProgress[]
|
||||
@@ -194,6 +196,7 @@ export interface TaskProgress {
|
||||
export interface ParticipantProgress {
|
||||
userId: string
|
||||
nickname: string
|
||||
workplaceNumber?: string
|
||||
taskProgress: TaskProgress[]
|
||||
completedCount: number
|
||||
progressPercent: number
|
||||
@@ -262,6 +265,7 @@ export interface TestSubmissionResult {
|
||||
export interface ChainSubmissionsParticipant {
|
||||
userId: string
|
||||
nickname: string
|
||||
workplaceNumber?: string
|
||||
completedTasks: number
|
||||
totalTasks: number
|
||||
progressPercent: number
|
||||
|
||||
Reference in New Issue
Block a user