feat(status-page): add ManaCore to app registry + fix mana.how badge

Add ManaCore as first entry in MANA_APPS so the dashboard at mana.how
gets a tier badge. Map mana.how → manacore and inventar → inventory
in subdomain aliases.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-01 11:59:16 +02:00
parent 6d5d5283b7
commit f9514dec83
2 changed files with 23 additions and 4 deletions

View file

@ -85,6 +85,23 @@ export interface ManaApp {
* Order determines display order in AppSlider
*/
export const MANA_APPS: ManaApp[] = [
{
id: 'manacore',
name: 'ManaCore',
description: {
de: 'Multi-App Ecosystem',
en: 'Multi-App Ecosystem',
},
longDescription: {
de: 'Das zentrale Dashboard für alle Mana-Apps mit SSO, Credits und App-Verwaltung.',
en: 'The central dashboard for all Mana apps with SSO, credits, and app management.',
},
icon: APP_ICONS.manacore,
color: '#6366f1',
comingSoon: false,
status: 'beta',
requiredTier: 'alpha',
},
{
id: 'chat',
name: 'ManaChat',

View file

@ -176,10 +176,12 @@ get_tier_badge() {
subdomain="${subdomain%/health}"
# API-Subdomains skippen (z.B. todo-api, chat-api)
case "$subdomain" in *-api) return ;; esac
# Spezialfall: mana.how selbst → manacore (kein Tier)
[ "$subdomain" = "mana.how" ] && return
# Subdomain-Aliase (alte Subdomains → aktuelle App-IDs)
case "$subdomain" in manadeck) subdomain="cards" ;; esac
# Subdomain-Aliase (Sonderfälle + alte Subdomains → aktuelle App-IDs)
case "$subdomain" in
mana.how) subdomain="manacore" ;;
manadeck) subdomain="cards" ;;
inventar) subdomain="inventory" ;;
esac
echo "$TIER_APPS" | while IFS='|' read -r id name tier st; do
[ "$id" = "$subdomain" ] || continue