Spaces:
Paused
Paused
dushyantsingh0 commited on
Commit ·
31be316
1
Parent(s): 646153f
backend stabilization
Browse files
frontend/apps/internal/src/components/EscalationCentre.module.css
CHANGED
|
@@ -259,9 +259,10 @@
|
|
| 259 |
}
|
| 260 |
|
| 261 |
.missionTable td {
|
| 262 |
-
padding:
|
| 263 |
border-bottom: 1px solid var(--bg-panel);
|
| 264 |
font-size: 13px;
|
|
|
|
| 265 |
}
|
| 266 |
|
| 267 |
.assetCell {
|
|
@@ -270,6 +271,11 @@
|
|
| 270 |
gap: 4px;
|
| 271 |
}
|
| 272 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 273 |
.assetId {
|
| 274 |
font-size: 10px;
|
| 275 |
font-weight: 900;
|
|
@@ -280,6 +286,7 @@
|
|
| 280 |
.assetTitle {
|
| 281 |
font-weight: 750;
|
| 282 |
color: var(--text-main);
|
|
|
|
| 283 |
}
|
| 284 |
|
| 285 |
.priorityBadge {
|
|
|
|
| 259 |
}
|
| 260 |
|
| 261 |
.missionTable td {
|
| 262 |
+
padding: 16px 32px;
|
| 263 |
border-bottom: 1px solid var(--bg-panel);
|
| 264 |
font-size: 13px;
|
| 265 |
+
vertical-align: middle;
|
| 266 |
}
|
| 267 |
|
| 268 |
.assetCell {
|
|
|
|
| 271 |
gap: 4px;
|
| 272 |
}
|
| 273 |
|
| 274 |
+
.priorityCell, .deltaCell, .riskCell, .overdueCell {
|
| 275 |
+
display: flex;
|
| 276 |
+
align-items: center;
|
| 277 |
+
}
|
| 278 |
+
|
| 279 |
.assetId {
|
| 280 |
font-size: 10px;
|
| 281 |
font-weight: 900;
|
|
|
|
| 286 |
.assetTitle {
|
| 287 |
font-weight: 750;
|
| 288 |
color: var(--text-main);
|
| 289 |
+
line-height: 1.2;
|
| 290 |
}
|
| 291 |
|
| 292 |
.priorityBadge {
|
frontend/apps/internal/src/components/EscalationCentre.tsx
CHANGED
|
@@ -166,46 +166,56 @@ export const EscalationCentre: React.FC = () => {
|
|
| 166 |
</tr>
|
| 167 |
</thead>
|
| 168 |
<tbody>
|
| 169 |
-
|
| 170 |
<tr key={breach.id} className={breach.minutes_remaining < 0 ? styles.breachedRow : ''}>
|
| 171 |
-
<td
|
| 172 |
-
<
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
<span className={styles.priorityBadge} data-priority={breach.priority}>
|
| 177 |
-
{breach.priority}
|
| 178 |
-
</span>
|
| 179 |
</td>
|
| 180 |
-
<td
|
| 181 |
-
<div className={styles.
|
| 182 |
-
<
|
| 183 |
-
|
| 184 |
-
{breach.minutes_remaining < 0 ? 'EXPIRED' : `${breach.minutes_remaining}m`}
|
| 185 |
</span>
|
| 186 |
</div>
|
| 187 |
</td>
|
| 188 |
-
<td
|
| 189 |
-
<div className={styles.
|
| 190 |
-
<div className={styles.
|
| 191 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
</div>
|
| 193 |
</td>
|
| 194 |
<td className={styles.overdueCell}>
|
| 195 |
-
<
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
|
|
|
|
|
|
| 203 |
</td>
|
| 204 |
<td>
|
| 205 |
-
<
|
| 206 |
</td>
|
| 207 |
</tr>
|
| 208 |
-
|
| 209 |
<tr><td colSpan={5} className={styles.emptyTable}>No active SLA missions detected for current filters.</td></tr>
|
| 210 |
)}
|
| 211 |
</tbody>
|
|
|
|
| 166 |
</tr>
|
| 167 |
</thead>
|
| 168 |
<tbody>
|
| 169 |
+
{paginatedBreaches.length > 0 ? paginatedBreaches.map((breach: Breach) => (
|
| 170 |
<tr key={breach.id} className={breach.minutes_remaining < 0 ? styles.breachedRow : ''}>
|
| 171 |
+
<td style={{ verticalAlign: 'middle' }}>
|
| 172 |
+
<div className={styles.assetCell}>
|
| 173 |
+
<span className={styles.assetId}>{breach.id.slice(0, 8).toUpperCase()}</span>
|
| 174 |
+
<span className={styles.assetTitle}>{breach.title}</span>
|
| 175 |
+
</div>
|
|
|
|
|
|
|
|
|
|
| 176 |
</td>
|
| 177 |
+
<td>
|
| 178 |
+
<div className={styles.priorityCell}>
|
| 179 |
+
<span className={styles.priorityBadge} data-priority={breach.priority}>
|
| 180 |
+
{breach.priority}
|
|
|
|
| 181 |
</span>
|
| 182 |
</div>
|
| 183 |
</td>
|
| 184 |
+
<td>
|
| 185 |
+
<div className={styles.deltaCell}>
|
| 186 |
+
<div className={styles.deltaTimer}>
|
| 187 |
+
<Clock size={12} />
|
| 188 |
+
<span style={{ color: breach.minutes_remaining < 0 ? 'var(--error)' : breach.minutes_remaining < 30 ? 'var(--warning)' : 'inherit' }}>
|
| 189 |
+
{breach.minutes_remaining < 0 ? 'EXPIRED' : `${breach.minutes_remaining}m`}
|
| 190 |
+
</span>
|
| 191 |
+
</div>
|
| 192 |
+
</div>
|
| 193 |
+
</td>
|
| 194 |
+
<td>
|
| 195 |
+
<div className={styles.riskCell}>
|
| 196 |
+
<div className={styles.riskIndicator}>
|
| 197 |
+
<div className={styles.riskDot} style={{ background: breach.is_breached ? 'var(--error)' : breach.risk_score > 50 ? 'var(--warning)' : 'var(--success)' }} />
|
| 198 |
+
{breach.risk_score}%
|
| 199 |
+
</div>
|
| 200 |
</div>
|
| 201 |
</td>
|
| 202 |
<td className={styles.overdueCell}>
|
| 203 |
+
<div className={styles.overdueCell}>
|
| 204 |
+
<span style={{
|
| 205 |
+
color: (breach as any).is_breached ? 'var(--error)' : '#94A3B8',
|
| 206 |
+
fontWeight: (breach as any).is_breached ? 800 : 400
|
| 207 |
+
}}>
|
| 208 |
+
{(breach as any).is_breached && (breach as any).overdue_minutes
|
| 209 |
+
? `${((breach as any).overdue_minutes / 60).toFixed(1)}h`
|
| 210 |
+
: '---'}
|
| 211 |
+
</span>
|
| 212 |
+
</div>
|
| 213 |
</td>
|
| 214 |
<td>
|
| 215 |
+
<div className={styles.statusBadge}>{breach.status}</div>
|
| 216 |
</td>
|
| 217 |
</tr>
|
| 218 |
+
)) : (
|
| 219 |
<tr><td colSpan={5} className={styles.emptyTable}>No active SLA missions detected for current filters.</td></tr>
|
| 220 |
)}
|
| 221 |
</tbody>
|