Skip to content

Commit ca45c0f

Browse files
Merge pull request #4638 from OneCommunityGlobal/veda-promotion-eligibility-color-coding-changes
Veda Promotion Eligibility Color Coding Changes
2 parents eb66b46 + a160b93 commit ca45c0f

3 files changed

Lines changed: 47 additions & 3 deletions

File tree

src/components/HGNPRDashboard/PromotionEligibility.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ function PromotionEligibility({ currentUser }) {
109109
}) => (
110110
<tr key={id}>
111111
<td data-label="Reviewer Name">{reviewerName}</td>
112-
<td data-label="Weekly Requirements">{weeklyRequirementsMet ? '✔️' : '❌'}</td>
112+
<td
113+
data-label="Weekly Requirements"
114+
className={weeklyRequirementsMet ? 'status-met' : 'status-not-met'}
115+
>
116+
{weeklyRequirementsMet ? '✓ Has Met' : '✗ Has not Met'}
117+
</td>
113118
<td data-label="Required PRs">{requiredPRs}</td>
114119
<td data-label="Total Reviews Done">{totalReviews}</td>
115120
<td data-label="Remaining Weeks">{remainingWeeks}</td>

src/components/HGNPRDashboard/PromotionEligibility.module.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,26 @@
151151
color: white;
152152
}
153153

154+
/* Status colors for Weekly Requirements */
155+
.promo-table td.status-met {
156+
color: #22863a;
157+
font-weight: 500;
158+
}
159+
160+
.promo-table td.status-not-met {
161+
color: #cb2431;
162+
font-weight: 500;
163+
}
164+
165+
/* Dark mode status colors - higher specificity to override td color */
166+
.promo-table-container.dark .promo-table td.status-met {
167+
color: #53d06e !important;
168+
}
169+
170+
.promo-table-container.dark .promo-table td.status-not-met {
171+
color: #fa7970 !important;
172+
}
173+
154174
/* mobile */
155175

156176
@media screen and (max-width: 768px) {
@@ -221,4 +241,13 @@
221241
background-color: transparent;
222242
color: #f0f0f0;
223243
}
244+
245+
/* Mobile dark mode status colors */
246+
.promo-table-container.dark .promo-table td.status-met {
247+
color: #53d06e !important;
248+
}
249+
250+
.promo-table-container.dark .promo-table td.status-not-met {
251+
color: #fa7970 !important;
252+
}
224253
}

src/components/QuestionnaireDashboard/PromotionTable.module.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@
9494
color: #586069;
9595
}
9696

97-
.statusMet {
97+
/* Status colors for Weekly Requirements */
98+
.promotionTable td.statusMet {
9899
color: #22863a;
99100
}
100101

101-
.statusNotMet {
102+
.promotionTable td.statusNotMet {
102103
color: #cb2431;
103104
}
104105

@@ -185,6 +186,15 @@
185186
color: #f85149;
186187
}
187188

189+
/* Dark mode status colors - higher specificity to override td color */
190+
[data-theme='dark'] .promotionTable td.statusMet {
191+
color: #53d06e !important;
192+
}
193+
194+
[data-theme='dark'] .promotionTable td.statusNotMet {
195+
color: #fa7970 !important;
196+
}
197+
188198
[data-theme='dark'] .statusMet {
189199
color: #3fb950 !important;
190200
}

0 commit comments

Comments
 (0)