InvokeAI/invokeai/frontend
psychedelicious dba8c43ecb feat(ui): explicit field type cardinality
Replace the `isCollection` and `isCollectionOrScalar` flags with a single enum value `cardinality`. Valid values are `SINGLE`, `COLLECTION` and `SINGLE_OR_COLLECTION`.

Why:
- The two flags were mutually exclusive, but this wasn't enforce. You could create a field type that had both `isCollection` and `isCollectionOrScalar` set to true, whuch makes no sense.
- There was no explicit declaration for scalar/single types.
- Checking if a type had only a single flag was tedious.

Thanks to a change a couple months back in which the workflows schema was revised, field types are internal implementation details. Changes to them are non-breaking.
2024-05-20 11:28:33 +10:00
..
cli feat(config): add CLI arg to specify config file 2024-03-20 15:05:25 +11:00
install feat(installer): remove updater 2024-03-26 14:48:29 +11:00
web feat(ui): explicit field type cardinality 2024-05-20 11:28:33 +10:00
__init__.py Run python black 2023-07-28 09:46:44 -04:00