feat(khira): complete remediation, performance optimization, and Cloudflare Turnstile integration

- Backend:
  - Fix ListTickets parameter order mismatch for assignee filtering
  - Replicate all 13 PostgreSQL tables and columns during disaster recovery sync and rollback
  - Implement server-side session store with HttpOnly cookies and Bearer tokens
  - Add profile update verification requiring current password
  - Whitelist allowed file uploads and apply strict security headers (nosniff, CSP)
  - Enforce role check on error deletion (admin/lead/tester only) and authenticate SSE stream
  - Align foreign key user_id for saved filters and api tokens
  - Add ReopenTicket endpoint and workflow
  - Integrate Cloudflare Turnstile verification with testing/production key support
- Frontend:
  - Remove liquid glass displacement filter and lens capsule for high-performance UI
  - Eliminate recursive backdrop-filters and heavy inset shadows
  - Add debounced search and optimize SSE re-rendering
  - Wire Saved Views filter bar with creation, active indicators, and deletion
  - Add Linked & Related Tickets management UI to sheet
  - Seed 6 demo personas in PostgreSQL with instant sign-in
  - Add Cloudflare Turnstile widgets to authentication modals
  - Add keyboard arrow navigation to Command Palette
- Image Manipulator, Docs & Tooling:
  - Sync image manipulator updates, docs, and test coordinates
