Technical Debt Prioritization Matrix

Quick Win (High Impact/Low Effort)
Strategic (High Impact/High Effort)
Fillers (Low Impact/Low Effort)
Time Sinks (Low Impact/High Effort)

Debt Inventory (0)

New Technical Debt Item

5

How much value does fixing this bring to the product or team velocity?

5

How difficult, risky, or time-consuming is this to fix?

Technical Debt Audit Report

Generated:

Matrix Visualization

Prioritized Item List

Priority Item Category Impact Effort

No items recorded.

'; return; } sorted.forEach(item => { const quad = getQuadrant(item.impact, item.effort); const div = document.createElement('div'); div.className = `debt-item ${quad.class}`; div.innerHTML = `
${item.name}
${item.category} | Impact: ${item.impact} | Effort: ${item.effort} | ${quad.name}
`; container.appendChild(div); }); } function renderChart() { const ctx = document.getElementById('debtChart').getContext('2d'); const dataPoints = debtItems.map(item => { const quad = getQuadrant(item.impact, item.effort); return { x: item.effort, y: item.impact, name: item.name, cat: item.category, backgroundColor: quad.color }; }); if (chartInstance) chartInstance.destroy(); chartInstance = new Chart(ctx, { type: 'scatter', data: { datasets: [{ label: 'Debt Items', data: dataPoints, pointRadius: 8, pointHoverRadius: 10, pointBackgroundColor: (ctx) => ctx.raw ? ctx.raw.backgroundColor : '#333' }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false }, tooltip: { callbacks: { label: function(context) { return context.raw.name + ` (${context.raw.cat})`; } } }, annotation: { // Note: Annotation requires a plugin usually, so we use grid lines and background hacks if plugin missing. // We will rely on Axis lines to create the quadrant visual. } }, scales: { x: { min: 0, max: 11, title: { display: true, text: 'Effort (Cost/Complexity)' }, grid: { color: (ctx) => ctx.tick.value === 5.5 ? '#666' : '#eee', lineWidth: (ctx) => ctx.tick.value === 5.5 ? 2 : 1 } }, y: { min: 0, max: 11, title: { display: true, text: 'Impact (Value)' }, grid: { color: (ctx) => ctx.tick.value === 5.5 ? '#666' : '#eee', lineWidth: (ctx) => ctx.tick.value === 5.5 ? 2 : 1 } } } } }); } // --- PDF Export --- function generatePDF() { const template = document.getElementById('tech-pdf-template'); const tbody = document.getElementById('pdf-tbody'); const imgContainer = document.getElementById('pdf-chart-img'); // Set Date document.getElementById('pdf-date').innerText = new Date().toLocaleDateString(); // Capture Chart const canvas = document.getElementById('debtChart'); const imgData = canvas.toDataURL('image/png'); imgContainer.innerHTML = ``; // Fill Table tbody.innerHTML = ''; // Sort: Quick Wins first, then Strategic const sorted = [...debtItems].sort((a,b) => { const qA = getQuadrant(a.impact, a.effort).name; const qB = getQuadrant(b.impact, b.effort).name; // Custom sort order logic could go here, simplified to Impact desc return b.impact - a.impact; }); sorted.forEach(item => { const quad = getQuadrant(item.impact, item.effort); const row = ` ${quad.name} ${item.name} ${item.category} ${item.impact} ${item.effort} `; tbody.insertAdjacentHTML('beforeend', row); }); // Show/Print/Hide template.style.display = 'block'; const opt = { margin: 0.5, filename: 'Tech_Debt_Prioritization.pdf', image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2 }, jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } }; html2pdf().set(opt).from(template).save().then(() => { template.style.display = 'none'; imgContainer.innerHTML = ''; }); } return { switchTab, updateRangeVal, addItem, deleteItem, generatePDF }; })();
Scroll to Top