The user wants a "UX debt burn-down prosecutor board". This is a very specific, metaphor-heavy request. I need to translate the metaphor into a functional, visually appealing dashboard.
1. Deconstructing the Request:
- "UX Debt Burn-down": This is the core data visualization. We need to track UX debt over time (like a sprint burn-down), showing the remaining effort vs. time. Ideally, it should show the "ideal" trend vs. the "actual" trend.
- "Prosecutor Board": This implies a tone of accountability, urgency, and decision-making. It's not just a report; it's a tool for "prosecuting" the debt. This suggests strong visual indicators (red/amber/green), "accused" items (high-risk debt), and evidence (metrics).
- "Velocity Impact": How is the UX debt affecting the team's ability to ship features? We need a chart showing the correlation between "Debt Accumulation" and "Feature Velocity" (or Bug Rate).
- "Roadmap Trade-offs": What are we not building because we are fixing debt? Or, if we don't fix the debt, what features get delayed? This needs a timeline or a "Impact vs. Effort" quadrant view.
- "Risk Heatmaps": Visual representation of where the debt is concentrated (e.g., by platform, by user journey stage, by component).
2. Conceptualizing the Dashboard Layout:
I'll organize the board into logical sections, keeping the "Prosecutor" theme in mind for the UI copy and styling.
- Header: Title, current "Prosecution Status" (e.g., "Critical Evidence Found"), and key summary stats (Total Debt Hours, Risk Score).
- Section 1: The Verdict (Velocity Impact): A dual-axis chart. One line for "Feature Velocity" (Story Points), one line for "Debt Servicing Cost" (Hours/Bugs). This visualizes the drag.
- Section 2: The Accused (Risk Heatmap): A matrix or treemap. Rows could be User Journeys (Onboarding, Checkout, Settings), Columns could be Severity (Critical, Major, Minor). The color intensity represents the "Risk Score."
- Section 3: The Plea Deal (Roadmap Trade-offs): A Gantt-like or stacked area chart. Two scenarios: "Status Quo" (features slip) vs. "Debt Sprints" (features cut, debt fixed).
- Section 4: The Executioner's List (Burn-down): The classic burn-down chart. Remaining Debt (Y-axis) vs. Sprints (X-axis).
3. Selecting the Tech Stack:
- HTML/CSS: For structure and styling. I'll use a dark mode theme to give it a "command center" / "legal tech" vibe.
- Tailwind CSS: Essential for rapid, clean styling.
- Chart.js: A lightweight, easy-to-use library for the various charts (Line, Bar, Matrix). It handles mixed charts well.
- Mock Data: Since there's no backend, I need to generate realistic-looking JSON data within the script.
4. Drafting the Content & UI Elements:
- Colors:
- Background: Dark Slate/Black (
#0f172a or similar).
- Primary: Cold White/Grey for text.
- Accent (Good): Teal/Green (
#10b981).
- Accent (Bad): Red/Orange (
#ef4444).
- Warning: Amber (
#f59e0b).
- Fonts: A monospaced font for data (Courier, Roboto Mono) and a clean sans-serif for headers (Inter, Roboto).
5. Step-by-Step Implementation Plan:
- Step 1: HTML Skeleton: Create the grid layout. A 2-column or 3-column grid works best.
- Step 2: CSS/Theme: Apply the dark theme using Tailwind.
- Step 3: Velocity Impact Chart: Use Chart.js to create a mixed line/bar chart. Line = Velocity, Bar = Debt Cost.
- Step 4: Risk Heatmap: This is tricky in pure Chart.js without a plugin. I might use a custom HTML/CSS Grid for the heatmap to make it look sharper and more interactive than a standard chart matrix. Let's go with a CSS Grid for the heatmap.
- Step 5: Roadmap Trade-offs: A horizontal stacked bar chart or a simple timeline visualization. Let's use a "Before/After" visualization or a "Scenario Toggle" concept. Actually, a stacked bar chart showing "Feature Time" vs "Debt Time" over upcoming quarters is clearer.
- Step 6: Burn-down Chart: Standard Line chart with a "Target" line and "Actual" line.
- Step 7: Polish: Add "Prosecutor" labels (e.g., "The Accused," "Exhibit A," "Sentence").
6. Refining the "Prosecutor" Theme:
- Instead of just "Dashboard," call it "Case File."
- instead of "High Priority," call it "Felony Debt."
- Instead of "Low Priority," call it "Misdemeanor."
- Call the burn-down chart "The Sentence Timeline."
7. Writing the Code (Mental Draft):
- Heatmap: Needs a grid.
div rows for areas (e.g., Checkout, Search). div cells for specific debt items.
- Charts: Need
ctx elements. Chart.js configuration needs options for dark mode (changing grid line colors, tick colors).
8. Self-Correction/Review:
- Critique: Is it too cluttered?
- Fix: Use whitespace. Cards for each section.
- Critique: Is the "Prosecutor" theme too cheesy?
- Fix: Keep it professional but use the terminology in headers. "UX Debt Prosecution Board."
9. Final Code Structure:
<!DOCTYPE html>
<head>: Tailwind CDN, Chart.js CDN, Google Fonts.
<style>: Custom CSS for the heatmap logic (heat colors).
<body>:
- Nav bar.
- Grid container.
- Card 1: Velocity Impact (Chart.js).
- Card 2: Risk Heatmap (CSS Grid).
- Card 3: Roadmap Trade-offs (Chart.js Horizontal Bar).
- Card 4: Burn-down (Chart.js Line).
- Card 5: Key Indicators (KPIs).
<script>: Chart.js instances and data generation.
Let's execute this plan. I will ensure the chart colors are distinct (Red for debt/bad, Blue/Green for velocity/good).
Refining the Heatmap:
The heatmap will map "System Areas" vs "Debt Type" (e.g., Accessibility, UI Consistency, Performance).
Areas: Auth, Dashboard, Profile, Payments.
Types: A11y, Usability, Tech.
Refining Roadmap Trade-offs:
Let's show a toggle or comparison. "Q3 Outlook: If we ignore debt vs. If we fix." Or just a chart showing the ratio of New Features vs. Debt Paydown over the next 4 sprints.
Let's get coding.
Here is a comprehensive engineering specification and code implementation for a UX Debt Burn-down Prosecutor Board.
1. The Engineering Concept
This dashboard is designed not just to track debt, but to "prosecute" it—framing technical and design deficiencies as risks to business velocity. It connects the dots between Micro-UX friction and Macro-business outcomes.
Key Components:
- The Prosecution Table: A prioritized backlog of UX debts, ranked by a "Guilty Score" (Severity × User Traffic × Age).
- Velocity Impact Visualizer: Correlates the accumulation of UX debt with the drop in feature velocity (the "Drag Coefficient").
- Roadmap Trade-offs: A "Guillotine" view—what features must die for the user experience to live.
- Risk Heatmaps: Visualizing friction across the user journey.
2. The Tech Stack
- Framework: HTML5 / CSS3 (Tailwind CSS for utility-first styling).
- Visualization: Chart.js (for rendering burn-down and velocity charts).
- Logic: Vanilla JavaScript (ES6+).
3. The Implementation
You can save the following code as index.html and open it in any browser. It requires an internet connection to load Tailwind CSS and Chart.js from the CDN.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UX Debt Prosecutor Board</title>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Chart.js -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- Google Fonts -->
<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@300;400;600;800&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
<style>
body { font-family: 'Inter', sans-serif; }
.mono { font-family: 'JetBrains Mono', monospace; }
.gradient-bg {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.glass {
background: rgba(30, 41, 59, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Pulse animation for high risk */
@keyframes pulse-red {
0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.critical-pulse {
animation: pulse-red 2s infinite;
}
</style>
</head>
<body class="gradient-bg text-slate-200 min-h-screen p-6">
<!-- Header -->
<header class="mb-8 flex justify-between items-center border-b border-slate-700 pb-4">
<div>
<h1 class="text-3xl font-extrabold tracking-tight text-white">The Prosecutor Board</h1>
<p class="text-slate-400 text-sm">Case File: UX Debt vs. Roadmap Velocity</p>
</div>
<div class="flex items-center gap-4">
<div class="text-right">
<p class="text-xs text-slate-500 uppercase">Current Sprint Velocity Drag</p>
<p class="text-2xl font-bold text-red-500 mono">-24%</p>
</div>
<div class="h-10 w-px bg-slate-700"></div>
<div class="text-right">
<p class="text-xs text-slate-500 uppercase">Total Debt Hours</p>
<p class="text-2xl font-bold text-amber-500 mono">340h</p>
</div>
</div>
</header>
<!-- Main Grid -->
<div class="grid grid-cols-12 gap-6">
<!-- Left Column: Analytics -->
<div class="col-span-12 lg:col-span-8 space-y-6">
<!-- Velocity Impact Section -->
<div class="glass rounded-xl p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-slate-100">Velocity Impact & Drag Coefficient</h2>
<span class="text-xs bg-red-900/50 text-red-300 px-2 py-1 rounded-full">High Risk</span>
</div>
<div class="h-64">
<canvas id="velocityChart"></canvas>
</div>
<p class="text-xs text-slate-500 mt-4 italic">
* The "Drag Zone" represents feature output lost to debugging UX issues not originally ticketed.
</p>
</div>
<!-- Roadmap Trade-offs (The Guillotine) -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Features to Cut -->
<div class="glass rounded-xl p-6 border-l-4 border-red-500">
<h3 class="text-sm font-bold uppercase tracking-widest text-red-400 mb-4">Sentenced to Death (Trade-offs)</h3>
<p class="text-xs text-slate-400 mb-4">Features at risk if debt is not addressed this sprint.</p>
<ul class="space-y-3">
<li class="bg-slate-800/50 p-3 rounded flex justify-between items-center">
<span class="font-medium text-slate-300">AI Recommendation Engine</span>
<span class="text-xs bg-slate-700 px-2 py-0.5 rounded text-red-400">Delayed 2 Sprints</span>
</li>
<li class="bg-slate-800/50 p-3 rounded flex justify-between items-center">
<span class="font-medium text-slate-300">Social Sharing V2</span>
<span class="text-xs bg-slate-700 px-2 py-0.5 rounded text-red-400">Cut</span>
</li>
<li class="bg-slate-800/50 p-3 rounded flex justify-between items-center">
<span class="font-medium text-slate-300">Dashboard Customization</span>
<span class="text-xs bg-slate-700 px-2 py-0.5 rounded text-amber-400">Reduced Scope</span>
</li>
</ul>
</div>
<!-- Burn-down Projection -->
<div class="glass rounded-xl p-6">
<h3 class="text-sm font-bold uppercase tracking-widest text-emerald-400 mb-4">Burn-down Trajectory</h3>
<div class="h-40">
<canvas id="burndownChart"></canvas>
</div>
</div>
</div>
<!-- Risk Heatmap -->
<div class="glass rounded-xl p-6">
<h2 class="text-lg font-semibold text-slate-100 mb-4">Systemic Risk Heatmap</h2>
<div class="grid grid-cols-5 gap-2 text-center text-xs text-slate-400">
<div>Auth</div><div>Dashboard</div><div>Settings</div><div>Checkout</div><div>Search</div>
<!-- Row 1: Severity -->
<div class="col-span-5 grid grid-cols-5 gap-2 mt-2">
<div class="h-16 rounded bg-yellow-500/20 flex items-center justify-center font-bold text-yellow-400">L</div>
<div class="h-16 rounded bg-red-500/40 flex items-center justify-center font-bold text-red-400 critical-pulse">M</div>
<div class="h-16 rounded bg-green-500/20 flex items-center justify-center font-bold text-green-400">S</div>
<div class="h-16 rounded bg-red-600/60 flex items-center justify-center font-bold text-red-200 critical-pulse">XL</div>
<div class="h-16 rounded bg-orange-500/30 flex items-center justify-center font-bold text-orange-400">M</div>
</div>
<!-- Row 2: Frequency -->
<div class="col-span-5 grid grid-cols-5 gap-2 mt-2">
<div class="h-8 rounded bg-slate-700/50 flex items-center justify-center text-[10px]">Low</div>
<div class="h-8 rounded bg-slate-700/50 flex items-center justify-center text-[10px]">High</div>
<div class="h-8 rounded bg-slate-700/50 flex items-center justify-center text-[10px]">Med</div>
<div class="h-8 rounded bg-slate-700/50 flex items-center justify-center text-[10px]">Critical</div>
<div class="h-8 rounded bg-slate-700/50 flex items-center justify-center text-[10px]">High</div>
</div>
</div>
</div>
</div>
<!-- Right Column: The Case Files (Debt Backlog) -->
<div class="col-span-12 lg:col-span-4">
<div class="glass rounded-xl p-4 sticky top-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-slate-100">Active Prosecutions</h2>
<button class="text-xs bg-indigo-600 hover:bg-indigo-500 px-3 py-1 rounded">Add Debt</button>
</div>
<div class="space-y-4 overflow-y-auto max-h-[800px]">
<!-- Case Item 1 -->
<div class="bg-slate-900/60 border border-slate-700 rounded-lg p-4 hover:border-red-500 transition-colors cursor-pointer">
<div class="flex justify-between items-start mb-2">
<span class="bg-red-900/80 text-red-200 text-[10px] font-bold px-2 py-0.5 rounded">CRITICAL</span>
<span class="text-[10px] text-slate-500">Age: 45 Days</span>
</div>
<h4 class="font-semibold text-white text-sm">Checkout "Back" button loop</h4>
<p class="text-xs text-slate-400 mt-1">Users trapped in navigation loop on mobile payment view.</p>
<div class="mt-3 pt-3 border-t border-slate-700 flex justify-between items-center">
<div class="flex -space-x-2">
<div class="w-6 h-6 rounded-full bg-slate-500 flex items-center justify-center text-[10px] border-2 border-slate-900">JD</div>
<div class="w-6 h-6 rounded-full bg-slate-600 flex items-center justify-center text-[10px] border-2 border-slate-900">SK</div>
</div>
<div class="text-right">
<span class="block text-[10px] text-slate-500 uppercase">Impact</span>
<span class="text-sm font-bold text-red-400 mono">-$12k/wk</span>
</div>
</div>
</div>
<!-- Case Item 2 -->
<div class="bg-slate-900/60 border border-slate-700 rounded-lg p-4 hover:border-amber-500 transition-colors cursor-pointer">
<div class="flex justify-between items-start mb-2">
<span class="bg-amber-900/80 text-amber-200 text-[10px] font-bold px-2 py-0.5 rounded">HIGH</span>
<span class="text-[10px] text-slate-500">Age: 12 Days</span>
</div>
<h4 class="font-semibold text-white text-sm">Inconsistent Iconography</h4>
<p class="text-xs text-slate-400 mt-1">Settings uses filled icons, Dashboard uses outlined. Cognitive load increase.</p>
<div class="mt-3 pt-3 border-t border-slate-700 flex justify-between items-center">
<div class="flex -space-x-2">
<div class="w-6 h-6 rounded-full bg-blue-500 flex items-center justify-center text-[10px] border-2 border-slate-900">AL</div>
</div>
<div class="text-right">
<span class="block text-[10px] text-slate-500 uppercase">Impact</span>
<span class="text-sm font-bold text-amber-400 mono">Trust</span>
</div>
</div>
</div>
<!-- Case Item 3 -->
<div class="bg-slate-900/60 border border-slate-700 rounded-lg p-4 hover:border-slate-500 transition-colors cursor-pointer">
<div class="flex justify-between items-start mb-2">
<span class="bg-slate-700 text-slate-300 text-[10px] font-bold px-2 py-0.5 rounded">MEDIUM</span>
<span class="text-[10px] text-slate-500">Age: 5 Days</span>
</div>
<h4 class="font-semibold text-white text-sm">Table Sorting Latency</h4>
<p class="text-xs text-slate-400 mt-1">Large data sets take >2s to sort, no loading indicator.</p>
<div class="mt-3 pt-3 border-t border-slate-700 flex justify-between items-center">
<div class="flex -space-x-2">
<div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center text-[10px] border-2 border-slate-900">BE</div>
</div>
<div class="text-right">
<span class="block text-[10px] text-slate-500 uppercase">Impact</span>
<span class="text-sm font-bold text-slate-400 mono">Perf</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// --- Chart Configuration ---
// 1. Velocity Impact Chart (The Drag Visualization)
const velocityCtx = document.getElementById('velocityChart').getContext('2d');
const velocityChart = new Chart(velocityCtx, {
type: 'line',
data: {
labels: ['Sprint 1', 'Sprint 2', 'Sprint 3', 'Sprint 4', 'Sprint 5', 'Sprint 6 (Current)'],
datasets: [
{
label: 'Projected Velocity (No Debt)',
data: [40, 42, 44, 46, 48, 50],
borderColor: 'rgba(255, 255, 255, 0.2)',
borderDash: [5, 5],
pointRadius: 0,
fill: false,
tension: 0.4
},
{
label: 'Actual Velocity',
data: [40, 38, 35, 30, 28, 25],
borderColor: '#ef4444',
backgroundColor: 'rgba(239, 68, 68, 0.1)',
fill: true,
tension: 0.4,
pointBackgroundColor: '#ef4444'
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
grid: { color: 'rgba(255, 255, 255, 0.05)' },
ticks: { color: '#94a3b8' }
},
x: {
grid: { color: 'rgba(255, 255, 255, 0.05)' },
ticks: { color: '#94a3b8' }
}
},
plugins: {
legend: { labels: { color: '#cbd5e1' } },
tooltip: {
mode: 'index',
intersect: false,
backgroundColor: '#1e293b'
}
}
}
});
// 2. Burn-down Chart
const burndownCtx = document.getElementById('burndownChart').getContext('2d');
const burndownChart = new Chart(burndownCtx, {
type: 'line',
data: {
labels: ['Start', 'W1', 'W2', 'W3', 'W4', 'End'],
datasets: [
{
label: 'Ideal Burn',
data: [100, 80, 60, 40, 20, 0],
borderColor: 'rgba(255, 255, 255, 0.3)',
borderDash: [5, 5],
fill: false,
tension: 0.1
},
{
label: 'Actual Burn',
data: [100, 95, 88, 78, 70, 65],
borderColor: '#f59e0b',
fill: false,
tension: 0.4
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: { display: false },
x: {
grid: { color: 'rgba(255, 255, 255, 0.05)' },
ticks: { color: '#94a3b8', font: { size: 9 } }
}
},
plugins: {
legend: { display: false }
}
}
});
</script>
</body>
</html>
4. UX Debt Logic Explained
This board utilizes specific metrics to "prosecute" the debt:
-
The Guilty Score (Sorting Logic):
In a real app, the list on the right would be sorted by a hidden metric:
Guilty Score=(Severity×Traffic)+Age
- Severity: Critical (5 pts) to Low (1 pt).
- Traffic: How many users hit this flow per week.
- Age: Debt that has sat longer gains "interest" (priority points).
-
The Drag Coefficient:
The velocity chart visualizes the gap between Project Velocity (what we could do if the codebase was clean) vs Actual Velocity. The area between the two lines represents Lost Opportunity Cost.
-
The Heatmap:
Instead of just listing bugs, the heatmap visualizes where the structural integrity of the application is failing. High severity in high-traffic areas (like "Checkout" in the example) triggers a CSS pulse animation, acting as a visual alarm.