fix(updates): remove beta label

This commit is contained in:
Federico Jaramillo Martinez
2026-07-02 21:16:33 +02:00
parent 439520c3e4
commit 0b17b9d97d
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@jmfederico/pi-web": patch
---
Promote the Updates tab to stable by removing its beta label while keeping update message counts visible.
+2 -2
View File
@@ -104,7 +104,7 @@ function renderUpdatesPanel(html: HtmlTemplateTag, terminal: WorkspacePanelTermi
.updates-command > span { grid-column: 1 / -1; }
}
</style>
<section class="toolbar"><strong>Updates</strong><span class="stale">beta</span>${messages.length > 0 ? html`<span class="stale">${String(messages.length)}</span>` : null}</section>
<section class="toolbar"><strong>Updates</strong>${messages.length > 0 ? html`<span class="stale">${String(messages.length)}</span>` : null}</section>
<section class="viewer updates-status">
<section>
${messages.length === 0 ? html`<p class="muted">No PI WEB update or restart messages.</p>` : messages.map((message) => html`
@@ -160,7 +160,7 @@ const plugin: PiWebPlugin = {
visible: (context) => shouldShowUpdatesPanel(context.state),
badge: (context) => {
const count = messageCount(context.state);
return html`beta${count > 0 ? html` · ${String(count)}` : null}`;
return count > 0 ? count : undefined;
},
render: (context) => renderUpdatesPanel(html, context.terminal, context.state),
},