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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user