1253 lines
72 KiB
HTML
1253 lines
72 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-theme="dark">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="theme-color" content="#050816" id="metaThemeColor">
|
|
<title>Khira — Aurora Engineering Console</title>
|
|
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2310B981'/%3E%3Cstop offset='.5' stop-color='%2306B6D4'/%3E%3Cstop offset='1' stop-color='%238B5CF6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='14' fill='url(%23g)'/%3E%3Cpath d='M22 18h14a4 4 0 0 1 4 4v4a4 4 0 0 1-4 4H30v6h8a4 4 0 0 1 4 4v4a4 4 0 0 1-4 4H30v6h-8z' fill='white'/%3E%3C/svg%3E">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"><link rel="stylesheet" href="/khira/styles.css">
|
|
<script>
|
|
(function () {
|
|
try {
|
|
var t = localStorage.getItem('khira_theme') || 'dark';
|
|
document.documentElement.setAttribute('data-theme', t);
|
|
} catch (e) {}
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- ════════════ Aurora mesh background ════════════ -->
|
|
<div class="aurora-mesh" aria-hidden="true">
|
|
<div class="mesh-blob mesh-1"></div>
|
|
<div class="mesh-blob mesh-2"></div>
|
|
<div class="mesh-blob mesh-3"></div>
|
|
<div class="mesh-grid"></div>
|
|
<canvas class="sparkle-canvas" id="sparkleCanvas"></canvas>
|
|
</div>
|
|
|
|
<!-- Custom cursor -->
|
|
<div class="cursor-glow" id="cursorGlow" aria-hidden="true"></div>
|
|
<div class="cursor-dot" id="cursorDot" aria-hidden="true"></div>
|
|
|
|
<!-- ════════════ AUTH SCREEN ════════════ -->
|
|
<div class="auth-screen" id="authScreen">
|
|
<div class="auth-glass">
|
|
<div class="auth-grid">
|
|
<aside class="auth-side">
|
|
<a href="/khira/" class="brand-block">
|
|
<div class="brand-mark"><i class="fa-solid fa-bolt"></i></div>
|
|
<div class="brand-text">
|
|
<div class="brand-name">Khira</div>
|
|
<div class="brand-sub">v2.5 · Aurora Console</div>
|
|
</div>
|
|
</a>
|
|
|
|
<div class="auth-side-body">
|
|
<h1 class="auth-headline">
|
|
Ship faster with <span class="aurora-text">precision telemetry</span> & ticketing.
|
|
</h1>
|
|
<p class="auth-sub">The unified workspace for engineering tickets, defect tracking, and runtime error observability.</p>
|
|
|
|
<ul class="auth-features">
|
|
<li class="stagger-item">
|
|
<span class="feat-icon"><i class="fa-solid fa-table-columns"></i></span>
|
|
<span>Kanban ticketing with strict engineering workflow states</span>
|
|
</li>
|
|
<li class="stagger-item">
|
|
<span class="feat-icon"><i class="fa-solid fa-fingerprint"></i></span>
|
|
<span>Fingerprinted crash telemetry with 1-click escalation</span>
|
|
</li>
|
|
<li class="stagger-item">
|
|
<span class="feat-icon"><i class="fa-solid fa-tower-broadcast"></i></span>
|
|
<span>Live team sync every 8 seconds with desktop alerts</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="auth-personas">
|
|
<div class="auth-personas-label">Quick login</div>
|
|
<div class="auth-personas-row">
|
|
<button type="button" class="persona-btn magnetic" onclick="quickLoginAs('alice')">
|
|
<span class="persona-avatar">👩💻</span>
|
|
<span class="persona-info">
|
|
<span class="persona-name">Alice</span>
|
|
<span class="persona-role">Frontend</span>
|
|
</span>
|
|
</button>
|
|
<button type="button" class="persona-btn magnetic" onclick="quickLoginAs('bob')">
|
|
<span class="persona-avatar">👨💻</span>
|
|
<span class="persona-info">
|
|
<span class="persona-name">Bob</span>
|
|
<span class="persona-role">Backend</span>
|
|
</span>
|
|
</button>
|
|
<button type="button" class="persona-btn magnetic" onclick="quickLoginAs('charlie')">
|
|
<span class="persona-avatar">🕵️♂️</span>
|
|
<span class="persona-info">
|
|
<span class="persona-name">Charlie</span>
|
|
<span class="persona-role">QA</span>
|
|
</span>
|
|
</button>
|
|
<button type="button" class="persona-btn magnetic" onclick="quickLoginAs('admin')">
|
|
<span class="persona-avatar">⚡</span>
|
|
<span class="persona-info">
|
|
<span class="persona-name">Admin</span>
|
|
<span class="persona-role">Lead</span>
|
|
</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
|
|
<main class="auth-main">
|
|
<div class="auth-tabs">
|
|
<button class="auth-tab active" id="authTabLogin" onclick="switchAuthTab('login')">Sign In</button>
|
|
<button class="auth-tab" id="authTabRegister" onclick="switchAuthTab('register')">Register</button>
|
|
<span class="auth-tab-glow" id="authTabGlow"></span>
|
|
</div>
|
|
|
|
<form class="auth-form active" id="authLoginForm" onsubmit="handleLoginSubmit(event)">
|
|
<h2 class="form-title">Welcome back</h2>
|
|
<p class="form-sub">Sign in to your engineering workspace.</p>
|
|
|
|
<div class="form-stack">
|
|
<label class="fld">
|
|
<span class="fld-label">Username</span>
|
|
<div class="fld-ctrl">
|
|
<i class="fa-solid fa-user fld-icon"></i>
|
|
<input type="text" id="loginUsername" autocomplete="username" placeholder="e.g. alice" required>
|
|
</div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Password</span>
|
|
<div class="fld-ctrl">
|
|
<i class="fa-solid fa-lock fld-icon"></i>
|
|
<input type="password" id="loginPassword" autocomplete="current-password" placeholder="••••••••" required>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
|
|
<button type="submit" class="btn-aurora btn-block magnetic" id="loginSubmitBtn">
|
|
<span class="btn-label">Sign In</span>
|
|
<i class="fa-solid fa-arrow-right"></i>
|
|
</button>
|
|
</form>
|
|
|
|
<form class="auth-form" id="authRegisterForm" onsubmit="handleRegisterSubmit(event)" style="display:none;">
|
|
<h2 class="form-title">Create account</h2>
|
|
<p class="form-sub">Join the engineering team in seconds.</p>
|
|
|
|
<div class="form-stack">
|
|
<label class="fld">
|
|
<span class="fld-label">Full Name</span>
|
|
<div class="fld-ctrl">
|
|
<i class="fa-solid fa-id-card fld-icon"></i>
|
|
<input type="text" id="regName" placeholder="e.g. Dana Park" required>
|
|
</div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Username</span>
|
|
<div class="fld-ctrl">
|
|
<i class="fa-solid fa-at fld-icon"></i>
|
|
<input type="text" id="regUsername" placeholder="lowercase, no spaces" required>
|
|
</div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Engineering Role</span>
|
|
<div class="fld-ctrl">
|
|
<i class="fa-solid fa-code fld-icon"></i>
|
|
<select id="regRole" required>
|
|
<option value="frontend">Frontend Dev</option>
|
|
<option value="backend">Backend Dev</option>
|
|
<option value="tester">QA / Tester</option>
|
|
<option value="lead">Team Lead</option>
|
|
<option value="engineer">Engineer</option>
|
|
<option value="security">Security</option>
|
|
</select>
|
|
</div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Password</span>
|
|
<div class="fld-ctrl">
|
|
<i class="fa-solid fa-lock fld-icon"></i>
|
|
<input type="password" id="regPassword" placeholder="••••••••" required>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
|
|
<button type="submit" class="btn-aurora btn-block magnetic">
|
|
<span class="btn-label">Create Account</span>
|
|
<i class="fa-solid fa-arrow-right"></i>
|
|
</button>
|
|
</form>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ════════════ APP SHELL ════════════ -->
|
|
<div class="app-shell" id="appShell" hidden>
|
|
<div class="sidebar-backdrop" id="sidebarBackdrop" onclick="closeMobileSidebar()"></div>
|
|
|
|
<aside class="sidebar glass-panel" id="sidebar">
|
|
<div class="sidebar-top">
|
|
<a href="/khira/" class="brand-block">
|
|
<div class="brand-mark"><i class="fa-solid fa-bolt"></i></div>
|
|
<div class="brand-text">
|
|
<div class="brand-name">Khira</div>
|
|
<div class="brand-sub">v2.5</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<nav class="sidebar-nav">
|
|
<div class="nav-label">Workspace</div>
|
|
<button class="nav-item active magnetic" id="navTickets" onclick="switchSection('tickets')">
|
|
<i class="fa-solid fa-ticket"></i>
|
|
<span class="nav-text">Tickets & Tasks</span>
|
|
<span class="nav-count" id="navCountTickets">0</span>
|
|
</button>
|
|
<button class="nav-item magnetic" id="navErrors" onclick="switchSection('errors')">
|
|
<i class="fa-solid fa-triangle-exclamation"></i>
|
|
<span class="nav-text">Error Tracking</span>
|
|
<span class="nav-count" id="navCountErrors">0</span>
|
|
</button>
|
|
</nav>
|
|
|
|
<div class="sidebar-section">
|
|
<div class="nav-label">My Workload</div>
|
|
<div class="workload-list">
|
|
<button type="button" class="workload-item magnetic" id="wlBtnActive" onclick="filterBySidebarWorkload('active')" title="View my active assigned tasks">
|
|
<span class="wl-dot wl-active"></span>
|
|
<span class="wl-text">Active</span>
|
|
<span class="wl-num ticker" id="wlActive">0</span>
|
|
</button>
|
|
<button type="button" class="workload-item magnetic" id="wlBtnHold" onclick="filterBySidebarWorkload('hold')" title="View tickets placed on hold">
|
|
<span class="wl-dot wl-hold"></span>
|
|
<span class="wl-text">On Hold</span>
|
|
<span class="wl-num ticker" id="wlHold">0</span>
|
|
</button>
|
|
<button type="button" class="workload-item magnetic" id="wlBtnDone" onclick="filterBySidebarWorkload('completed')" title="View completed and shipped tickets">
|
|
<span class="wl-dot wl-done"></span>
|
|
<span class="wl-text">Completed</span>
|
|
<span class="wl-num ticker" id="wlDone">0</span>
|
|
</button>
|
|
<div class="workload-divider"></div>
|
|
<button type="button" class="workload-item magnetic" id="wlBtnTotal" onclick="filterBySidebarWorkload('total')" title="View all team tickets across backlog">
|
|
<span class="wl-dot wl-total"></span>
|
|
<span class="wl-text">Team Total</span>
|
|
<span class="wl-num ticker" id="wlTotal">0</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sidebar-foot">
|
|
<div class="sync-status">
|
|
<span class="sync-dot" id="syncDot"></span>
|
|
<span class="sync-text" id="syncText">Connecting…</span>
|
|
</div>
|
|
<div class="sidebar-foot-actions">
|
|
<button class="foot-btn magnetic" id="themeToggle" onclick="toggleTheme()" title="Theme">
|
|
<i class="fa-solid fa-sun" id="themeIcon"></i>
|
|
<span class="foot-label" id="themeLabel">Light</span>
|
|
</button>
|
|
<button class="foot-btn magnetic" onclick="openProfileModal()" title="Profile">
|
|
<i class="fa-solid fa-user"></i>
|
|
<span class="foot-label">Profile</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
|
|
<div class="main-area">
|
|
<header class="topbar glass-panel">
|
|
<div class="topbar-left">
|
|
<button class="icon-btn mobile-menu" onclick="openMobileSidebar()">
|
|
<i class="fa-solid fa-bars"></i>
|
|
</button>
|
|
<div class="crumbs">
|
|
<span class="crumb crumb-active" id="crumbTitle">Tickets & Tasks</span>
|
|
<span class="crumb-sep">/</span>
|
|
<span class="crumb crumb-sub" id="crumbSub">Engineering backlog</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="topbar-right">
|
|
<button class="search-trigger magnetic" onclick="focusSearch()">
|
|
<i class="fa-solid fa-magnifying-glass"></i>
|
|
<span class="search-trigger-text">Search…</span>
|
|
<kbd class="kbd">⌘K</kbd>
|
|
</button>
|
|
|
|
<button class="icon-btn notif-btn magnetic" onclick="toggleNotifDropdown()">
|
|
<i class="fa-regular fa-bell"></i>
|
|
<span class="notif-dot" id="notifDot"></span>
|
|
</button>
|
|
<div class="notif-dropdown glass-panel" id="notifDropdown">
|
|
<div class="notif-head">
|
|
<span>Notifications</span>
|
|
<button class="notif-mark" onclick="markAllRead()">Mark all read</button>
|
|
</div>
|
|
<div class="notif-list" id="notifList"></div>
|
|
</div>
|
|
|
|
<button class="user-chip magnetic" onclick="openProfileModal()">
|
|
<span class="chip-avatar" id="chipAvatar">👤</span>
|
|
<span class="chip-info">
|
|
<span class="chip-name" id="chipName">Guest</span>
|
|
<span class="chip-role" id="chipRole">—</span>
|
|
</span>
|
|
</button>
|
|
|
|
<button class="btn-aurora btn-cta magnetic" id="ctaTickets" onclick="openCreateModal()">
|
|
<i class="fa-solid fa-plus"></i>
|
|
<span>New Ticket</span>
|
|
</button>
|
|
<button class="btn-aurora btn-cta btn-danger magnetic" id="ctaErrors" onclick="openReportErrorModal()" style="display:none;">
|
|
<i class="fa-solid fa-plus"></i>
|
|
<span>Report Error</span>
|
|
</button>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="content">
|
|
<!-- TICKETS -->
|
|
<div id="viewTickets">
|
|
<div class="welcome-strip glass-panel stagger-item">
|
|
<div class="welcome-left">
|
|
<span class="welcome-avatar" id="welcomeAvatar">👩💻</span>
|
|
<div>
|
|
<h2 class="welcome-title" id="welcomeTitle">Welcome back</h2>
|
|
<p class="welcome-sub">
|
|
<span class="role-chip" id="welcomeRole"><i class="fa-solid fa-code"></i> —</span>
|
|
<span class="lock-chip"><i class="fa-solid fa-shield-halved"></i> Authorized</span>
|
|
<span id="welcomeSummary">Syncing your workload…</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="stat-tiles">
|
|
<div class="stat-tile glass-panel tilt stagger-item" onclick="filterBySidebarWorkload('active')" style="--tile-color: var(--aurora-1);">
|
|
<div class="stat-tile-glow"></div>
|
|
<div class="stat-tile-icon" style="--ic: var(--aurora-1);"><i class="fa-solid fa-bolt"></i></div>
|
|
<div class="stat-tile-body">
|
|
<div class="stat-tile-num ticker" id="statAssigned">0</div>
|
|
<div class="stat-tile-label">Assigned to me</div>
|
|
</div>
|
|
<i class="fa-solid fa-arrow-right stat-tile-arrow"></i>
|
|
</div>
|
|
<div class="stat-tile glass-panel tilt stagger-item" onclick="switchScope('reported')" style="--tile-color: var(--aurora-2);">
|
|
<div class="stat-tile-glow"></div>
|
|
<div class="stat-tile-icon" style="--ic: var(--aurora-2);"><i class="fa-solid fa-file-circle-plus"></i></div>
|
|
<div class="stat-tile-body">
|
|
<div class="stat-tile-num ticker" id="statCreated">0</div>
|
|
<div class="stat-tile-label">Filed for team</div>
|
|
</div>
|
|
<i class="fa-solid fa-arrow-right stat-tile-arrow"></i>
|
|
</div>
|
|
<div class="stat-tile glass-panel tilt stagger-item" onclick="filterBySidebarWorkload('hold')" style="--tile-color: var(--warning);">
|
|
<div class="stat-tile-glow"></div>
|
|
<div class="stat-tile-icon" style="--ic: var(--warning);"><i class="fa-solid fa-pause"></i></div>
|
|
<div class="stat-tile-body">
|
|
<div class="stat-tile-num ticker" id="statHold">0</div>
|
|
<div class="stat-tile-label">On hold / blocked</div>
|
|
</div>
|
|
<i class="fa-solid fa-arrow-right stat-tile-arrow"></i>
|
|
</div>
|
|
<div class="stat-tile glass-panel tilt stagger-item" onclick="filterBySidebarWorkload('completed')" style="--tile-color: var(--success);">
|
|
<div class="stat-tile-glow"></div>
|
|
<div class="stat-tile-icon" style="--ic: var(--success);"><i class="fa-solid fa-check"></i></div>
|
|
<div class="stat-tile-body">
|
|
<div class="stat-tile-num ticker" id="statCompleted">0</div>
|
|
<div class="stat-tile-label">Resolved & shipped</div>
|
|
</div>
|
|
<i class="fa-solid fa-arrow-right stat-tile-arrow"></i>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="scope-tabs">
|
|
<button class="scope-tab active" data-scope="assigned" onclick="switchScope('assigned')">
|
|
Assigned to Me <span class="scope-count" id="scopeAssigned">0</span>
|
|
</button>
|
|
<button class="scope-tab" data-scope="reported" onclick="switchScope('reported')">
|
|
Created by Me <span class="scope-count" id="scopeReported">0</span>
|
|
</button>
|
|
<button class="scope-tab" data-scope="all" onclick="switchScope('all')">
|
|
All Tickets <span class="scope-count" id="scopeAll">0</span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="filter-bar glass-panel">
|
|
<div class="filter-search">
|
|
<i class="fa-solid fa-magnifying-glass"></i>
|
|
<input type="text" id="searchInput" placeholder="Search ID, title, app, API key, assignee…" oninput="onSearchInput(this.value)">
|
|
</div>
|
|
<select class="filter-select" id="filterType" onchange="onFilterChange('type', this.value)">
|
|
<option value="">All Types</option>
|
|
<option value="application">🚀 Application</option>
|
|
<option value="general">⚙️ General</option>
|
|
</select>
|
|
<select class="filter-select" id="filterPriority" onchange="onFilterChange('priority', this.value)">
|
|
<option value="">All priorities</option>
|
|
<option value="P0">Critical (P0)</option>
|
|
<option value="P1">High (P1)</option>
|
|
<option value="P2">Medium (P2)</option>
|
|
<option value="P3">Low (P3)</option>
|
|
</select>
|
|
<select class="filter-select" id="filterRole" onchange="onFilterChange('role', this.value)">
|
|
<option value="">All roles</option>
|
|
<option value="frontend">Frontend</option>
|
|
<option value="backend">Backend</option>
|
|
<option value="tester">Tester</option>
|
|
<option value="lead">Lead</option>
|
|
<option value="engineer">Engineer</option>
|
|
<option value="security">Security</option>
|
|
</select>
|
|
<select class="filter-select" id="filterStatus" onchange="onFilterChange('status', this.value)">
|
|
<option value="">All statuses</option>
|
|
<option value="open">Open / Backlog</option>
|
|
<option value="progress">In Progress</option>
|
|
<option value="hold">On Hold</option>
|
|
<option value="completed">Completed</option>
|
|
</select>
|
|
<div class="filter-spacer"></div>
|
|
<label class="alerts-toggle">
|
|
<input type="checkbox" id="alertsToggle" onchange="toggleAlerts(this.checked)">
|
|
<span class="toggle-track"><span class="toggle-thumb"></span></span>
|
|
<span class="toggle-label">Alerts</span>
|
|
</label>
|
|
<div class="view-switch">
|
|
<button class="view-switch-btn active" data-view="kanban" onclick="switchView('kanban')">
|
|
<i class="fa-solid fa-table-columns"></i> Board
|
|
</button>
|
|
<button class="view-switch-btn" data-view="table" onclick="switchView('table')">
|
|
<i class="fa-solid fa-list"></i> Table
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="kanban" id="kanbanView">
|
|
<div class="kanban-col glass-panel" data-status="open">
|
|
<div class="kanban-col-head">
|
|
<div class="kh-left">
|
|
<span class="kh-dot kh-open"></span>
|
|
<span class="kh-title">Open Backlog</span>
|
|
</div>
|
|
<span class="kh-count" id="colOpenCount">0</span>
|
|
</div>
|
|
<div class="kanban-col-body" id="colOpen"></div>
|
|
</div>
|
|
<div class="kanban-col glass-panel" data-status="progress">
|
|
<div class="kanban-col-head">
|
|
<div class="kh-left">
|
|
<span class="kh-dot kh-prog"></span>
|
|
<span class="kh-title">In Progress</span>
|
|
</div>
|
|
<span class="kh-count" id="colProgCount">0</span>
|
|
</div>
|
|
<div class="kanban-col-body" id="colProgress"></div>
|
|
</div>
|
|
<div class="kanban-col glass-panel" data-status="hold">
|
|
<div class="kanban-col-head">
|
|
<div class="kh-left">
|
|
<span class="kh-dot kh-hold"></span>
|
|
<span class="kh-title">On Hold</span>
|
|
</div>
|
|
<span class="kh-count" id="colHoldCount">0</span>
|
|
</div>
|
|
<div class="kanban-col-body" id="colHold"></div>
|
|
</div>
|
|
<div class="kanban-col glass-panel" data-status="completed">
|
|
<div class="kanban-col-head">
|
|
<div class="kh-left">
|
|
<span class="kh-dot kh-done"></span>
|
|
<span class="kh-title">Completed</span>
|
|
</div>
|
|
<span class="kh-count" id="colDoneCount">0</span>
|
|
</div>
|
|
<div class="kanban-col-body" id="colCompleted"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="table-view glass-panel" id="tableView" hidden>
|
|
<div class="table-scroll">
|
|
<table class="data-table">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th><th>Type</th><th>Title</th><th>App / Scope</th><th>Priority</th><th>Assignee</th><th>Reporter</th><th>Status</th><th>Updated</th><th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="ticketsTbody"></tbody>
|
|
</table>
|
|
</div>
|
|
<div class="empty-state" id="ticketsEmpty" hidden>
|
|
<i class="fa-regular fa-folder-open"></i>
|
|
<h3>No tickets match your filters</h3>
|
|
<p>Try clearing some filters or create a new ticket.</p>
|
|
<button class="btn-aurora magnetic" onclick="openCreateModal()"><i class="fa-solid fa-plus"></i> New Ticket</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ERRORS -->
|
|
<div id="viewErrors" hidden>
|
|
<div class="err-stats">
|
|
<div class="err-stat glass-panel tilt stagger-item">
|
|
<div class="err-stat-glow" style="--gc: var(--info);"></div>
|
|
<div class="err-stat-icon" style="--ic: var(--info);"><i class="fa-solid fa-triangle-exclamation"></i></div>
|
|
<div class="err-stat-num ticker" id="errTotal">0</div>
|
|
<div class="err-stat-label">Total Errors</div>
|
|
</div>
|
|
<div class="err-stat glass-panel tilt stagger-item">
|
|
<div class="err-stat-glow" style="--gc: var(--danger);"></div>
|
|
<div class="err-stat-icon" style="--ic: var(--danger);"><i class="fa-solid fa-circle-exclamation"></i></div>
|
|
<div class="err-stat-num ticker" id="errUnresolved">0</div>
|
|
<div class="err-stat-label">Unresolved</div>
|
|
</div>
|
|
<div class="err-stat glass-panel tilt stagger-item">
|
|
<div class="err-stat-glow" style="--gc: var(--aurora-3);"></div>
|
|
<div class="err-stat-icon" style="--ic: var(--aurora-3);"><i class="fa-solid fa-arrow-up-right-from-square"></i></div>
|
|
<div class="err-stat-num ticker" id="errEscalated">0</div>
|
|
<div class="err-stat-label">Escalated</div>
|
|
</div>
|
|
<div class="err-stat glass-panel tilt stagger-item">
|
|
<div class="err-stat-glow" style="--gc: var(--success);"></div>
|
|
<div class="err-stat-icon" style="--ic: var(--success);"><i class="fa-solid fa-circle-check"></i></div>
|
|
<div class="err-stat-num ticker" id="errResolved">0</div>
|
|
<div class="err-stat-label">Resolved</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="filter-bar glass-panel">
|
|
<div class="filter-search">
|
|
<i class="fa-solid fa-magnifying-glass"></i>
|
|
<input type="text" id="errSearchInput" placeholder="Search ERR-ID, exception, message, endpoint…" oninput="onErrSearchInput(this.value)">
|
|
</div>
|
|
<select class="filter-select" id="errFilterApp" onchange="onErrFilterChange('app', this.value)">
|
|
<option value="">All apps</option>
|
|
<option>Dashboard Client</option>
|
|
<option>FastAPI Backend</option>
|
|
<option>Batch Inpaint</option>
|
|
</select>
|
|
<select class="filter-select" id="errFilterSeverity" onchange="onErrFilterChange('severity', this.value)">
|
|
<option value="">All severities</option>
|
|
<option value="CRITICAL">Critical</option>
|
|
<option value="HIGH">High</option>
|
|
<option value="MEDIUM">Medium</option>
|
|
<option value="LOW">Low</option>
|
|
</select>
|
|
<select class="filter-select" id="errFilterStatus" onchange="onErrFilterChange('status', this.value)">
|
|
<option value="">All statuses</option>
|
|
<option value="unresolved">Unresolved</option>
|
|
<option value="resolved">Resolved</option>
|
|
</select>
|
|
<div class="filter-spacer"></div>
|
|
<div class="view-switch">
|
|
<button class="view-switch-btn active" data-view="table" onclick="switchErrView('table')">
|
|
<i class="fa-solid fa-list"></i> Table
|
|
</button>
|
|
<button class="view-switch-btn" data-view="cards" onclick="switchErrView('cards')">
|
|
<i class="fa-solid fa-table-cells-large"></i> Cards
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="table-view glass-panel" id="errTableView">
|
|
<div class="table-scroll">
|
|
<table class="data-table">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th><th>Severity</th><th>Status</th><th>Exception</th><th>Message</th><th>App</th><th>Endpoint</th><th>Last seen</th><th>Events</th><th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="errorsTbody"></tbody>
|
|
</table>
|
|
</div>
|
|
<div class="empty-state" id="errorsEmpty" hidden>
|
|
<i class="fa-regular fa-circle-check"></i>
|
|
<h3>No runtime errors tracked</h3>
|
|
<p>Push some telemetry or report an error manually.</p>
|
|
<button class="btn-aurora magnetic" onclick="openReportErrorModal()"><i class="fa-solid fa-plus"></i> Report Error</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="err-cards" id="errCardsView" hidden></div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<!-- DRAWER -->
|
|
<aside class="drawer" id="ticketDrawer">
|
|
<div class="drawer-backdrop" id="drawerBackdrop" onclick="closeDrawer()"></div>
|
|
<div class="drawer-panel glass-panel-strong">
|
|
<div class="drawer-beam"></div>
|
|
<header class="drawer-header">
|
|
<div class="drawer-id-row">
|
|
<span class="drawer-id" id="drawerId">KHR-000</span>
|
|
<span class="type-pill type-pill-app" id="drawerTypeBadge">🚀 App</span>
|
|
<span class="priority-chip" id="drawerPriority">—</span>
|
|
<span class="drawer-status" id="drawerStatus">Open</span>
|
|
<button class="icon-btn drawer-close magnetic" onclick="closeDrawer()">
|
|
<i class="fa-solid fa-xmark"></i>
|
|
</button>
|
|
</div>
|
|
<h2 class="drawer-title" id="drawerTitle">—</h2>
|
|
|
|
<div class="drawer-meta" id="drawerMetaApp">
|
|
<div class="meta-cell">
|
|
<div class="meta-label">Application</div>
|
|
<div class="meta-value" id="drawerApp">—</div>
|
|
</div>
|
|
<div class="meta-cell">
|
|
<div class="meta-label">Version</div>
|
|
<div class="meta-value" id="drawerVersion">—</div>
|
|
</div>
|
|
<div class="meta-cell">
|
|
<div class="meta-label">Feature</div>
|
|
<div class="meta-value" id="drawerFeature">—</div>
|
|
</div>
|
|
<div class="meta-cell">
|
|
<div class="meta-label">API Key / Route</div>
|
|
<div class="meta-value mono" id="drawerApiKey">—</div>
|
|
</div>
|
|
<div class="meta-cell">
|
|
<div class="meta-label">Assignee</div>
|
|
<div class="meta-value" id="drawerAssignee">—</div>
|
|
</div>
|
|
<div class="meta-cell">
|
|
<div class="meta-label">Reported by</div>
|
|
<div class="meta-value" id="drawerReporter">—</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="drawer-meta" id="drawerMetaGeneral" style="display: none;">
|
|
<div class="meta-cell">
|
|
<div class="meta-label">General Category</div>
|
|
<div class="meta-value" id="drawerGenCategory">—</div>
|
|
</div>
|
|
<div class="meta-cell">
|
|
<div class="meta-label">Department / Scope</div>
|
|
<div class="meta-value" id="drawerGenDepartment">—</div>
|
|
</div>
|
|
<div class="meta-cell">
|
|
<div class="meta-label">Ticket Type</div>
|
|
<div class="meta-value" id="drawerGenTicketType">⚙️ General Ticket</div>
|
|
</div>
|
|
<div class="meta-cell">
|
|
<div class="meta-label">Ref ID</div>
|
|
<div class="meta-value mono" id="drawerGenRefId">—</div>
|
|
</div>
|
|
<div class="meta-cell">
|
|
<div class="meta-label">Assignee</div>
|
|
<div class="meta-value" id="drawerGenAssignee">—</div>
|
|
</div>
|
|
<div class="meta-cell">
|
|
<div class="meta-label">Reported by</div>
|
|
<div class="meta-value" id="drawerGenReporter">—</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="drawer-body">
|
|
<section class="drawer-section">
|
|
<h3 class="ds-title"><i class="fa-solid fa-hand-holding-medical"></i> Assistance Required</h3>
|
|
<p class="ds-text" id="drawerAssistance">—</p>
|
|
</section>
|
|
|
|
<section class="drawer-section">
|
|
<h3 class="ds-title">
|
|
<i class="fa-solid fa-code"></i> Diagnostic Context
|
|
<button class="btn-ghost btn-xs magnetic" onclick="copyText('context')"><i class="fa-regular fa-copy"></i> Copy</button>
|
|
</h3>
|
|
<pre class="ds-code" id="drawerContext">No logs provided</pre>
|
|
</section>
|
|
|
|
<section class="drawer-section">
|
|
<h3 class="ds-title"><i class="fa-solid fa-link"></i> Reference Links</h3>
|
|
<div class="ds-links" id="drawerLinks"></div>
|
|
<button class="btn-ghost btn-sm magnetic" onclick="openLinkModal()"><i class="fa-solid fa-plus"></i> Add link</button>
|
|
</section>
|
|
|
|
<section class="drawer-section">
|
|
<h3 class="ds-title"><i class="fa-solid fa-paperclip"></i> Files & Screenshots</h3>
|
|
<div class="ds-files" id="drawerFiles"></div>
|
|
<label class="file-drop">
|
|
<input type="file" multiple onchange="onDrawerFileSelected(event)">
|
|
<i class="fa-solid fa-cloud-arrow-up"></i>
|
|
<span>Click to browse or drag files</span>
|
|
<span class="file-drop-sub">PNG, JPG, logs, txt, PDF, ZIP — up to 32 MB</span>
|
|
</label>
|
|
</section>
|
|
|
|
<section class="drawer-section">
|
|
<h3 class="ds-title">
|
|
<i class="fa-solid fa-timeline"></i> Activity Timeline
|
|
<span class="ds-count" id="drawerRemarksCount">0</span>
|
|
</h3>
|
|
<div class="ds-timeline" id="drawerTimeline"></div>
|
|
|
|
<div class="remark-composer">
|
|
<textarea id="remarkText" placeholder="Post a remark, progress update, or technical note… (Ctrl+Enter to send)"></textarea>
|
|
<div class="composer-actions">
|
|
<button class="btn-ghost btn-sm magnetic" onclick="openLinkModal()">
|
|
<i class="fa-solid fa-link"></i> Link
|
|
</button>
|
|
<button class="btn-aurora btn-sm magnetic" onclick="submitRemark()">
|
|
<i class="fa-solid fa-paper-plane"></i> Post
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<footer class="drawer-foot">
|
|
<div class="foot-selects">
|
|
<select id="drawerAssigneeSelect" class="foot-select" onchange="reassignTicket(this.value)"></select>
|
|
<select id="drawerPrioritySelect" class="foot-select" onchange="changePriority(this.value)">
|
|
<option value="P0">P0 · Critical</option>
|
|
<option value="P1">P1 · High</option>
|
|
<option value="P2">P2 · Medium</option>
|
|
<option value="P3">P3 · Low</option>
|
|
</select>
|
|
</div>
|
|
<div class="foot-actions">
|
|
<button class="btn-ghost magnetic" id="btnHold" onclick="openHoldModal()"><i class="fa-solid fa-pause"></i> Hold</button>
|
|
<button class="btn-ghost magnetic" id="btnResume" onclick="resumeTicket()" hidden><i class="fa-solid fa-play"></i> Resume</button>
|
|
<button class="btn-aurora btn-success magnetic" id="btnComplete" onclick="openCompleteModal()"><i class="fa-solid fa-check"></i> Complete</button>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
|
|
<!-- MODALS -->
|
|
|
|
<div class="modal-overlay" id="modalCreate">
|
|
<div class="modal modal-lg glass-panel-strong">
|
|
<div class="modal-beam"></div>
|
|
<header class="modal-head">
|
|
<div>
|
|
<h2><i class="fa-solid fa-plus"></i> <span id="modalCreateHeading">Create Ticket</span></h2>
|
|
<div class="modal-sub">Assign a bug report, feature request, or infrastructure task to a team member</div>
|
|
</div>
|
|
<button class="icon-btn modal-close magnetic" onclick="closeCreateModal()"><i class="fa-solid fa-xmark"></i></button>
|
|
</header>
|
|
<form class="modal-body" onsubmit="handleCreateSubmit(event)">
|
|
<!-- Reporter Strip -->
|
|
<div class="form-reporter-strip">
|
|
<div class="form-reporter-info">
|
|
<i class="fa-solid fa-user-check" style="color: var(--aurora-2); font-size: 14px;"></i>
|
|
<span>Reporting as <strong id="createFormReporterName">—</strong> (<span id="createFormReporterRole">—</span>)</span>
|
|
</div>
|
|
<span class="auto-verify"><i class="fa-solid fa-shield-halved"></i> Signed & Verified</span>
|
|
</div>
|
|
|
|
<!-- TICKET TYPE SELECTOR -->
|
|
<div class="ticket-type-tabs">
|
|
<button type="button" class="type-tab-btn active" id="tabTypeApp" onclick="setCreateTicketType('application')">
|
|
<div class="type-tab-icon"><i class="fa-solid fa-rocket"></i></div>
|
|
<div class="type-tab-text">
|
|
<div class="type-tab-title">Application Ticket</div>
|
|
<div class="type-tab-desc">Specific app, version, API key, endpoint or UI bug</div>
|
|
</div>
|
|
</button>
|
|
<button type="button" class="type-tab-btn" id="tabTypeGeneral" onclick="setCreateTicketType('general')">
|
|
<div class="type-tab-icon"><i class="fa-solid fa-gear"></i></div>
|
|
<div class="type-tab-text">
|
|
<div class="type-tab-title">General Ticket</div>
|
|
<div class="type-tab-desc">DevOps, infra, storage, access, internal tasks</div>
|
|
</div>
|
|
</button>
|
|
</div>
|
|
|
|
<!-- CARD 1: ASSIGNMENT & OBJECTIVE -->
|
|
<div class="form-section-card">
|
|
<div class="form-section-title"><i class="fa-solid fa-user-tag"></i> 1. Assignment & Objective</div>
|
|
<div class="form-grid">
|
|
<label class="fld">
|
|
<span class="fld-label">Assign to developer <span class="req">*</span></span>
|
|
<div class="fld-ctrl"><select id="createAssignee" required><option value="">Choose developer…</option></select></div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Title <span class="req">*</span></span>
|
|
<div class="fld-ctrl"><input type="text" id="createTitle" placeholder="e.g. Hair Color Changer 500 Error when mask_image is omitted" required></div>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- CARD 2: APPLICATION OR GENERAL SCOPE -->
|
|
<div class="form-section-card" id="cardScope">
|
|
<div class="form-section-title" id="secScopeTitle"><i class="fa-solid fa-cubes"></i> 2. Application Scope</div>
|
|
<!-- APPLICATION SPECIFIC FIELDS -->
|
|
<div id="createAppFields">
|
|
<div class="form-grid form-grid-3">
|
|
<label class="fld">
|
|
<span class="fld-label">App <span class="req">*</span></span>
|
|
<div class="fld-ctrl">
|
|
<select id="createApp">
|
|
<option value="">Select…</option>
|
|
<option>Creator Suite Web</option>
|
|
<option>FastAPI Backend</option>
|
|
<option>Creator Suite Web Unified Dashboard</option>
|
|
<option>Batch Inpaint Service</option>
|
|
<option>Nexus Gateway</option>
|
|
<option>Other App</option>
|
|
</select>
|
|
</div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Version <span class="req">*</span></span>
|
|
<div class="fld-ctrl"><input type="text" id="createVersion" placeholder="v2.4.1"></div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Feature <span class="req">*</span></span>
|
|
<div class="fld-ctrl"><input type="text" id="createFeature" placeholder="Hair Color Changer"></div>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="form-grid" style="margin-top: 10px;">
|
|
<label class="fld">
|
|
<span class="fld-label">API Key / Endpoint</span>
|
|
<div class="fld-ctrl"><input type="text" id="createApiKey" placeholder="Stable_Diffusion_Hair_Color_Changer"></div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Issue Type <span class="req">*</span></span>
|
|
<div class="fld-ctrl">
|
|
<select id="createIssueType">
|
|
<option value="">Select…</option>
|
|
<option>API Failure / 500 / 400 Error</option>
|
|
<option>UI Layout / Rendering Bug</option>
|
|
<option>Schema Sync / Mismatch</option>
|
|
<option>Performance / Latency</option>
|
|
<option>Auth / Permission</option>
|
|
<option>Other</option>
|
|
</select>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- GENERAL SPECIFIC FIELDS -->
|
|
<div id="createGeneralFields" style="display: none;">
|
|
<div class="form-grid">
|
|
<label class="fld">
|
|
<span class="fld-label">General Category / Domain <span class="req">*</span></span>
|
|
<div class="fld-ctrl">
|
|
<select id="createGeneralCategory">
|
|
<option value="">Select Category…</option>
|
|
<option value="DevOps & Infrastructure">🌐 DevOps & Cloud Infrastructure</option>
|
|
<option value="Database & Storage">🗄️ Database & Storage</option>
|
|
<option value="Access & Permissions">🔑 Access & Permissions</option>
|
|
<option value="Design & UX">🎨 Design & UX / Assets</option>
|
|
<option value="Internal Workflow & Tooling">⚙️ Internal Workflow & Tooling</option>
|
|
<option value="Hardware & IT Support">💻 Hardware & IT Support</option>
|
|
<option value="Security & Compliance">🛡️ Security & Compliance</option>
|
|
<option value="General Task">📋 General Task / Other</option>
|
|
</select>
|
|
</div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Department / Scope <span class="req">*</span></span>
|
|
<div class="fld-ctrl">
|
|
<input type="text" id="createDepartment" placeholder="e.g. Core Infrastructure, Security, Cloud Ops" list="deptSuggestions">
|
|
<datalist id="deptSuggestions">
|
|
<option value="Core Infrastructure">
|
|
<option value="Cloud Ops">
|
|
<option value="Security & Access">
|
|
<option value="Design System">
|
|
<option value="Product Engineering">
|
|
<option value="Data Ops">
|
|
</datalist>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
<div class="dept-quick-chips" style="margin-top: 10px;">
|
|
<span class="chip-label">Quick Scope:</span>
|
|
<button type="button" class="quick-chip" onclick="setQuickDept('Core Infrastructure')">Core Infra</button>
|
|
<button type="button" class="quick-chip" onclick="setQuickDept('Cloud Ops')">Cloud Ops</button>
|
|
<button type="button" class="quick-chip" onclick="setQuickDept('Security & Access')">Security</button>
|
|
<button type="button" class="quick-chip" onclick="setQuickDept('Design System')">Design</button>
|
|
<button type="button" class="quick-chip" onclick="setQuickDept('Data Ops')">Data Ops</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- CARD 3: PRIORITY & SPECIFICATIONS -->
|
|
<div class="form-section-card">
|
|
<div class="form-section-title"><i class="fa-solid fa-sliders"></i> 3. Priority & Detailed Specifications</div>
|
|
|
|
<div class="fld">
|
|
<span class="fld-label">Priority Level <span class="req">*</span></span>
|
|
<div class="priority-pills">
|
|
<label class="pp"><input type="radio" name="createPriority" value="P0"><span class="pp-pill pp-p0">P0 · Critical</span></label>
|
|
<label class="pp"><input type="radio" name="createPriority" value="P1" checked><span class="pp-pill pp-p1">P1 · High</span></label>
|
|
<label class="pp"><input type="radio" name="createPriority" value="P2"><span class="pp-pill pp-p2">P2 · Medium</span></label>
|
|
<label class="pp"><input type="radio" name="createPriority" value="P3"><span class="pp-pill pp-p3">P3 · Low</span></label>
|
|
</div>
|
|
</div>
|
|
|
|
<label class="fld">
|
|
<span class="fld-label">Description <span class="req">*</span></span>
|
|
<textarea id="createDescription" class="fld-textarea" rows="3" placeholder="What happened, expected behavior, and steps to reproduce…" required></textarea>
|
|
</label>
|
|
|
|
<label class="fld">
|
|
<span class="fld-label" id="lblCreateAssistance">Assistance Required <span class="req">*</span></span>
|
|
<div class="fld-ctrl"><input type="text" id="createAssistance" placeholder="e.g. Endpoint Debugging, UI Layout Fix, DB Migration" required></div>
|
|
</label>
|
|
|
|
<label class="fld">
|
|
<span class="fld-label" id="lblCreateContext">Technical Context & Payload (cURL, logs, stack trace)</span>
|
|
<textarea id="createContext" class="fld-textarea mono" rows="4" placeholder="Paste relevant cURL command, JSON request body, or server stack trace…"></textarea>
|
|
</label>
|
|
</div>
|
|
|
|
<!-- CARD 4: REFERENCES & EVIDENCE -->
|
|
<div class="form-section-card">
|
|
<div class="form-section-title"><i class="fa-solid fa-paperclip"></i> 4. Evidence & References</div>
|
|
<div class="form-grid">
|
|
<div class="fld">
|
|
<span class="fld-label">Reference links</span>
|
|
<div id="createFormLinks" class="links-list"></div>
|
|
<div class="link-add">
|
|
<input type="url" id="createFormLinkInput" placeholder="https://github.com/… or Figma / Docs">
|
|
<button type="button" class="btn-ghost btn-sm magnetic" onclick="addCreateLink()"><i class="fa-solid fa-plus"></i></button>
|
|
</div>
|
|
</div>
|
|
<div class="fld">
|
|
<span class="fld-label">Attach files & screenshots</span>
|
|
<label class="file-drop-spacious">
|
|
<input type="file" multiple onchange="onCreateFileSelected(event)" style="display:none;">
|
|
<div class="file-drop-icon"><i class="fa-solid fa-cloud-arrow-up"></i></div>
|
|
<div class="file-drop-text">
|
|
<strong>Click or drop files here</strong>
|
|
<span>Screenshots, logs, HAR captures (up to 32MB)</span>
|
|
</div>
|
|
</label>
|
|
<div id="createSelectedFiles" class="file-list" style="margin-top: 8px;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-foot">
|
|
<button type="button" class="btn-ghost magnetic" onclick="closeCreateModal()">Cancel</button>
|
|
<button type="submit" class="btn-aurora magnetic"><i class="fa-solid fa-check"></i> Create & Assign Ticket</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-overlay" id="modalHold">
|
|
<div class="modal modal-sm glass-panel-strong">
|
|
<div class="modal-beam"></div>
|
|
<header class="modal-head">
|
|
<h2><i class="fa-solid fa-pause"></i> Put Ticket On Hold</h2>
|
|
<button class="icon-btn modal-close magnetic" onclick="closeHoldModal()"><i class="fa-solid fa-xmark"></i></button>
|
|
</header>
|
|
<form class="modal-body" onsubmit="handleHoldSubmit(event)">
|
|
<p class="form-note">Putting a ticket on hold signals to the team that work is paused due to an external dependency, waiting on design, or blocked by infrastructure.</p>
|
|
<label class="fld">
|
|
<span class="fld-label">Hold reason <span class="req">*</span></span>
|
|
<textarea id="holdReason" class="fld-textarea" rows="4" placeholder="e.g. Waiting on GPU cluster node provisioning, blocked by third-party schema update…" required></textarea>
|
|
</label>
|
|
<div class="modal-foot">
|
|
<button type="button" class="btn-ghost magnetic" onclick="closeHoldModal()">Cancel</button>
|
|
<button type="submit" class="btn-aurora btn-warn magnetic"><i class="fa-solid fa-pause"></i> Confirm Hold</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-overlay" id="modalComplete">
|
|
<div class="modal modal-sm glass-panel-strong">
|
|
<div class="modal-beam"></div>
|
|
<header class="modal-head">
|
|
<h2><i class="fa-solid fa-check"></i> Mark Ticket Completed</h2>
|
|
<button class="icon-btn modal-close magnetic" onclick="closeCompleteModal()"><i class="fa-solid fa-xmark"></i></button>
|
|
</header>
|
|
<form class="modal-body" onsubmit="handleCompleteSubmit(event)">
|
|
<p class="form-note">Provide resolution remarks for the reporter and team audit history.</p>
|
|
<label class="fld">
|
|
<span class="fld-label">Resolution remarks <span class="req">*</span></span>
|
|
<textarea id="completeResolution" class="fld-textarea" rows="4" placeholder="e.g. Fixed parameter default in data.json, verified live at endpoint, merged PR #142…" required></textarea>
|
|
</label>
|
|
<div class="modal-foot">
|
|
<button type="button" class="btn-ghost magnetic" onclick="closeCompleteModal()">Cancel</button>
|
|
<button type="submit" class="btn-aurora btn-success magnetic"><i class="fa-solid fa-check"></i> Confirm & Complete</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-overlay" id="modalReportError">
|
|
<div class="modal modal-lg glass-panel-strong">
|
|
<div class="modal-beam"></div>
|
|
<header class="modal-head">
|
|
<h2><i class="fa-solid fa-triangle-exclamation"></i> Report Runtime Error</h2>
|
|
<button class="icon-btn modal-close magnetic" onclick="closeReportErrorModal()"><i class="fa-solid fa-xmark"></i></button>
|
|
</header>
|
|
<form class="modal-body" onsubmit="handleReportErrorSubmit(event)">
|
|
<p class="form-note">Manually ingest an application error, crash log, or unhandled rejection into the telemetry suite.</p>
|
|
|
|
<div class="form-grid">
|
|
<label class="fld">
|
|
<span class="fld-label">Application <span class="req">*</span></span>
|
|
<div class="fld-ctrl">
|
|
<select id="errFormApp" required>
|
|
<option value="">Select…</option>
|
|
<option>Unified Dashboard Client</option>
|
|
<option>Dashboard Client</option>
|
|
<option>FastAPI Backend</option>
|
|
<option>Batch Inpaint</option>
|
|
</select>
|
|
</div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Environment <span class="req">*</span></span>
|
|
<div class="fld-ctrl">
|
|
<select id="errFormEnv" required>
|
|
<option>Production</option>
|
|
<option>Staging</option>
|
|
<option>Development</option>
|
|
</select>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="form-grid">
|
|
<label class="fld">
|
|
<span class="fld-label">Service / Feature <span class="req">*</span></span>
|
|
<div class="fld-ctrl"><input type="text" id="errFormService" placeholder="Hair Color Changer" required></div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Endpoint / Route</span>
|
|
<div class="fld-ctrl"><input type="text" id="errFormEndpoint" placeholder="POST /apis/flxk/hair-color-change"></div>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="form-grid">
|
|
<label class="fld">
|
|
<span class="fld-label">Exception type <span class="req">*</span></span>
|
|
<div class="fld-ctrl"><input type="text" id="errFormException" placeholder="ZeroDivisionError, TypeError, CUDAOutOfMemory" required></div>
|
|
</label>
|
|
<div class="fld">
|
|
<span class="fld-label">Severity <span class="req">*</span></span>
|
|
<div class="priority-pills">
|
|
<label class="pp"><input type="radio" name="errFormSeverity" value="CRITICAL"><span class="pp-pill pp-p0">Critical</span></label>
|
|
<label class="pp"><input type="radio" name="errFormSeverity" value="HIGH" checked><span class="pp-pill pp-p1">High</span></label>
|
|
<label class="pp"><input type="radio" name="errFormSeverity" value="MEDIUM"><span class="pp-pill pp-p2">Medium</span></label>
|
|
<label class="pp"><input type="radio" name="errFormSeverity" value="LOW"><span class="pp-pill pp-p3">Low</span></label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<label class="fld">
|
|
<span class="fld-label">Error message <span class="req">*</span></span>
|
|
<div class="fld-ctrl"><input type="text" id="errFormMessage" placeholder="division by zero: normalized alpha matte has zero total density" required></div>
|
|
</label>
|
|
|
|
<label class="fld">
|
|
<span class="fld-label">Stack trace / traceback</span>
|
|
<textarea id="errFormTrace" class="fld-textarea mono" rows="6" placeholder="Traceback (most recent call last): File … ZeroDivisionError: division by zero"></textarea>
|
|
</label>
|
|
|
|
<label class="fld">
|
|
<span class="fld-label">Request payload / diagnostic context</span>
|
|
<textarea id="errFormPayload" class="fld-textarea mono" rows="4" placeholder='{"api_key": "…", "model": "flux-fill"}'></textarea>
|
|
</label>
|
|
|
|
<div class="modal-foot">
|
|
<button type="button" class="btn-ghost magnetic" onclick="closeReportErrorModal()">Cancel</button>
|
|
<button type="submit" class="btn-aurora btn-danger magnetic"><i class="fa-solid fa-triangle-exclamation"></i> Ingest & Track</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-overlay" id="modalEscalate">
|
|
<div class="modal modal-md glass-panel-strong">
|
|
<div class="modal-beam"></div>
|
|
<header class="modal-head">
|
|
<h2><i class="fa-solid fa-arrow-up-right-from-square"></i> Escalate Error to Ticket</h2>
|
|
<button class="icon-btn modal-close magnetic" onclick="closeEscalateModal()"><i class="fa-solid fa-xmark"></i></button>
|
|
</header>
|
|
<form class="modal-body" onsubmit="handleEscalateSubmit(event)">
|
|
<p class="form-note">Create a formal developer ticket linked directly to this runtime exception.</p>
|
|
|
|
<div class="escalate-source">
|
|
<div class="esc-row">
|
|
<span class="esc-id" id="escalateErrId">ERR-000</span>
|
|
<span class="esc-sev" id="escalateErrSev">MEDIUM</span>
|
|
</div>
|
|
<div class="esc-row"><span class="esc-label">Exception</span> <span id="escalateErrType" class="mono">—</span></div>
|
|
<div class="esc-row"><span class="esc-label">Message</span> <span id="escalateErrMsg">—</span></div>
|
|
</div>
|
|
|
|
<div class="form-grid">
|
|
<label class="fld">
|
|
<span class="fld-label">Ticket title <span class="req">*</span></span>
|
|
<div class="fld-ctrl"><input type="text" id="escalateTitle" required></div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Assign to <span class="req">*</span></span>
|
|
<div class="fld-ctrl"><select id="escalateAssignee" required></select></div>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="fld">
|
|
<span class="fld-label">Priority <span class="req">*</span></span>
|
|
<div class="priority-pills">
|
|
<label class="pp"><input type="radio" name="escalatePriority" value="P0" checked><span class="pp-pill pp-p0">P0</span></label>
|
|
<label class="pp"><input type="radio" name="escalatePriority" value="P1"><span class="pp-pill pp-p1">P1</span></label>
|
|
<label class="pp"><input type="radio" name="escalatePriority" value="P2"><span class="pp-pill pp-p2">P2</span></label>
|
|
<label class="pp"><input type="radio" name="escalatePriority" value="P3"><span class="pp-pill pp-p3">P3</span></label>
|
|
</div>
|
|
</div>
|
|
|
|
<label class="fld">
|
|
<span class="fld-label">Escalation notes</span>
|
|
<textarea id="escalateNotes" class="fld-textarea" rows="3" placeholder="Extra triage instructions, pointers to code files, reproduction steps…"></textarea>
|
|
</label>
|
|
|
|
<div class="modal-foot">
|
|
<button type="button" class="btn-ghost magnetic" onclick="closeEscalateModal()">Cancel</button>
|
|
<button type="submit" class="btn-aurora magnetic"><i class="fa-solid fa-check"></i> Create Ticket</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-overlay" id="modalResolveError">
|
|
<div class="modal modal-sm glass-panel-strong">
|
|
<div class="modal-beam"></div>
|
|
<header class="modal-head">
|
|
<h2><i class="fa-solid fa-circle-check"></i> Mark Error Resolved</h2>
|
|
<button class="icon-btn modal-close magnetic" onclick="closeResolveErrorModal()"><i class="fa-solid fa-xmark"></i></button>
|
|
</header>
|
|
<form class="modal-body" onsubmit="handleResolveErrorSubmit(event)">
|
|
<p class="form-note">Provide resolution notes or a PR reference. Stored in telemetry audit history.</p>
|
|
<label class="fld">
|
|
<span class="fld-label">Resolution notes <span class="req">*</span></span>
|
|
<textarea id="resolveErrorNotes" class="fld-textarea" rows="4" placeholder="Fixed root cause, verified in staging." required></textarea>
|
|
</label>
|
|
<div class="modal-foot">
|
|
<button type="button" class="btn-ghost magnetic" onclick="closeResolveErrorModal()">Cancel</button>
|
|
<button type="submit" class="btn-aurora btn-success magnetic"><i class="fa-solid fa-check"></i> Mark Resolved</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-overlay" id="modalProfile">
|
|
<div class="modal modal-md glass-panel-strong">
|
|
<div class="modal-beam"></div>
|
|
<header class="modal-head">
|
|
<h2><i class="fa-solid fa-user-gear"></i> My Profile</h2>
|
|
<button class="icon-btn modal-close magnetic" onclick="closeProfileModal()"><i class="fa-solid fa-xmark"></i></button>
|
|
</header>
|
|
<form class="modal-body" onsubmit="handleProfileSubmit(event)">
|
|
<div class="profile-head">
|
|
<span class="profile-avatar" id="profAvatar">👤</span>
|
|
<div class="profile-head-info">
|
|
<h3 id="profName">—</h3>
|
|
<div class="profile-head-meta">
|
|
<span><i class="fa-solid fa-at"></i> <span id="profUsername">—</span></span>
|
|
<span><i class="fa-solid fa-code"></i> <span id="profRole">—</span></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="profile-stats">
|
|
<div class="profile-stat">
|
|
<div class="profile-stat-num ticker" id="profStatAssigned">0</div>
|
|
<div class="profile-stat-label">Assigned</div>
|
|
</div>
|
|
<div class="profile-stat">
|
|
<div class="profile-stat-num ticker" id="profStatHeld">0</div>
|
|
<div class="profile-stat-label">On hold</div>
|
|
</div>
|
|
<div class="profile-stat">
|
|
<div class="profile-stat-num ticker" id="profStatDone">0</div>
|
|
<div class="profile-stat-label">Completed</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-grid">
|
|
<label class="fld">
|
|
<span class="fld-label">Full name</span>
|
|
<div class="fld-ctrl"><input type="text" id="profInputName" required></div>
|
|
</label>
|
|
<label class="fld">
|
|
<span class="fld-label">Role</span>
|
|
<div class="fld-ctrl">
|
|
<select id="profInputRole">
|
|
<option value="frontend">Frontend Dev</option>
|
|
<option value="backend">Backend Dev</option>
|
|
<option value="tester">QA / Tester</option>
|
|
<option value="lead">Team Lead</option>
|
|
<option value="engineer">Engineer</option>
|
|
<option value="security">Security</option>
|
|
</select>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="fld">
|
|
<span class="fld-label">Choose avatar</span>
|
|
<div class="avatar-grid">
|
|
<label class="av-opt"><input type="radio" name="profAvatarRadio" value="👩💻"><span>👩💻</span></label>
|
|
<label class="av-opt"><input type="radio" name="profAvatarRadio" value="👨💻"><span>👨💻</span></label>
|
|
<label class="av-opt"><input type="radio" name="profAvatarRadio" value="🕵️♂️"><span>🕵️♂️</span></label>
|
|
<label class="av-opt"><input type="radio" name="profAvatarRadio" value="⚡"><span>⚡</span></label>
|
|
<label class="av-opt"><input type="radio" name="profAvatarRadio" value="🚀"><span>🚀</span></label>
|
|
<label class="av-opt"><input type="radio" name="profAvatarRadio" value="🛡️"><span>🛡️</span></label>
|
|
<label class="av-opt"><input type="radio" name="profAvatarRadio" value="🦊"><span>🦊</span></label>
|
|
<label class="av-opt"><input type="radio" name="profAvatarRadio" value="🐉"><span>🐉</span></label>
|
|
</div>
|
|
</div>
|
|
|
|
<label class="fld">
|
|
<span class="fld-label">New password (leave blank to keep current)</span>
|
|
<div class="fld-ctrl"><input type="password" id="profInputPassword" placeholder="••••••••"></div>
|
|
</label>
|
|
|
|
<div class="modal-foot">
|
|
<button type="button" class="btn-ghost magnetic" onclick="closeProfileModal()">Cancel</button>
|
|
<button type="button" class="btn-ghost btn-danger magnetic" onclick="handleLogout()"><i class="fa-solid fa-arrow-right-from-bracket"></i> Sign Out</button>
|
|
<button type="submit" class="btn-aurora magnetic"><i class="fa-solid fa-floppy-disk"></i> Save</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-overlay" id="modalLink">
|
|
<div class="modal modal-sm glass-panel-strong">
|
|
<div class="modal-beam"></div>
|
|
<header class="modal-head">
|
|
<h2><i class="fa-solid fa-link"></i> Attach Link</h2>
|
|
<button class="icon-btn modal-close magnetic" onclick="closeLinkModal()"><i class="fa-solid fa-xmark"></i></button>
|
|
</header>
|
|
<form class="modal-body" onsubmit="handleLinkSubmit(event)">
|
|
<label class="fld">
|
|
<span class="fld-label">URL <span class="req">*</span></span>
|
|
<div class="fld-ctrl"><input type="url" id="linkUrlInput" placeholder="https://github.com/…" required></div>
|
|
</label>
|
|
<p class="form-note">Link will be appended to your remark as a clickable reference.</p>
|
|
<div class="modal-foot">
|
|
<button type="button" class="btn-ghost magnetic" onclick="closeLinkModal()">Cancel</button>
|
|
<button type="submit" class="btn-aurora magnetic"><i class="fa-solid fa-plus"></i> Append</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="toast-stack" id="toastStack"></div>
|
|
<script src="/khira/app.js" defer></script>
|
|
</body>
|
|
</html> |