diff --git a/internal/plugins/admin/dashboard.templ b/internal/plugins/admin/dashboard.templ index 19630cd..17f3cc6 100644 --- a/internal/plugins/admin/dashboard.templ +++ b/internal/plugins/admin/dashboard.templ @@ -76,16 +76,16 @@ templ AdminDashboardPage(userCount, campaignCount, mediaFileCount int, totalStor
{ fmt.Sprintf("%d", addonCount) }
Manage features →
- - + +Content Packs
+Systems
Extensions & Game Systems
-Manage content packs →
+Game System Diagnostics
+View system status →
diff --git a/internal/systems/json_provider.go b/internal/systems/json_provider.go index 2c507b2..22f84db 100644 --- a/internal/systems/json_provider.go +++ b/internal/systems/json_provider.go @@ -32,6 +32,11 @@ func NewJSONProvider(moduleID, dataDir string) (*JSONProvider, error) { entries, err := os.ReadDir(dataDir) if err != nil { + if os.IsNotExist(err) { + // No data directory is valid — widget-only systems don't need + // reference data. Return an empty provider. + return p, nil + } return nil, fmt.Errorf("reading data dir %s: %w", dataDir, err) } diff --git a/internal/templates/layouts/app.templ b/internal/templates/layouts/app.templ index 2a30a95..1f2c4bc 100644 --- a/internal/templates/layouts/app.templ +++ b/internal/templates/layouts/app.templ @@ -621,16 +621,17 @@ templ AdminSidebarNav() { SMTP Settings -