From 704e016f058e3e1108e8e269e246c75c777864d1 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:33:57 +1000 Subject: [PATCH 1/3] feat(ui): disable immutable redux check The immutable and serializable checks for redux can cause substantial performance issues. The immutable check in particular is pretty heavy. It's only run in dev mode, but this and really slow down the already-slower performance of dev mode. The most important one for us is serializable, which has far less of a performance impact. The immutable check is largely redundant because we use immer-backed RTK for everything and immer gives us confidence there. Disable the immutable check, leaving serializable in. --- invokeai/frontend/web/src/app/store/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/app/store/store.ts b/invokeai/frontend/web/src/app/store/store.ts index 29caa69cbe..f84f3dd9c7 100644 --- a/invokeai/frontend/web/src/app/store/store.ts +++ b/invokeai/frontend/web/src/app/store/store.ts @@ -86,7 +86,7 @@ export const store = configureStore({ .concat(autoBatchEnhancer()); }, middleware: (getDefaultMiddleware) => - getDefaultMiddleware() + getDefaultMiddleware({ immutableCheck: false }) .concat(api.middleware) .concat(dynamicMiddlewares) .prepend(listenerMiddleware.middleware), From 5a42774fbe098b1efdac79654c02b0826644f023 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 15 Sep 2023 12:04:38 +1000 Subject: [PATCH 2/3] Update FEATURE_REQUEST.yml Added some verbiage about making feature requests singular and focused. Updated the placeholder to something more Invoke-y. --- .github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml index c7e7f4bc87..6d43d447f4 100644 --- a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml +++ b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml @@ -34,12 +34,9 @@ body: id: whatisexpected attributes: label: What should this feature add? - description: Please try to explain the functionality this feature should add + description: Explain the functionality this feature should add. Feature requests should be for single features. Please create multiple requests if you want to request multiple features. placeholder: | - Instead of one huge text field, it would be nice to have forms for bug-reports, feature-requests, ... - Great benefits with automatic labeling, assigning and other functionalitys not available in that form - via old-fashioned markdown-templates. I would also love to see the use of a moderator bot 🤖 like - https://github.com/marketplace/actions/issue-moderator-with-commands to auto close old issues and other things + I'd like a button that creates an image of banana sushi every time I press it. Each image should be different. There should be a toggle next to the button that enables strawberry mode, in which the images are of strawberry sushi instead. validations: required: true From 604fc006b15d9c3f3e5cedbc232e2b4907147f48 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 15 Sep 2023 12:24:53 +1000 Subject: [PATCH 3/3] fix(ui): construct openapi url from window.location.origin --- invokeai/frontend/web/src/services/api/thunks/schema.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/services/api/thunks/schema.ts b/invokeai/frontend/web/src/services/api/thunks/schema.ts index 7dc0bdc331..c209469e02 100644 --- a/invokeai/frontend/web/src/services/api/thunks/schema.ts +++ b/invokeai/frontend/web/src/services/api/thunks/schema.ts @@ -26,7 +26,8 @@ export const receivedOpenAPISchema = createAsyncThunk( 'nodes/receivedOpenAPISchema', async (_, { rejectWithValue }) => { try { - const response = await fetch(`openapi.json`); + const url = [window.location.origin, 'openapi.json'].join('/'); + const response = await fetch(url); const openAPISchema = await response.json(); const schemaJSON = JSON.parse(