feat: Add OS and CWD details to Terminal History UI
This commit is contained in:
1 parent
4e23043f5d
commit
f59602a3e2
1 file changed
+4
@@ -1126,6 +1126,10 @@
|
|||||||
loadGenericList('/api/terminal/history', 'terminal-container', item => `
|
loadGenericList('/api/terminal/history', 'terminal-container', item => `
|
||||||
<span style="font-weight:bold; font-size:1.05em; color:var(--text-primary);">${item.command}</span>
|
<span style="font-weight:bold; font-size:1.05em; color:var(--text-primary);">${item.command}</span>
|
||||||
<span style="margin-left:15px; font-size:0.85em;"><span style="font-weight:bold; color:var(--text-secondary);">Exit Code:</span> <span style="color:${item.exit_code === 0 ? 'var(--success-color)' : 'var(--error-color)'}; font-weight:bold;">${item.exit_code}</span></span>
|
<span style="margin-left:15px; font-size:0.85em;"><span style="font-weight:bold; color:var(--text-secondary);">Exit Code:</span> <span style="color:${item.exit_code === 0 ? 'var(--success-color)' : 'var(--error-color)'}; font-weight:bold;">${item.exit_code}</span></span>
|
||||||
|
<div style="margin-top:10px; font-size:0.85em;">
|
||||||
|
<span style="background:var(--canvas-bg); padding:2px 6px; border-radius:4px; margin-right:8px; border:1px solid var(--border-color);">OS: ${item.os || 'Unknown'}</span>
|
||||||
|
<span style="background:var(--canvas-bg); padding:2px 6px; border-radius:4px; font-family:monospace; border:1px solid var(--border-color);">CWD: ${item.cwd || 'Unknown'}</span>
|
||||||
|
</div>
|
||||||
`);
|
`);
|
||||||
|
|
||||||
loadGenericList('/api/tech_debts', 'techdebt-container', item => `
|
loadGenericList('/api/tech_debts', 'techdebt-container', item => `
|
||||||
|
|||||||
Reference in new issue
Block a user