Add proper lifecycle and superseding support for Architectural Decision Records

This commit is contained in:
Riz Ashraf committed 2026-09-27 10:01:46 +01:00
1 parent 70edfa4389
commit 54aead2151
4 files changed
+28 -3

No files matched your search

+5 -3
View File
@@ -1085,10 +1085,12 @@
`);
loadGenericList('/api/adrs', 'adrs-container', item => `
<strong>${item.title}</strong>
<div style="font-size:0.9em; margin-bottom:8px;"><em>Context:</em> ${item.context || ''}</div>
<strong>${item.id} | ${item.title}</strong>
<span style="float:right; background:var(--canvas-bg); padding:2px 6px; border-radius:4px; font-size:0.8em; border:1px solid var(--border-color); ${item.status === 'superseded' ? 'text-decoration: line-through; color:var(--error-color);' : 'color:var(--success-color);'}">${item.status}</span>
<div style="font-size:0.9em; margin-bottom:8px; margin-top:8px;"><em>Context:</em> ${item.context || ''}</div>
<div style="font-size:0.9em; margin-bottom:8px;"><em>Decision:</em> ${item.decision || ''}</div>
<div style="font-size:0.9em;"><em>Consequences:</em> ${item.consequences || ''}</div>
<div style="font-size:0.9em; margin-bottom:8px;"><em>Consequence:</em> ${item.consequence || ''}</div>
${item.supersedes ? `<div style="font-size:0.9em; font-weight:bold; color:var(--warning-color);">Supersedes: ${item.supersedes}</div>` : ''}
`);
loadGenericList('/api/context_workspaces', 'workspaces-container', item => `