This commit is contained in:
2026-11-17 18:39:25 +05:30
parent 72ea6cd59d
commit cc6bed127b
84 changed files with 1869 additions and 1339 deletions
+147 -186
View File
@@ -49,38 +49,31 @@
--sc-hi: rgba(22, 30, 46, 0.8);
--sc-hh: rgba(30, 41, 62, 0.9);
/* Ultra-smooth GPU Composited Glass Variables */
--glass-blur: blur(14px) saturate(180%) contrast(104%);
--glass-shadow:
0px 8px 30px rgba(0, 0, 0, 0.65),
inset 0px 1.5px 1.5px rgba(255, 255, 255, 0.28),
inset 0px -1px 2px rgba(0, 0, 0, 0.75);
--glass-shadow-hover:
0px 14px 44px rgba(0, 0, 0, 0.8),
0 0 20px rgba(16, 185, 129, 0.18),
inset 0px 2px 2px rgba(255, 255, 255, 0.45),
inset 0px -1px 2px rgba(255, 255, 255, 0.35);
--glass-shadow-lg:
0px 20px 60px rgba(0, 0, 0, 0.85),
inset 0px 2px 20px rgba(0, 0, 0, 0.35),
inset 0px -1px 2px rgba(255, 255, 255, 0.22);
/* Clean High-Performance Surface Variables */
--glass-blur: none;
--glass-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
--glass-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 16px rgba(16, 185, 129, 0.18);
--glass-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.75);
/* Prismatic Refraction Border Gradient */
--liquid-prism-border: linear-gradient(
135deg,
rgba(255, 255, 255, 0.55) 0%,
rgba(56, 189, 248, 0.35) 20%,
rgba(255, 255, 255, 0.08) 45%,
rgba(168, 85, 247, 0.25) 75%,
rgba(16, 185, 129, 0.35) 100%
);
--liquid-prism-border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="light"] {
color-scheme: light;
--surf: #090c12;
--on-s: #f8fafc;
--on-sv: #94a3b8;
--surf: #f8fafc;
--obsidian-void: #ffffff;
--on-s: #0f172a;
--on-sv: #475569;
--out: rgba(0, 0, 0, 0.12);
--out-v: rgba(0, 0, 0, 0.06);
--sc-lo: #f1f5f9;
--sc: #e2e8f0;
--sc-hi: #cbd5e1;
--sc-hh: #94a3b8;
--sec-c: rgba(0, 0, 0, 0.05);
--glass-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
--glass-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
--glass-shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.15);
}
body {
@@ -617,6 +610,114 @@ button {
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
/* ── Saved Views Filter Bar ── */
.saved-filter-bar {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 14px;
margin-bottom: 16px;
background: rgba(18, 24, 38, 0.6);
border: 1px solid var(--border-subtle);
border-radius: 12px;
overflow-x: auto;
scrollbar-width: none;
}
.sf-header {
display: flex;
align-items: center;
white-space: nowrap;
}
.saved-filter-label {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--on-s-dim);
display: flex;
align-items: center;
gap: 4px;
}
.sf-items {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
overflow-x: auto;
scrollbar-width: none;
}
.sf-empty {
font-size: 12px;
color: var(--on-s-dim);
font-style: italic;
padding: 0 4px;
}
.saved-filter-pill {
display: inline-flex;
align-items: center;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-subtle);
border-radius: 20px;
padding: 3px 10px;
font-size: 12px;
font-weight: 500;
color: var(--on-s);
cursor: pointer;
transition: all 0.15s ease;
white-space: nowrap;
user-select: none;
}
.saved-filter-pill:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
}
.saved-filter-pill.active {
background: rgba(147, 197, 253, 0.15);
border-color: var(--pri);
color: #93c5fd;
font-weight: 600;
}
.sf-click {
cursor: pointer;
}
.sf-del {
background: transparent;
border: none;
color: var(--on-s-dim);
margin-left: 6px;
font-size: 14px;
line-height: 1;
padding: 0 2px;
cursor: pointer;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
transition: color 0.15s;
}
.sf-del:hover {
color: #ef4444;
}
.btn-save-filter {
display: inline-flex;
align-items: center;
gap: 4px;
background: transparent;
border: 1px dashed var(--border-subtle);
border-radius: 20px;
padding: 3px 10px;
font-size: 12px;
font-weight: 500;
color: var(--pri);
cursor: pointer;
transition: all 0.15s ease;
white-space: nowrap;
}
.btn-save-filter:hover {
background: rgba(147, 197, 253, 0.1);
border-color: var(--pri);
}
/* ── Luminous Obsidian Gem Badges ── */
.pb, .stt, .tag, .sv {
display: inline-flex;
@@ -684,19 +785,16 @@ button {
}
.col {
scroll-snap-align: start;
background: linear-gradient(180deg, rgba(16, 22, 34, 0.55) 0%, rgba(9, 12, 18, 0.75) 100%);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border-radius: 28px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.18);
background: rgba(14, 18, 28, 0.88);
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
padding: 10px 14px 18px;
display: flex;
flex-direction: column;
gap: 12px;
align-self: start;
min-width: 0;
transform: translateZ(0);
}
.col h3 {
display: flex;
@@ -715,54 +813,24 @@ button {
}
.col h3 small { margin-left: auto; font-size: 12px; color: var(--on-sv); }
/* ── Refractive Liquid Glass Card (Ultra Smooth 120 FPS) ── */
/* ── High-Performance Card ── */
.card {
position: relative;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 25%, transparent 60%),
linear-gradient(145deg, rgba(20, 26, 40, 0.72) 0%, rgba(8, 11, 18, 0.85) 100%);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
background: rgba(20, 26, 38, 0.95);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: var(--glass-shadow);
padding: 16px;
display: grid;
gap: 10px;
cursor: pointer;
transition: transform 0.22s var(--e), box-shadow 0.22s var(--e), background 0.22s var(--e);
transform: translateZ(0);
transition: transform 0.18s var(--e), box-shadow 0.18s var(--e), border-color 0.18s var(--e);
overflow: hidden;
will-change: transform;
}
/* Prismatic Refraction Bezel Meniscus */
.card::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
border: 1px solid rgba(255, 255, 255, 0.1);
border-top: 1px solid rgba(255, 255, 255, 0.28);
pointer-events: none;
z-index: 2;
transition: opacity 0.2s var(--e);
}
.card:hover {
transform: translateY(-3px) scale(1.008);
transform: translateY(-2px);
border-color: rgba(16, 185, 129, 0.4);
box-shadow: var(--glass-shadow-hover);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 25%, transparent 60%),
linear-gradient(145deg, rgba(24, 32, 48, 0.82) 0%, rgba(10, 14, 22, 0.92) 100%);
}
.card:hover::before {
background: linear-gradient(
135deg,
rgba(255, 255, 255, 0.8) 0%,
rgba(56, 189, 248, 0.55) 20%,
rgba(255, 255, 255, 0.15) 45%,
rgba(168, 85, 247, 0.4) 75%,
rgba(16, 185, 129, 0.5) 100%
);
}
.card h4 {
font-size: 15px;
@@ -780,7 +848,7 @@ button {
.empty { text-align: center; color: var(--on-sv); padding: 24px 8px; }
.anim .card, .anim .li { animation: rise .4s var(--e) both; animation-delay: calc(var(--i,0)*35ms); }
/* ── Refractive Liquid Glass List Items ── */
/* ── High-Performance List Items ── */
.list { display: grid; gap: 6px; }
.li {
position: relative;
@@ -789,38 +857,22 @@ button {
gap: 16px;
align-items: center;
padding: 14px 18px;
border-radius: 20px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 25%, transparent 60%),
linear-gradient(145deg, rgba(20, 26, 40, 0.72) 0%, rgba(8, 11, 18, 0.85) 100%);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
background: rgba(20, 26, 38, 0.95);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: var(--glass-shadow);
cursor: pointer;
text-align: left;
transition: transform 0.2s var(--e), box-shadow 0.2s var(--e), background 0.2s var(--e);
transform: translateZ(0);
transition: transform 0.18s var(--e), box-shadow 0.18s var(--e), background 0.18s var(--e);
overflow: hidden;
will-change: transform;
}
.li::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
border: 1px solid rgba(255, 255, 255, 0.08);
border-top: 1px solid rgba(255, 255, 255, 0.22);
pointer-events: none;
z-index: 2;
}
.li:hover {
transform: translateY(-2px);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 25%, transparent 60%),
linear-gradient(145deg, rgba(24, 32, 48, 0.82) 0%, rgba(10, 14, 22, 0.92) 100%);
background: rgba(26, 34, 50, 0.98);
border-color: rgba(16, 185, 129, 0.4);
box-shadow: var(--glass-shadow-hover);
}
}
.lead {
width: 44px;
height: 44px;
@@ -1615,97 +1667,6 @@ dd { word-break: break-word; }
gap: 6px;
}
/* ══════════════════════════════════════════════════════════════════
KUBE.IO MAGNIFYING GLASS SECTION IMPLEMENTATION
Refraction lens with magnification zoom, edge deflection & specular bloom
══════════════════════════════════════════════════════════════════ */
.kube-lens-capsule {
position: fixed;
top: 0;
left: 0;
width: 210px;
height: 150px;
border-radius: 75px;
z-index: 9999;
cursor: grab;
backdrop-filter: url(#kube-magnifying-glass-filter);
-webkit-backdrop-filter: url(#kube-magnifying-glass-filter);
box-shadow:
0px 12px 42px rgba(0, 0, 0, 0.75),
inset 0px 2px 24px rgba(0, 0, 0, 0.4),
inset 0px -2px 24px rgba(255, 255, 255, 0.25);
border: 1px solid rgba(255, 255, 255, 0.22);
user-select: none;
-webkit-user-select: none;
touch-action: none;
transform: translate3d(240px, 180px, 0);
will-change: transform;
transition: transform 0.15s ease-out, box-shadow 0.2s ease;
}
.kube-lens-capsule:active {
cursor: grabbing;
box-shadow:
0px 24px 68px rgba(0, 0, 0, 0.9),
inset 0px 2px 28px rgba(0, 0, 0, 0.5),
inset 0px -2px 28px rgba(255, 255, 255, 0.35);
}
.kube-lens-drag-handle {
position: absolute;
top: 12px;
left: 14px;
right: 14px;
display: flex;
align-items: center;
justify-content: space-between;
pointer-events: auto;
}
.kube-lens-badge {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.5px;
color: rgba(255, 255, 255, 0.95);
background: rgba(0, 0, 0, 0.5);
padding: 3px 10px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.18);
backdrop-filter: blur(8px);
pointer-events: none;
display: inline-flex;
align-items: center;
}
.kube-lens-close {
background: rgba(0, 0, 0, 0.55);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
width: 22px;
height: 22px;
border-radius: 50%;
display: grid;
place-items: center;
font-size: 15px;
line-height: 1;
cursor: pointer;
transition: all 0.2s;
}
.kube-lens-close:hover {
background: rgba(239, 68, 68, 0.85);
border-color: rgba(239, 68, 68, 1);
transform: scale(1.1);
}
.lens-toggle-btn {
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.25s var(--e);
}
.lens-toggle-btn.on {
background: rgba(16, 185, 129, 0.22);
border-color: rgba(16, 185, 129, 0.55);
color: #34d399;
box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}
/* ══════════════════════════════════════════════════════════════════════════════
ENTERPRISE SUITE STYLES (Analytics, SLA, Bulk Actions, Admin, Cmd+K, Tags)
══════════════════════════════════════════════════════════════════════════════ */