Skip to content

Commit d3584d7

Browse files
committed
Added workerName in submissions grid
1 parent e90730f commit d3584d7

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

Servers/UI/OJS.Servers.Ui/ClientApp/src/common/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ interface ISubmissionsAdminGridViewType {
455455
participantName: string;
456456
problemId: number;
457457
problemName: string;
458+
workerName: string;
458459
submissionTypeId: number;
459460
submissionTypeName: string;
460461
isDeleted: boolean;

Servers/UI/OJS.Servers.Ui/ClientApp/src/pages/administration-new/submissions/admin-submissions-grid-def.tsx

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ const dataColumns: AdministrationGridColDef[] = [
6060
{
6161
field: 'problemName',
6262
headerName: 'Problem Name',
63-
align: 'center',
63+
align: 'left',
6464
headerAlign: 'center',
6565
type: 'string',
66-
flex: 2,
66+
flex: 2.5,
6767
filterable: false,
6868
sortable: false,
6969
renderCell: (params: GridRenderCellParams) => (
@@ -78,9 +78,9 @@ const dataColumns: AdministrationGridColDef[] = [
7878
field: 'contestName',
7979
headerName: 'Contest Name',
8080
headerAlign: 'center',
81-
align: 'center',
81+
align: 'left',
8282
type: 'string',
83-
flex: 2,
83+
flex: 3,
8484
filterable: false,
8585
sortable: false,
8686
renderCell: (params: GridRenderCellParams) => (
@@ -103,11 +103,11 @@ const dataColumns: AdministrationGridColDef[] = [
103103
},
104104
{
105105
field: 'isCompiledSuccessfully',
106-
headerName: 'Is Compiled Successfully',
106+
headerName: 'Compiled',
107107
align: 'center',
108108
headerAlign: 'center',
109109
type: 'boolean',
110-
flex: 1,
110+
flex: 0.6,
111111
filterable: false,
112112
sortable: false,
113113
},
@@ -117,16 +117,9 @@ const dataColumns: AdministrationGridColDef[] = [
117117
align: 'center',
118118
headerAlign: 'center',
119119
type: 'boolean',
120-
flex: 1,
120+
flex: 0.6,
121121
filterable: false,
122122
sortable: false,
123-
renderCell: (params: GridRenderCellParams) => (
124-
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
125-
{params.value === true
126-
? 'Processed'
127-
: 'Pending'}
128-
</div>
129-
),
130123
},
131124
{
132125
field: 'points',
@@ -158,6 +151,17 @@ const dataColumns: AdministrationGridColDef[] = [
158151
filterable: false,
159152
sortable: false,
160153
},
154+
{
155+
field: 'workerName',
156+
headerName: 'Worker Name',
157+
align: 'center',
158+
headerAlign: 'center',
159+
type: 'string',
160+
flex: 1,
161+
hidden: true,
162+
filterable: false,
163+
sortable: false,
164+
},
161165
{
162166
field: 'createdOn',
163167
headerName: `${CREATED_ON}`,

Services/Administration/OJS.Services.Administration.Models/Submissions/SubmissionInListModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public class SubmissionInListModel : IMapExplicitly
2323

2424
public string? ContestId { get; set; }
2525

26+
public string? WorkerName { get; set; }
27+
2628
public bool IsCompiledSuccessfully { get; set; }
2729

2830
public bool Processed { get; set; }

0 commit comments

Comments
 (0)