feat(ui): refactor control adapters

Control adapters logic/state/ui is now generalized to hold controlnet, ip_adapter and t2i_adapter. In the future, other control adapter types can be added.

TODO:
- Limit IP adapter to 1
- Add T2I adapter to linear graphs
- Fix autoprocess
- T2I metadata saving & recall
- Improve on control adapters UI
This commit is contained in:
psychedelicious
2023-10-05 22:40:21 +11:00
parent 9c720da021
commit 9508e0c9db
70 changed files with 1860 additions and 1236 deletions

View File

@@ -1,6 +1,6 @@
import { Heading, Text } from '@chakra-ui/react';
import { useAppDispatch } from 'app/store/storeHooks';
import { controlNetReset } from 'features/controlNet/store/controlNetSlice';
import { controlAdaptersReset } from 'features/controlNet/store/controlAdaptersSlice';
import { useCallback, useEffect } from 'react';
import IAIButton from '../../../../common/components/IAIButton';
import {
@@ -24,7 +24,7 @@ export default function SettingsClearIntermediates() {
clearIntermediates()
.unwrap()
.then((response) => {
dispatch(controlNetReset());
dispatch(controlAdaptersReset());
dispatch(resetCanvas());
dispatch(
addToast({