Skip to content

Add schema YAML editor to CRUD UI#49

Merged
eviltester merged 1 commit into
masterfrom
codex/46-yaml-definition-editor
Jul 15, 2026
Merged

Add schema YAML editor to CRUD UI#49
eviltester merged 1 commit into
masterfrom
codex/46-yaml-definition-editor

Conversation

@eviltester

Copy link
Copy Markdown
Owner

Summary

Adds the Issue 46 schema YAML editing story to the standalone CRUD UI.

  • adds a separate /schema Schema Edit page beside the Workspace view
  • adds stateless schema preview endpoints for YAML-to-draft and draft validation
  • adds tree/detail schema editing for model metadata, entities, fields, validations, object fields, and relationships
  • adds canonical YAML, Mermaid, and Graphviz generation/export support
  • adds Mermaid ER rendering with hide/show, zoom, horizontal/vertical layout toggle, resize handle, and relationship key
  • adds schema dirty-state tracking and prompts before Workspace navigation, reset, refresh, or close
  • keeps schema preview isolated from the live workspace schema/data
  • adds a simple CRUD UI favicon

Closes #46

Validation

  • node --check thingifier-crud-ui\src\main\resources\public\assets\app.js
  • mvn -pl thingifier-crud-ui -am test
  • mvn -pl thingifier-crud-ui -DskipTests checkstyle:check@project-fqn-check
  • mvn -pl thingifier-crud-ui -am -DskipTests package

Copilot AI review requested due to automatic review settings July 15, 2026 14:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 41c72690c2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


function applySchemaPreview(preview) {
state.schemaPreview = preview;
state.schemaDraft = preview.draft || state.schemaDraft;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep form handlers attached to the active draft

When a draft preview returns while the user is still editing a schema field, this replaces state.schemaDraft with a new object graph without re-rendering the editor. The existing inputs' input handlers still mutate the old entity/field objects captured by the detail renderers, so any subsequent keystrokes in that same control are omitted from later preview/export requests and can be lost in the downloaded YAML. Either keep the client draft object as the source of truth or re-render/rebind the editor when swapping it.

Useful? React with 👍 / 👎.

@eviltester eviltester merged commit 253bd70 into master Jul 15, 2026
3 checks passed
@eviltester eviltester deleted the codex/46-yaml-definition-editor branch July 15, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CRUD UI app should support creating and editing the YAML definition

2 participants