V0.38.5 git board rewrite (#238)

Co-authored-by: gobha <jasafpro@gmail.com>
Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
2026-03-25 22:24:59 +00:00
committed by xcaliber
parent 495bcc94f4
commit c03ece4230
24 changed files with 1354 additions and 413 deletions

View File

@@ -185,25 +185,34 @@ export function ConnectionsSection() {
${connections.length > 0 && html`
<table class="admin-table">
<thead><tr><th>Name</th><th>Type</th><th>Status</th><th></th></tr></thead>
<thead><tr><th>Name</th><th>Type</th><th>Scope</th><th>Status</th><th></th></tr></thead>
<tbody>
${connections.map(c => html`
<tr>
<td style="font-weight:500;font-size:13px;">${esc(c.name)}</td>
<td style="font-size:12px;color:var(--text-2);">${esc(c.type)}</td>
<td style="font-size:11px;">
<span class="badge" style=${
c.scope === 'global' ? 'background:var(--accent);color:#fff;' :
c.scope === 'team' ? 'background:var(--green);color:#fff;' :
''
}>${esc(c.scope || 'personal')}</span>
</td>
<td style="font-size:12px;">
${c.is_active
? html`<span style="color:var(--green);">\u25CF Active</span>`
: html`<span style="color:var(--text-3);">\u25CB Inactive</span>`}
</td>
<td class="admin-actions-cell" style="white-space:nowrap;">
<button class="icon-btn" title="Edit" onClick=${() => openEdit(c)}>
\u{270F}\u{FE0F}
</button>
<button class="icon-btn icon-btn-danger" title="Delete"
onClick=${() => del(c)}>
\u{1F5D1}
</button>
${c.scope === 'personal' ? html`
<button class="icon-btn" title="Edit" onClick=${() => openEdit(c)}>
\u{270F}\u{FE0F}
</button>
<button class="icon-btn icon-btn-danger" title="Delete"
onClick=${() => del(c)}>
\u{1F5D1}
</button>
` : ''}
</td>
</tr>
`)}