InvokeAI/invokeai/frontend/web
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
..
.storybook chore(ui): lint 2024-04-19 09:32:56 -04:00
patches feat(ui): patch reselect to use lruMemoize only 2024-01-06 00:03:07 +11:00
public fix(ui): fix t2i adapter dimensions error message 2024-05-20 11:23:14 +10:00
scripts build(ui): add eslint no-console rule 2024-05-15 14:09:44 +10:00
src feat(ui): explicit field type cardinality 2024-05-20 11:28:33 +10:00
static/docs feat(ui): update assets 2024-01-12 08:02:59 +11:00
__init__.py Run python black 2023-07-28 09:46:44 -04:00
.eslintignore fix(ui): fix workflow editor model selector, excise ONNX 2024-01-03 13:18:50 +11:00
.eslintrc.js build(ui): add eslint no-console rule 2024-05-15 14:09:44 +10:00
.gitignore tests(ui): set up vitest coverage 2024-05-15 14:09:44 +10:00
.prettierignore fix(ui): fix workflow editor model selector, excise ONNX 2024-01-03 13:18:50 +11:00
.prettierrc.js chore(ui): use new prettier config 2024-01-28 19:57:53 +11:00
index.html Add ID to the HTML link element 2024-04-15 07:54:36 +10:00
knip.ts Scope project files to src dir (enables --production) 2024-04-15 09:14:49 +10:00
package.json tests(ui): set up vitest coverage 2024-05-15 14:09:44 +10:00
pnpm-lock.yaml tests(ui): set up vitest coverage 2024-05-15 14:09:44 +10:00
README.md docs: move frontend docs to mkdocs 2024-03-13 22:43:20 +11:00
tsconfig.json build(ui): enable TS strictPropertyInitialization 2024-05-15 14:09:44 +10:00
tsconfig.node.json fix(ui): fix package build 2024-03-01 10:42:33 +11:00
vite.config.mts tests(ui): set up vitest coverage 2024-05-15 14:09:44 +10:00