Files
felhom-controller/controller/internal/web/templates/meta_badge.html
T
admin ea0d3f1764 catalog: app lifecycle states - available/hidden/abandoned (v0.158.0)
The catalog knew only 'present' or 'gone', and 'gone' orphans every customer
already running the app. lifecycle: in .felhom.yml withdraws an app from new
installs without touching anyone running it.

Deploy gate is server-side and fail-closed, before any mutation, with the
ruled Hungarian refusal - hiding a button is not a gate. Unknown values fail
OPEN (available + one WARN), deliberately opposite, so a typo or a newer
catalog cannot pull a working app out of every customer's list.

Orphan detection never sees the field - a red-proof adds that filter and shows
the abandoned app immediately reading as an orphan.

Badge plumbing is generic (MetaBadge + meta_badge partial) so R-56's
difficulty labels drop in with no new markup.
2026-07-21 16:19:58 +02:00

7 lines
346 B
HTML

{{/*
meta_badge — one catalog-metadata pill (lifecycle now, R-56 difficulty later).
Takes a *MetaBadge; renders nothing when nil, so callers can pass the funcmap result directly
without an {{if}} around every call site.
*/}}
{{define "meta_badge"}}{{with .}}<span class="tag {{.Class}}" title="{{.Title}}">{{.Label}}</span>{{end}}{{end}}