From dfe48b884376f9f8b321b07cbfec4d24731fdc0f Mon Sep 17 00:00:00 2001 From: Rex Raphael Date: Thu, 1 Oct 2026 15:59:08 -0500 Subject: [PATCH] chore: stop wiring the Go-rendered dashboard into the extension Forge main has removed the dashboard contributor package and DashboardAware, so the extension no longer registers its templ dashboard. The dashboard/ directory stays until its React migration retires it. --- extension/extension.go | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/extension/extension.go b/extension/extension.go index 7f2d38f..6be74c1 100644 --- a/extension/extension.go +++ b/extension/extension.go @@ -15,15 +15,11 @@ import ( "net/http" "github.com/xraph/forge" - "github.com/xraph/forge/extensions/dashboard" - "github.com/xraph/forge/extensions/dashboard/contributor" "github.com/xraph/grove" "github.com/xraph/vessel" "github.com/xraph/weave/api" - weavedash "github.com/xraph/weave/dashboard" "github.com/xraph/weave/engine" - "github.com/xraph/weave/plugins" "github.com/xraph/weave/store" mongostore "github.com/xraph/weave/store/mongo" pgstore "github.com/xraph/weave/store/postgres" @@ -39,11 +35,8 @@ const ExtensionDescription = "Composable RAG pipeline engine for document ingest // ExtensionVersion is the semantic version. const ExtensionVersion = "0.1.0" -// Ensure Extension implements forge.Extension and dashboard.DashboardAware at compile time. -var ( - _ forge.Extension = (*Extension)(nil) - _ dashboard.DashboardAware = (*Extension)(nil) -) +// Ensure Extension implements forge.Extension at compile time. +var _ forge.Extension = (*Extension)(nil) // Extension adapts Weave as a Forge extension. type Extension struct { @@ -199,18 +192,6 @@ func (e *Extension) RegisterRoutes(router forge.Router) { } } -// DashboardContributor implements [dashboard.DashboardAware]. -// It returns a LocalContributor that provides the Weave dashboard pages, -// widgets, and settings panel. -func (e *Extension) DashboardContributor() contributor.LocalContributor { - var exts []plugins.Extension - if e.eng != nil && e.eng.Extensions() != nil { - exts = e.eng.Extensions().Extensions() - } - manifest := weavedash.NewManifest(exts) - return weavedash.New(manifest, e.eng, exts) -} - // --- Config Loading (mirrors grove extension pattern) --- // loadConfiguration loads config from YAML files or programmatic sources.