Skip to content

Commit 146d3f2

Browse files
authored
Chore : Minor improvements (#608)
1 parent d546607 commit 146d3f2

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

__tests__/user-details/task-duedate-hover.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ describe('Tasks On User Management Page', () => {
287287
);
288288

289289
expect(fourthTaskHTML).toContain('<div class="task-title">');
290-
expect(fourthTaskHTML).toContain('<progress class="green"');
290+
expect(fourthTaskHTML).toContain('<progress');
291291
expect(fourthTaskHTML).toContain('<div class="detail-block eta">');
292292
expect(fourthTaskHTML).toContain('<div class="detail-block status">');
293293
expect(fourthTaskHTML).toContain('<div class="detail-block startedOn">');

users/details/constants.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,20 @@ const iconMapper = {
2121
const MESSAGE_NOT_FOUND = 'Not Found';
2222
const MESSAGE_YEARS_OF_EXPERIENCE = 'Years of Experience';
2323
const noProgressbarStatuses = ['COMPLETED', 'DONE', 'VERIFIED'];
24+
const READABLE_STATUS = {
25+
UN_ASSIGNED: 'Unassigned',
26+
ASSIGNED: 'Assigned',
27+
IN_PROGRESS: 'In Progress',
28+
BLOCKED: 'Blocked',
29+
COMPLETED: 'Completed',
30+
NEEDS_REVIEW: 'Needs Review',
31+
IN_REVIEW: 'In Review',
32+
APPROVED: 'Approved',
33+
SMOKE_TESTING: 'Smoke Testing',
34+
SANITY_CHECK: 'Sanity Check',
35+
REGRESSION_CHECK: 'Regression Check',
36+
MERGED: 'Merged',
37+
RELEASED: 'Released',
38+
VERIFIED: 'Verifed',
39+
DONE: 'Done',
40+
};

users/details/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const generateCardUIInDev = (task) => {
150150
</div>
151151
<div class="detail-block status">
152152
<p class="div-heading">Status</p>
153-
<p class="div-detail">${task.status || 'N/A'}</p>
153+
<p class="div-detail">${READABLE_STATUS[task.status] || 'N/A'}</p>
154154
</div>
155155
</div>
156156
<div class="row">

0 commit comments

Comments
 (0)