Skip to content

Release v4.57.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 10:03
eaacc1c

Part of #158 (epic #157): the Scene model for the redesigned UI profile.

Added

  • RootTemplate(Template: TemplateReference, Options), ProfileAppearance(ColorScheme?, Accent?), ProfileDefaults(NewScreenTemplate?) and the ColorScheme enum (Light, Dark, System), and the optional members UiProfile.Root, .Appearance, .Defaults - in C# (Cratis.Scene.Model) and mirrored in TypeScript (@cratis/scene.model). The root template reuses the existing TemplateReference (own or blueprint, id, blueprint, version pin).
  • UiProfileJson (C# Cratis.Scene.Engine.Profiles) and parseUiProfile/serializeUiProfile (TypeScript engine): lenient reading, one canonical writing, byte-identical in both languages.
  • Shared fixture corpus ui-profile-fixtures.json (own, blueprint + pin, options, legacy layout only, nothing new, appearance, defaults, everything, lenient enum case, non-ASCII, unknown members) run by both toolchains; scene-model-shape.json extended for the new types and enum.
  • Documentation: new blueprints/root-template.md, layouts.md links to it.

Changed

  • UiProfile.Layout is documented as legacy: it stays readable and writable, Root supersedes it. Existing documents without the new members load and write back unchanged.