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:
2026-03-19 00:06:16 +00:00
committed by xcaliber
parent 5883cb50e2
commit 071dea8904
33 changed files with 1693 additions and 1562 deletions

View File

@@ -32,6 +32,19 @@ func (e *Engine) SeedSurfaces() {
}
}
log.Printf("[pages] Seeded %d core surfaces into registry", len(e.surfaces))
// v0.31.0: Clean up old "editor" core surface row.
// Editor is now an installable package — the old seed row would show a
// broken nav link until the package .pkg is uploaded via admin UI.
if sr, err := e.stores.Packages.Get(ctx, "editor"); err == nil && sr != nil && sr.Source == "extension" {
if sr.Type == "" || sr.Type == "surface" {
if delErr := e.stores.Packages.Delete(ctx, "editor"); delErr != nil {
log.Printf("[pages] Failed to clean up old editor surface: %v", delErr)
} else {
log.Printf("[pages] Cleaned up old editor core surface — install editor .pkg via admin UI")
}
}
}
}
// IsSurfaceEnabled checks if a surface is enabled in the registry.