fix(mm): add ui_type to model fields

Recently the schema for models was changed to a generic `ModelField`, and the UI was unable to derive the type of those fields. This didn't affect functionality, but it did break the styling of handles.

Add `ui_type` to the affected fields and update the UI to use the correct capitalizations.
This commit is contained in:
psychedelicious
2024-03-08 21:37:00 +11:00
committed by Mary Hipp Rogers
parent fe2c6f621a
commit ddde355b09
6 changed files with 25 additions and 16 deletions

View File

@ -35,10 +35,9 @@ export const MODEL_TYPES = [
'SDXLRefinerModelField',
'VaeModelField',
'UNetField',
'VaeField',
'ClipField',
'VAEField',
'CLIPField',
'T2IAdapterModelField',
'IPAdapterModelField',
];
/**
@ -47,7 +46,7 @@ export const MODEL_TYPES = [
export const FIELD_COLORS: { [key: string]: string } = {
BoardField: 'purple.500',
BooleanField: 'green.500',
ClipField: 'green.500',
CLIPField: 'green.500',
ColorField: 'pink.300',
ConditioningField: 'cyan.500',
ControlField: 'teal.500',
@ -67,6 +66,6 @@ export const FIELD_COLORS: { [key: string]: string } = {
T2IAdapterField: 'teal.500',
T2IAdapterModelField: 'teal.500',
UNetField: 'red.500',
VaeField: 'blue.500',
VaeModelField: 'teal.500',
VAEField: 'blue.500',
VAEModelField: 'teal.500',
};