mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
(ui): update query param to include_archived, fix cache when archiving boards
This commit is contained in:
parent
dc90de600d
commit
740bf80f3e
@ -27,6 +27,6 @@ export const selectListImagesQueryArgs = createMemoizedSelector(
|
|||||||
export const selectListBoardsQueryArgs = createMemoizedSelector(
|
export const selectListBoardsQueryArgs = createMemoizedSelector(
|
||||||
selectGallerySlice,
|
selectGallerySlice,
|
||||||
(gallery): ListBoardsArgs => ({
|
(gallery): ListBoardsArgs => ({
|
||||||
archived: gallery.shouldShowArchivedBoards ? true : undefined,
|
include_archived: gallery.shouldShowArchivedBoards ? true : undefined,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@ -102,7 +102,16 @@ export const boardsApi = api.injectEndpoints({
|
|||||||
method: 'PATCH',
|
method: 'PATCH',
|
||||||
body: changes,
|
body: changes,
|
||||||
}),
|
}),
|
||||||
invalidatesTags: (result, error, arg) => [{ type: 'Board', id: arg.board_id }],
|
invalidatesTags: (result, error, arg) => {
|
||||||
|
const tags: ApiTagDescription[] = []
|
||||||
|
if (Object.keys(arg.changes).includes("archived")) {
|
||||||
|
tags.push({ type: 'Board', id: LIST_TAG })
|
||||||
|
}
|
||||||
|
|
||||||
|
tags.push({ type: 'Board', id: arg.board_id })
|
||||||
|
|
||||||
|
return tags
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
@ -1056,8 +1056,9 @@ export type components = {
|
|||||||
/**
|
/**
|
||||||
* Archived
|
* Archived
|
||||||
* @description Whether or not the board is archived.
|
* @description Whether or not the board is archived.
|
||||||
|
* @default false
|
||||||
*/
|
*/
|
||||||
archived?: boolean | null;
|
archived?: boolean;
|
||||||
/**
|
/**
|
||||||
* Image Count
|
* Image Count
|
||||||
* @description The number of images in the board.
|
* @description The number of images in the board.
|
||||||
@ -7293,145 +7294,145 @@ export type components = {
|
|||||||
project_id: string | null;
|
project_id: string | null;
|
||||||
};
|
};
|
||||||
InvocationOutputMap: {
|
InvocationOutputMap: {
|
||||||
face_mask_detection: components["schemas"]["FaceMaskOutput"];
|
unsharp_mask: components["schemas"]["ImageOutput"];
|
||||||
color_map_image_processor: components["schemas"]["ImageOutput"];
|
tiled_multi_diffusion_denoise_latents: components["schemas"]["LatentsOutput"];
|
||||||
metadata: components["schemas"]["MetadataOutput"];
|
string_join: components["schemas"]["StringOutput"];
|
||||||
step_param_easing: components["schemas"]["FloatCollectionOutput"];
|
float_collection: components["schemas"]["FloatCollectionOutput"];
|
||||||
round_float: components["schemas"]["FloatOutput"];
|
|
||||||
infill_rgba: components["schemas"]["ImageOutput"];
|
|
||||||
img_hue_adjust: components["schemas"]["ImageOutput"];
|
|
||||||
img_conv: components["schemas"]["ImageOutput"];
|
|
||||||
random_range: components["schemas"]["IntegerCollectionOutput"];
|
|
||||||
string_join_three: components["schemas"]["StringOutput"];
|
|
||||||
img_crop: components["schemas"]["ImageOutput"];
|
|
||||||
create_gradient_mask: components["schemas"]["GradientMaskOutput"];
|
|
||||||
face_off: components["schemas"]["FaceOffOutput"];
|
|
||||||
lresize: components["schemas"]["LatentsOutput"];
|
|
||||||
mlsd_image_processor: components["schemas"]["ImageOutput"];
|
|
||||||
img_chan: components["schemas"]["ImageOutput"];
|
|
||||||
calculate_image_tiles_min_overlap: components["schemas"]["CalculateImageTilesOutput"];
|
|
||||||
blank_image: components["schemas"]["ImageOutput"];
|
|
||||||
t2i_adapter: components["schemas"]["T2IAdapterOutput"];
|
|
||||||
integer_collection: components["schemas"]["IntegerCollectionOutput"];
|
|
||||||
lscale: components["schemas"]["LatentsOutput"];
|
|
||||||
mediapipe_face_processor: components["schemas"]["ImageOutput"];
|
|
||||||
mul: components["schemas"]["IntegerOutput"];
|
|
||||||
l2i: components["schemas"]["ImageOutput"];
|
|
||||||
conditioning_collection: components["schemas"]["ConditioningCollectionOutput"];
|
|
||||||
lineart_anime_image_processor: components["schemas"]["ImageOutput"];
|
|
||||||
vae_loader: components["schemas"]["VAEOutput"];
|
|
||||||
sdxl_model_loader: components["schemas"]["SDXLModelLoaderOutput"];
|
|
||||||
image: components["schemas"]["ImageOutput"];
|
|
||||||
boolean: components["schemas"]["BooleanOutput"];
|
|
||||||
infill_tile: components["schemas"]["ImageOutput"];
|
|
||||||
collect: components["schemas"]["CollectInvocationOutput"];
|
|
||||||
range_of_size: components["schemas"]["IntegerCollectionOutput"];
|
|
||||||
tile_to_properties: components["schemas"]["TileToPropertiesOutput"];
|
|
||||||
string: components["schemas"]["StringOutput"];
|
|
||||||
dw_openpose_image_processor: components["schemas"]["ImageOutput"];
|
|
||||||
hed_image_processor: components["schemas"]["ImageOutput"];
|
|
||||||
img_ilerp: components["schemas"]["ImageOutput"];
|
|
||||||
sdxl_refiner_model_loader: components["schemas"]["SDXLRefinerModelLoaderOutput"];
|
|
||||||
ip_adapter: components["schemas"]["IPAdapterOutput"];
|
ip_adapter: components["schemas"]["IPAdapterOutput"];
|
||||||
midas_depth_image_processor: components["schemas"]["ImageOutput"];
|
round_float: components["schemas"]["FloatOutput"];
|
||||||
integer_math: components["schemas"]["IntegerOutput"];
|
sdxl_lora_loader: components["schemas"]["SDXLLoRALoaderOutput"];
|
||||||
seamless: components["schemas"]["SeamlessModeOutput"];
|
merge_tiles_to_image: components["schemas"]["ImageOutput"];
|
||||||
img_watermark: components["schemas"]["ImageOutput"];
|
random_range: components["schemas"]["IntegerCollectionOutput"];
|
||||||
|
sdxl_refiner_model_loader: components["schemas"]["SDXLRefinerModelLoaderOutput"];
|
||||||
|
face_mask_detection: components["schemas"]["FaceMaskOutput"];
|
||||||
|
integer_collection: components["schemas"]["IntegerCollectionOutput"];
|
||||||
|
lineart_image_processor: components["schemas"]["ImageOutput"];
|
||||||
|
save_image: components["schemas"]["ImageOutput"];
|
||||||
|
range: components["schemas"]["IntegerCollectionOutput"];
|
||||||
|
image: components["schemas"]["ImageOutput"];
|
||||||
|
denoise_latents: components["schemas"]["LatentsOutput"];
|
||||||
|
integer: components["schemas"]["IntegerOutput"];
|
||||||
|
crop_latents: components["schemas"]["LatentsOutput"];
|
||||||
|
step_param_easing: components["schemas"]["FloatCollectionOutput"];
|
||||||
|
segment_anything_processor: components["schemas"]["ImageOutput"];
|
||||||
|
add: components["schemas"]["IntegerOutput"];
|
||||||
lora_selector: components["schemas"]["LoRASelectorOutput"];
|
lora_selector: components["schemas"]["LoRASelectorOutput"];
|
||||||
pair_tile_image: components["schemas"]["PairTileImageOutput"];
|
img_scale: components["schemas"]["ImageOutput"];
|
||||||
|
noise: components["schemas"]["NoiseOutput"];
|
||||||
|
mul: components["schemas"]["IntegerOutput"];
|
||||||
|
infill_rgba: components["schemas"]["ImageOutput"];
|
||||||
|
calculate_image_tiles_even_split: components["schemas"]["CalculateImageTilesOutput"];
|
||||||
|
img_resize: components["schemas"]["ImageOutput"];
|
||||||
|
hed_image_processor: components["schemas"]["ImageOutput"];
|
||||||
|
freeu: components["schemas"]["UNetOutput"];
|
||||||
|
face_identifier: components["schemas"]["ImageOutput"];
|
||||||
dynamic_prompt: components["schemas"]["StringCollectionOutput"];
|
dynamic_prompt: components["schemas"]["StringCollectionOutput"];
|
||||||
|
color: components["schemas"]["ColorOutput"];
|
||||||
|
color_map_image_processor: components["schemas"]["ImageOutput"];
|
||||||
|
midas_depth_image_processor: components["schemas"]["ImageOutput"];
|
||||||
|
l2i: components["schemas"]["ImageOutput"];
|
||||||
|
mask_combine: components["schemas"]["ImageOutput"];
|
||||||
|
sdxl_refiner_compel_prompt: components["schemas"]["ConditioningOutput"];
|
||||||
|
tomask: components["schemas"]["ImageOutput"];
|
||||||
|
string: components["schemas"]["StringOutput"];
|
||||||
|
create_gradient_mask: components["schemas"]["GradientMaskOutput"];
|
||||||
|
core_metadata: components["schemas"]["MetadataOutput"];
|
||||||
|
seamless: components["schemas"]["SeamlessModeOutput"];
|
||||||
|
main_model_loader: components["schemas"]["ModelLoaderOutput"];
|
||||||
|
sdxl_model_loader: components["schemas"]["SDXLModelLoaderOutput"];
|
||||||
i2l: components["schemas"]["LatentsOutput"];
|
i2l: components["schemas"]["LatentsOutput"];
|
||||||
cv_inpaint: components["schemas"]["ImageOutput"];
|
cv_inpaint: components["schemas"]["ImageOutput"];
|
||||||
infill_patchmatch: components["schemas"]["ImageOutput"];
|
mediapipe_face_processor: components["schemas"]["ImageOutput"];
|
||||||
mask_from_id: components["schemas"]["ImageOutput"];
|
iterate: components["schemas"]["IterateInvocationOutput"];
|
||||||
esrgan: components["schemas"]["ImageOutput"];
|
color_correct: components["schemas"]["ImageOutput"];
|
||||||
rectangle_mask: components["schemas"]["MaskOutput"];
|
img_conv: components["schemas"]["ImageOutput"];
|
||||||
freeu: components["schemas"]["UNetOutput"];
|
|
||||||
sdxl_compel_prompt: components["schemas"]["ConditioningOutput"];
|
|
||||||
model_identifier: components["schemas"]["ModelIdentifierOutput"];
|
|
||||||
lblend: components["schemas"]["LatentsOutput"];
|
lblend: components["schemas"]["LatentsOutput"];
|
||||||
img_mul: components["schemas"]["ImageOutput"];
|
img_crop: components["schemas"]["ImageOutput"];
|
||||||
float_collection: components["schemas"]["FloatCollectionOutput"];
|
string_split_neg: components["schemas"]["StringPosNegOutput"];
|
||||||
add: components["schemas"]["IntegerOutput"];
|
dw_openpose_image_processor: components["schemas"]["ImageOutput"];
|
||||||
mask_combine: components["schemas"]["ImageOutput"];
|
integer_math: components["schemas"]["IntegerOutput"];
|
||||||
unsharp_mask: components["schemas"]["ImageOutput"];
|
|
||||||
img_pad_crop: components["schemas"]["ImageOutput"];
|
|
||||||
tile_image_processor: components["schemas"]["ImageOutput"];
|
|
||||||
float_range: components["schemas"]["FloatCollectionOutput"];
|
|
||||||
merge_metadata: components["schemas"]["MetadataOutput"];
|
|
||||||
controlnet: components["schemas"]["ControlOutput"];
|
|
||||||
div: components["schemas"]["IntegerOutput"];
|
div: components["schemas"]["IntegerOutput"];
|
||||||
|
img_watermark: components["schemas"]["ImageOutput"];
|
||||||
|
img_lerp: components["schemas"]["ImageOutput"];
|
||||||
|
calculate_image_tiles: components["schemas"]["CalculateImageTilesOutput"];
|
||||||
|
latents: components["schemas"]["LatentsOutput"];
|
||||||
|
string_collection: components["schemas"]["StringCollectionOutput"];
|
||||||
|
lscale: components["schemas"]["LatentsOutput"];
|
||||||
|
mlsd_image_processor: components["schemas"]["ImageOutput"];
|
||||||
|
metadata_item: components["schemas"]["MetadataItemOutput"];
|
||||||
|
image_mask_to_tensor: components["schemas"]["MaskOutput"];
|
||||||
|
infill_patchmatch: components["schemas"]["ImageOutput"];
|
||||||
img_nsfw: components["schemas"]["ImageOutput"];
|
img_nsfw: components["schemas"]["ImageOutput"];
|
||||||
range: components["schemas"]["IntegerCollectionOutput"];
|
boolean: components["schemas"]["BooleanOutput"];
|
||||||
img_blur: components["schemas"]["ImageOutput"];
|
mask_edge: components["schemas"]["ImageOutput"];
|
||||||
|
clip_skip: components["schemas"]["CLIPSkipInvocationOutput"];
|
||||||
|
img_chan: components["schemas"]["ImageOutput"];
|
||||||
|
conditioning: components["schemas"]["ConditioningOutput"];
|
||||||
|
img_pad_crop: components["schemas"]["ImageOutput"];
|
||||||
|
rectangle_mask: components["schemas"]["MaskOutput"];
|
||||||
|
sdxl_lora_collection_loader: components["schemas"]["SDXLLoRALoaderOutput"];
|
||||||
|
img_ilerp: components["schemas"]["ImageOutput"];
|
||||||
|
string_split: components["schemas"]["String2Output"];
|
||||||
|
show_image: components["schemas"]["ImageOutput"];
|
||||||
|
metadata: components["schemas"]["MetadataOutput"];
|
||||||
|
sub: components["schemas"]["IntegerOutput"];
|
||||||
|
mask_from_id: components["schemas"]["ImageOutput"];
|
||||||
string_replace: components["schemas"]["StringOutput"];
|
string_replace: components["schemas"]["StringOutput"];
|
||||||
image_collection: components["schemas"]["ImageCollectionOutput"];
|
image_collection: components["schemas"]["ImageCollectionOutput"];
|
||||||
denoise_latents: components["schemas"]["LatentsOutput"];
|
rand_float: components["schemas"]["FloatOutput"];
|
||||||
|
controlnet: components["schemas"]["ControlOutput"];
|
||||||
|
prompt_from_file: components["schemas"]["StringCollectionOutput"];
|
||||||
|
rand_int: components["schemas"]["IntegerOutput"];
|
||||||
|
range_of_size: components["schemas"]["IntegerCollectionOutput"];
|
||||||
|
scheduler: components["schemas"]["SchedulerOutput"];
|
||||||
|
depth_anything_image_processor: components["schemas"]["ImageOutput"];
|
||||||
|
canny_image_processor: components["schemas"]["ImageOutput"];
|
||||||
|
compel: components["schemas"]["ConditioningOutput"];
|
||||||
|
float: components["schemas"]["FloatOutput"];
|
||||||
leres_image_processor: components["schemas"]["ImageOutput"];
|
leres_image_processor: components["schemas"]["ImageOutput"];
|
||||||
|
lineart_anime_image_processor: components["schemas"]["ImageOutput"];
|
||||||
float_to_int: components["schemas"]["IntegerOutput"];
|
float_to_int: components["schemas"]["IntegerOutput"];
|
||||||
infill_lama: components["schemas"]["ImageOutput"];
|
esrgan: components["schemas"]["ImageOutput"];
|
||||||
string_split_neg: components["schemas"]["StringPosNegOutput"];
|
blank_image: components["schemas"]["ImageOutput"];
|
||||||
|
lresize: components["schemas"]["LatentsOutput"];
|
||||||
normalbae_image_processor: components["schemas"]["ImageOutput"];
|
normalbae_image_processor: components["schemas"]["ImageOutput"];
|
||||||
float_math: components["schemas"]["FloatOutput"];
|
float_math: components["schemas"]["FloatOutput"];
|
||||||
sub: components["schemas"]["IntegerOutput"];
|
infill_tile: components["schemas"]["ImageOutput"];
|
||||||
lora_collection_loader: components["schemas"]["LoRALoaderOutput"];
|
tile_to_properties: components["schemas"]["TileToPropertiesOutput"];
|
||||||
string_collection: components["schemas"]["StringCollectionOutput"];
|
float_range: components["schemas"]["FloatCollectionOutput"];
|
||||||
scheduler: components["schemas"]["SchedulerOutput"];
|
|
||||||
sdxl_lora_loader: components["schemas"]["SDXLLoRALoaderOutput"];
|
|
||||||
sdxl_refiner_compel_prompt: components["schemas"]["ConditioningOutput"];
|
|
||||||
img_resize: components["schemas"]["ImageOutput"];
|
|
||||||
zoe_depth_image_processor: components["schemas"]["ImageOutput"];
|
|
||||||
compel: components["schemas"]["ConditioningOutput"];
|
|
||||||
boolean_collection: components["schemas"]["BooleanCollectionOutput"];
|
|
||||||
lora_loader: components["schemas"]["LoRALoaderOutput"];
|
|
||||||
merge_tiles_to_image: components["schemas"]["ImageOutput"];
|
|
||||||
img_paste: components["schemas"]["ImageOutput"];
|
|
||||||
integer: components["schemas"]["IntegerOutput"];
|
|
||||||
content_shuffle_image_processor: components["schemas"]["ImageOutput"];
|
content_shuffle_image_processor: components["schemas"]["ImageOutput"];
|
||||||
alpha_mask_to_tensor: components["schemas"]["MaskOutput"];
|
merge_metadata: components["schemas"]["MetadataOutput"];
|
||||||
clip_skip: components["schemas"]["CLIPSkipInvocationOutput"];
|
|
||||||
prompt_from_file: components["schemas"]["StringCollectionOutput"];
|
|
||||||
invert_tensor_mask: components["schemas"]["MaskOutput"];
|
|
||||||
img_channel_offset: components["schemas"]["ImageOutput"];
|
img_channel_offset: components["schemas"]["ImageOutput"];
|
||||||
calculate_image_tiles_even_split: components["schemas"]["CalculateImageTilesOutput"];
|
pair_tile_image: components["schemas"]["PairTileImageOutput"];
|
||||||
show_image: components["schemas"]["ImageOutput"];
|
img_blur: components["schemas"]["ImageOutput"];
|
||||||
ideal_size: components["schemas"]["IdealSizeOutput"];
|
face_off: components["schemas"]["FaceOffOutput"];
|
||||||
noise: components["schemas"]["NoiseOutput"];
|
|
||||||
tiled_multi_diffusion_denoise_latents: components["schemas"]["LatentsOutput"];
|
|
||||||
latents: components["schemas"]["LatentsOutput"];
|
|
||||||
segment_anything_processor: components["schemas"]["ImageOutput"];
|
|
||||||
core_metadata: components["schemas"]["MetadataOutput"];
|
|
||||||
canny_image_processor: components["schemas"]["ImageOutput"];
|
|
||||||
rand_int: components["schemas"]["IntegerOutput"];
|
|
||||||
img_scale: components["schemas"]["ImageOutput"];
|
|
||||||
conditioning: components["schemas"]["ConditioningOutput"];
|
|
||||||
float: components["schemas"]["FloatOutput"];
|
|
||||||
lineart_image_processor: components["schemas"]["ImageOutput"];
|
|
||||||
color_correct: components["schemas"]["ImageOutput"];
|
|
||||||
iterate: components["schemas"]["IterateInvocationOutput"];
|
|
||||||
string_split: components["schemas"]["String2Output"];
|
|
||||||
face_identifier: components["schemas"]["ImageOutput"];
|
|
||||||
crop_latents: components["schemas"]["LatentsOutput"];
|
|
||||||
save_image: components["schemas"]["ImageOutput"];
|
|
||||||
create_denoise_mask: components["schemas"]["DenoiseMaskOutput"];
|
|
||||||
pidi_image_processor: components["schemas"]["ImageOutput"];
|
pidi_image_processor: components["schemas"]["ImageOutput"];
|
||||||
image_mask_to_tensor: components["schemas"]["MaskOutput"];
|
invert_tensor_mask: components["schemas"]["MaskOutput"];
|
||||||
infill_cv2: components["schemas"]["ImageOutput"];
|
collect: components["schemas"]["CollectInvocationOutput"];
|
||||||
|
boolean_collection: components["schemas"]["BooleanCollectionOutput"];
|
||||||
|
tile_image_processor: components["schemas"]["ImageOutput"];
|
||||||
canvas_paste_back: components["schemas"]["ImageOutput"];
|
canvas_paste_back: components["schemas"]["ImageOutput"];
|
||||||
metadata_item: components["schemas"]["MetadataItemOutput"];
|
|
||||||
rand_float: components["schemas"]["FloatOutput"];
|
|
||||||
sdxl_lora_collection_loader: components["schemas"]["SDXLLoRALoaderOutput"];
|
|
||||||
mask_edge: components["schemas"]["ImageOutput"];
|
|
||||||
main_model_loader: components["schemas"]["ModelLoaderOutput"];
|
|
||||||
calculate_image_tiles: components["schemas"]["CalculateImageTilesOutput"];
|
|
||||||
string_join: components["schemas"]["StringOutput"];
|
|
||||||
latents_collection: components["schemas"]["LatentsCollectionOutput"];
|
latents_collection: components["schemas"]["LatentsCollectionOutput"];
|
||||||
heuristic_resize: components["schemas"]["ImageOutput"];
|
t2i_adapter: components["schemas"]["T2IAdapterOutput"];
|
||||||
img_channel_multiply: components["schemas"]["ImageOutput"];
|
img_channel_multiply: components["schemas"]["ImageOutput"];
|
||||||
img_lerp: components["schemas"]["ImageOutput"];
|
vae_loader: components["schemas"]["VAEOutput"];
|
||||||
tomask: components["schemas"]["ImageOutput"];
|
lora_loader: components["schemas"]["LoRALoaderOutput"];
|
||||||
color: components["schemas"]["ColorOutput"];
|
sdxl_compel_prompt: components["schemas"]["ConditioningOutput"];
|
||||||
depth_anything_image_processor: components["schemas"]["ImageOutput"];
|
conditioning_collection: components["schemas"]["ConditioningCollectionOutput"];
|
||||||
|
img_mul: components["schemas"]["ImageOutput"];
|
||||||
|
alpha_mask_to_tensor: components["schemas"]["MaskOutput"];
|
||||||
|
infill_lama: components["schemas"]["ImageOutput"];
|
||||||
|
img_hue_adjust: components["schemas"]["ImageOutput"];
|
||||||
|
lora_collection_loader: components["schemas"]["LoRALoaderOutput"];
|
||||||
|
img_paste: components["schemas"]["ImageOutput"];
|
||||||
|
ideal_size: components["schemas"]["IdealSizeOutput"];
|
||||||
|
create_denoise_mask: components["schemas"]["DenoiseMaskOutput"];
|
||||||
|
infill_cv2: components["schemas"]["ImageOutput"];
|
||||||
|
model_identifier: components["schemas"]["ModelIdentifierOutput"];
|
||||||
|
calculate_image_tiles_min_overlap: components["schemas"]["CalculateImageTilesOutput"];
|
||||||
|
string_join_three: components["schemas"]["StringOutput"];
|
||||||
|
heuristic_resize: components["schemas"]["ImageOutput"];
|
||||||
|
zoe_depth_image_processor: components["schemas"]["ImageOutput"];
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* InvocationStartedEvent
|
* InvocationStartedEvent
|
||||||
@ -14981,7 +14982,7 @@ export type operations = {
|
|||||||
/** @description The number of boards per page */
|
/** @description The number of boards per page */
|
||||||
limit?: number | null;
|
limit?: number | null;
|
||||||
/** @description Whether or not to include archived boards in list */
|
/** @description Whether or not to include archived boards in list */
|
||||||
archived?: boolean;
|
include_archived?: boolean;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
responses: {
|
responses: {
|
||||||
|
Loading…
Reference in New Issue
Block a user