-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[editor] JSON Renderer for Model Settings #757
Conversation
{schema && ( | ||
<Flex justify="flex-end"> | ||
<Tooltip label="Toggle JSON editor" withArrow> | ||
<ActionIcon onClick={() => setIsRawJSON((curr) => !curr)}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toggle boi!
onChange={(val) => | ||
onUpdateModelSettings(val as Record<string, unknown>) | ||
} | ||
// schema={schema} TODO: Add schema after fixing z-index issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's z-index issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I think this looks good
) # [editor][easy] Remove Unused ModelSettingsConfigRenderer Component Component unused (as of #757) and can be removed. ## Testing: - loaded the editor settings without issue
[editor] JSON Renderer for Model Settings
Set up the JSON Editor for model settings, allowing toggling between the schema-backed UI if the schema is available or defaulting to the JSON editor if no schema is available.
No Schema, JSONEditor Only:
With Schema, Toggle Between:
Screen.Recording.2024-01-04.at.4.50.30.PM.mov