Add explicit Save button to the schema JSON editor
The JSON view no longer parses/saves on every keystroke — you type freely and click "Save JSON" to apply. Invalid JSON (or a non-object) shows the parse error inline instead of auto-rejecting; valid JSON is pretty-printed, applied to the form/preview, and saved. The form editor still auto-saves. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
67fbe17cee
commit
80fb5b0c89
@@ -660,6 +660,13 @@ button:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: n
|
||||
color: var(--danger, #e5484d);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
.schema-json-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.schema-json-actions .schema-error { margin-top: 0; }
|
||||
.schema-preview {
|
||||
margin-top: 14px;
|
||||
padding: 14px 16px;
|
||||
|
||||
Reference in New Issue
Block a user