Changeset 0.31.0 (#203)
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit is contained in:
@@ -143,10 +143,6 @@ func (e *Engine) extensionNavItems() []ExtensionNavItem {
|
||||
if sr.Type != "surface" && sr.Type != "full" {
|
||||
continue
|
||||
}
|
||||
// Editor is Source="extension" but hardcoded as core — skip from dynamic nav
|
||||
if sr.ID == "editor" {
|
||||
continue
|
||||
}
|
||||
route := ""
|
||||
if sr.Manifest != nil {
|
||||
route, _ = sr.Manifest["route"].(string)
|
||||
@@ -202,13 +198,6 @@ func (e *Engine) registerCoreSurfaces() {
|
||||
DataRequires: []string{"chat"},
|
||||
Layout: "single", Source: "core",
|
||||
},
|
||||
{
|
||||
ID: "editor", Route: "/editor/:wsId", AltRoutes: []string{"/editor"},
|
||||
Title: "Editor", Template: "surface-editor", Auth: "authenticated",
|
||||
Components: []string{"file-tree", "code-editor", "chat-pane", "note-editor", "model-selector"},
|
||||
DataRequires: []string{"editor"},
|
||||
Layout: "editor", Source: "extension", // Dogfood: editor is the first non-core surface
|
||||
},
|
||||
{
|
||||
ID: "notes", Route: "/notes", AltRoutes: []string{"/notes/:noteId"},
|
||||
Title: "Notes", Template: "surface-notes", Auth: "authenticated",
|
||||
|
||||
Reference in New Issue
Block a user