feat(khira): enterprise suite overhaul with analytics dashboard, bulk actions, command palette, SLA monitoring, and zero-FOUT vector icons
This commit is contained in:
+508
-10
@@ -237,14 +237,14 @@ button {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
background: var(--sc-hi);
|
||||
background: transparent;
|
||||
font-size: 18px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
margin-left: 4px;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||||
border: none !important;
|
||||
}
|
||||
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
|
||||
|
||||
@@ -1333,28 +1333,33 @@ dd { word-break: break-word; }
|
||||
inset: 0;
|
||||
border-radius: 50%;
|
||||
pointer-events: none;
|
||||
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.8px), #fff calc(100% - 3.2px));
|
||||
mask: radial-gradient(farthest-side, transparent calc(100% - 3.8px), #fff calc(100% - 3.2px));
|
||||
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #fff calc(100% - 2px));
|
||||
mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #fff calc(100% - 2px));
|
||||
}
|
||||
|
||||
.av-core {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: calc(100% - 8px);
|
||||
height: calc(100% - 8px);
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
font-size: calc(var(--sz) * 0.58);
|
||||
box-shadow: none;
|
||||
font-size: calc(var(--sz) * 0.52);
|
||||
border: none !important;
|
||||
outline: none !important;
|
||||
box-shadow: none !important;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.av-wrap.av-admin .av-core {
|
||||
font-size: calc(var(--sz-admin) * 0.58);
|
||||
width: calc(100% - 8px);
|
||||
height: calc(100% - 8px);
|
||||
font-size: calc(var(--sz-admin) * 0.52);
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
box-shadow: none !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.av-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
|
||||
@@ -1700,3 +1705,496 @@ dd { word-break: break-word; }
|
||||
box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
|
||||
}
|
||||
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════════════════
|
||||
ENTERPRISE SUITE STYLES (Analytics, SLA, Bulk Actions, Admin, Cmd+K, Tags)
|
||||
══════════════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
/* ── Card Priority Accents & Checkboxes ── */
|
||||
.card {
|
||||
position: relative;
|
||||
transition: transform 0.2s var(--e), border-color 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
.card.p-critical { border-left: 3px solid #ef4444 !important; }
|
||||
.card.p-high { border-left: 3px solid #f97316 !important; }
|
||||
.card.p-medium { border-left: 3px solid #eab308 !important; }
|
||||
.card.p-low { border-left: 3px solid #10b981 !important; }
|
||||
|
||||
.card-check {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
accent-color: #10b981;
|
||||
cursor: pointer;
|
||||
z-index: 2;
|
||||
opacity: 0.85;
|
||||
}
|
||||
.card.selected {
|
||||
border-color: rgba(16, 185, 129, 0.6) !important;
|
||||
background: rgba(16, 185, 129, 0.08) !important;
|
||||
box-shadow: 0 0 16px rgba(16, 185, 129, 0.15) !important;
|
||||
}
|
||||
|
||||
/* ── SLA Progress Bar & Overdue Chip ── */
|
||||
.sla-wrap {
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.sla-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 11px;
|
||||
color: var(--sub);
|
||||
}
|
||||
.sla-bar {
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.sla-fill {
|
||||
height: 100%;
|
||||
border-radius: 2px;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
.sla-fill.good { background: #10b981; }
|
||||
.sla-fill.warning { background: #f59e0b; }
|
||||
.sla-fill.danger { background: #f97316; }
|
||||
.sla-fill.breached { background: #ef4444; }
|
||||
|
||||
.badge-overdue {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
background: rgba(239, 68, 68, 0.2);
|
||||
color: #f87171;
|
||||
border: 1px solid rgba(239, 68, 68, 0.4);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 6px;
|
||||
animation: pulseOverdue 2s infinite ease-in-out;
|
||||
}
|
||||
@keyframes pulseOverdue {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.6; }
|
||||
}
|
||||
|
||||
/* ── Tags / Labels ── */
|
||||
.tag-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
padding: 2px 8px;
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
color: var(--txt);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.tag-remove-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--sub);
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
font-size: 13px;
|
||||
line-height: 1;
|
||||
}
|
||||
.tag-remove-btn:hover { color: #f87171; }
|
||||
|
||||
/* ── Bulk Actions Floating Toolbar ── */
|
||||
.bulk-bar {
|
||||
position: fixed;
|
||||
bottom: 24px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translate3d(0, 0, 0);
|
||||
z-index: 900;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 10px 20px;
|
||||
background: rgba(10, 14, 22, 0.85);
|
||||
backdrop-filter: blur(20px) saturate(180%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||||
border-radius: 36px;
|
||||
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(16, 185, 129, 0.2);
|
||||
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
|
||||
}
|
||||
.bulk-bar[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
.bulk-info {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--txt);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.bulk-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.bulk-actions .chip.del {
|
||||
color: #f87171;
|
||||
border-color: rgba(239, 68, 68, 0.3);
|
||||
}
|
||||
.bulk-actions .chip.del:hover {
|
||||
background: rgba(239, 68, 68, 0.2);
|
||||
border-color: #ef4444;
|
||||
}
|
||||
|
||||
/* ── Analytics Dashboard ── */
|
||||
.analytics-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1.8fr 1fr;
|
||||
gap: 16px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.analytics-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
.chart-card {
|
||||
background: rgba(12, 16, 26, 0.65);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 20px;
|
||||
padding: 20px;
|
||||
backdrop-filter: blur(14px);
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
.chart-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.chart-header h3 {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--txt);
|
||||
}
|
||||
.chart-legend {
|
||||
font-size: 12px;
|
||||
color: var(--sub);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.chart-legend i {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 2px;
|
||||
vertical-align: middle;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.leg-created { background: #38bdf8; }
|
||||
.leg-resolved { background: #10b981; }
|
||||
|
||||
.canvas-wrap {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
.canvas-wrap canvas {
|
||||
width: 100% !important;
|
||||
max-height: 240px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.analytics-subgrid {
|
||||
display: grid;
|
||||
grid-template-columns: 1.4fr 1fr;
|
||||
gap: 16px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.analytics-subgrid { grid-template-columns: 1fr; }
|
||||
}
|
||||
.workload-card, .activity-card {
|
||||
background: rgba(12, 16, 26, 0.65);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 20px;
|
||||
padding: 20px;
|
||||
backdrop-filter: blur(14px);
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
.workload-card h3, .activity-card h3 {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 14px;
|
||||
color: var(--txt);
|
||||
}
|
||||
|
||||
.workload-table-wrap {
|
||||
overflow-x: auto;
|
||||
}
|
||||
.workload-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 13px;
|
||||
}
|
||||
.workload-table th {
|
||||
text-align: left;
|
||||
padding: 8px 12px;
|
||||
color: var(--sub);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
.workload-table td {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
|
||||
color: var(--txt);
|
||||
}
|
||||
.workload-user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.stat-pill {
|
||||
display: inline-block;
|
||||
padding: 2px 8px;
|
||||
border-radius: 10px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.stat-pill.open { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
|
||||
.stat-pill.prog { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
|
||||
.stat-pill.done { background: rgba(16, 185, 129, 0.15); color: #34d399; }
|
||||
|
||||
.activity-stream-wrap {
|
||||
max-height: 380px;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding-right: 6px;
|
||||
}
|
||||
.act-item {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
|
||||
font-size: 12px;
|
||||
}
|
||||
.act-body {
|
||||
flex: 1;
|
||||
}
|
||||
.act-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.act-head strong { color: var(--txt); }
|
||||
.act-head span { color: var(--sub); font-size: 11px; }
|
||||
.act-text { color: var(--sub); line-height: 1.4; }
|
||||
|
||||
/* ── Admin Management ── */
|
||||
.admin-tabs-bar {
|
||||
margin: 16px 0;
|
||||
}
|
||||
.admin-users-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: rgba(12, 16, 26, 0.65);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 18px;
|
||||
overflow: hidden;
|
||||
font-size: 13px;
|
||||
}
|
||||
.admin-users-table th {
|
||||
text-align: left;
|
||||
padding: 12px 16px;
|
||||
color: var(--sub);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
.admin-users-table td {
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
|
||||
color: var(--txt);
|
||||
}
|
||||
.admin-role-select {
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||||
border-radius: 8px;
|
||||
color: var(--txt);
|
||||
padding: 4px 8px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* ── Command Palette (Cmd+K) ── */
|
||||
.cmd-palette-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.65);
|
||||
backdrop-filter: blur(16px);
|
||||
z-index: 1000;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 20px;
|
||||
}
|
||||
.cmd-palette-box {
|
||||
width: 100%;
|
||||
max-width: 580px;
|
||||
background: rgba(14, 18, 28, 0.95);
|
||||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), 0 0 32px rgba(16, 185, 129, 0.15);
|
||||
overflow: hidden;
|
||||
}
|
||||
.cmd-palette-search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 14px 18px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
color: var(--sub);
|
||||
}
|
||||
.cmd-palette-search input {
|
||||
flex: 1;
|
||||
background: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
color: var(--txt);
|
||||
font-size: 15px;
|
||||
}
|
||||
.cmd-palette-search kbd, .cmd-footer kbd, .shortcuts-content kbd {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
border-radius: 4px;
|
||||
padding: 2px 6px;
|
||||
font-size: 11px;
|
||||
font-family: inherit;
|
||||
color: var(--sub);
|
||||
}
|
||||
.cmd-results-list {
|
||||
max-height: 340px;
|
||||
overflow-y: auto;
|
||||
padding: 8px;
|
||||
}
|
||||
.cmd-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 14px;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
font-size: 13px;
|
||||
color: var(--txt);
|
||||
}
|
||||
.cmd-item:hover, .cmd-item.active {
|
||||
background: rgba(16, 185, 129, 0.15);
|
||||
color: #34d399;
|
||||
}
|
||||
.cmd-item-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.cmd-item-type {
|
||||
font-size: 11px;
|
||||
color: var(--sub);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
padding: 2px 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.cmd-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 16px;
|
||||
padding: 10px 18px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
||||
font-size: 11px;
|
||||
color: var(--sub);
|
||||
}
|
||||
|
||||
/* ── Keyboard Shortcuts Modal ── */
|
||||
.shortcuts-box {
|
||||
max-width: 480px;
|
||||
padding: 20px;
|
||||
}
|
||||
.shortcuts-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.shortcuts-header h3 { font-size: 16px; color: var(--txt); }
|
||||
.shortcuts-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.sc-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 6px 0;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* ── Loading Skeletons & Empty States ── */
|
||||
@keyframes shimmer {
|
||||
0% { background-position: -400px 0; }
|
||||
100% { background-position: 400px 0; }
|
||||
}
|
||||
.skeleton-card {
|
||||
height: 120px;
|
||||
border-radius: 16px;
|
||||
background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
|
||||
background-size: 800px 100%;
|
||||
animation: shimmer 1.5s infinite linear;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 60px 20px;
|
||||
text-align: center;
|
||||
color: var(--sub);
|
||||
}
|
||||
.empty-state svg {
|
||||
margin-bottom: 14px;
|
||||
color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
.empty-state h4 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: var(--txt);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.empty-state p {
|
||||
font-size: 13px;
|
||||
max-width: 320px;
|
||||
line-height: 1.4;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user