(ui): update query param to include_archived, fix cache when archiving boards

This commit is contained in:
Mary Hipp 2024-06-27 14:28:13 -04:00 committed by psychedelicious
parent dc90de600d
commit 740bf80f3e
3 changed files with 139 additions and 129 deletions

View File

@ -27,6 +27,6 @@ export const selectListImagesQueryArgs = createMemoizedSelector(
export const selectListBoardsQueryArgs = createMemoizedSelector(
selectGallerySlice,
(gallery): ListBoardsArgs => ({
archived: gallery.shouldShowArchivedBoards ? true : undefined,
include_archived: gallery.shouldShowArchivedBoards ? true : undefined,
})
);

View File

@ -102,7 +102,16 @@ export const boardsApi = api.injectEndpoints({
method: 'PATCH',
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
},
}),
}),
});

View File

@ -1056,8 +1056,9 @@ export type components = {
/**
* Archived
* @description Whether or not the board is archived.
* @default false
*/
archived?: boolean | null;
archived?: boolean;
/**
* Image Count
* @description The number of images in the board.
@ -7293,145 +7294,145 @@ export type components = {
project_id: string | null;
};
InvocationOutputMap: {
face_mask_detection: components["schemas"]["FaceMaskOutput"];
color_map_image_processor: components["schemas"]["ImageOutput"];
metadata: components["schemas"]["MetadataOutput"];
step_param_easing: 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"];
unsharp_mask: components["schemas"]["ImageOutput"];
tiled_multi_diffusion_denoise_latents: components["schemas"]["LatentsOutput"];
string_join: components["schemas"]["StringOutput"];
float_collection: components["schemas"]["FloatCollectionOutput"];
ip_adapter: components["schemas"]["IPAdapterOutput"];
midas_depth_image_processor: components["schemas"]["ImageOutput"];
integer_math: components["schemas"]["IntegerOutput"];
seamless: components["schemas"]["SeamlessModeOutput"];
img_watermark: components["schemas"]["ImageOutput"];
round_float: components["schemas"]["FloatOutput"];
sdxl_lora_loader: components["schemas"]["SDXLLoRALoaderOutput"];
merge_tiles_to_image: 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"];
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"];
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"];
cv_inpaint: components["schemas"]["ImageOutput"];
infill_patchmatch: components["schemas"]["ImageOutput"];
mask_from_id: components["schemas"]["ImageOutput"];
esrgan: components["schemas"]["ImageOutput"];
rectangle_mask: components["schemas"]["MaskOutput"];
freeu: components["schemas"]["UNetOutput"];
sdxl_compel_prompt: components["schemas"]["ConditioningOutput"];
model_identifier: components["schemas"]["ModelIdentifierOutput"];
mediapipe_face_processor: components["schemas"]["ImageOutput"];
iterate: components["schemas"]["IterateInvocationOutput"];
color_correct: components["schemas"]["ImageOutput"];
img_conv: components["schemas"]["ImageOutput"];
lblend: components["schemas"]["LatentsOutput"];
img_mul: components["schemas"]["ImageOutput"];
float_collection: components["schemas"]["FloatCollectionOutput"];
add: components["schemas"]["IntegerOutput"];
mask_combine: components["schemas"]["ImageOutput"];
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"];
img_crop: components["schemas"]["ImageOutput"];
string_split_neg: components["schemas"]["StringPosNegOutput"];
dw_openpose_image_processor: components["schemas"]["ImageOutput"];
integer_math: 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"];
range: components["schemas"]["IntegerCollectionOutput"];
img_blur: components["schemas"]["ImageOutput"];
boolean: components["schemas"]["BooleanOutput"];
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"];
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"];
lineart_anime_image_processor: components["schemas"]["ImageOutput"];
float_to_int: components["schemas"]["IntegerOutput"];
infill_lama: components["schemas"]["ImageOutput"];
string_split_neg: components["schemas"]["StringPosNegOutput"];
esrgan: components["schemas"]["ImageOutput"];
blank_image: components["schemas"]["ImageOutput"];
lresize: components["schemas"]["LatentsOutput"];
normalbae_image_processor: components["schemas"]["ImageOutput"];
float_math: components["schemas"]["FloatOutput"];
sub: components["schemas"]["IntegerOutput"];
lora_collection_loader: components["schemas"]["LoRALoaderOutput"];
string_collection: components["schemas"]["StringCollectionOutput"];
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"];
infill_tile: components["schemas"]["ImageOutput"];
tile_to_properties: components["schemas"]["TileToPropertiesOutput"];
float_range: components["schemas"]["FloatCollectionOutput"];
content_shuffle_image_processor: components["schemas"]["ImageOutput"];
alpha_mask_to_tensor: components["schemas"]["MaskOutput"];
clip_skip: components["schemas"]["CLIPSkipInvocationOutput"];
prompt_from_file: components["schemas"]["StringCollectionOutput"];
invert_tensor_mask: components["schemas"]["MaskOutput"];
merge_metadata: components["schemas"]["MetadataOutput"];
img_channel_offset: components["schemas"]["ImageOutput"];
calculate_image_tiles_even_split: components["schemas"]["CalculateImageTilesOutput"];
show_image: components["schemas"]["ImageOutput"];
ideal_size: components["schemas"]["IdealSizeOutput"];
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"];
pair_tile_image: components["schemas"]["PairTileImageOutput"];
img_blur: components["schemas"]["ImageOutput"];
face_off: components["schemas"]["FaceOffOutput"];
pidi_image_processor: components["schemas"]["ImageOutput"];
image_mask_to_tensor: components["schemas"]["MaskOutput"];
infill_cv2: components["schemas"]["ImageOutput"];
invert_tensor_mask: components["schemas"]["MaskOutput"];
collect: components["schemas"]["CollectInvocationOutput"];
boolean_collection: components["schemas"]["BooleanCollectionOutput"];
tile_image_processor: 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"];
heuristic_resize: components["schemas"]["ImageOutput"];
t2i_adapter: components["schemas"]["T2IAdapterOutput"];
img_channel_multiply: components["schemas"]["ImageOutput"];
img_lerp: components["schemas"]["ImageOutput"];
tomask: components["schemas"]["ImageOutput"];
color: components["schemas"]["ColorOutput"];
depth_anything_image_processor: components["schemas"]["ImageOutput"];
vae_loader: components["schemas"]["VAEOutput"];
lora_loader: components["schemas"]["LoRALoaderOutput"];
sdxl_compel_prompt: components["schemas"]["ConditioningOutput"];
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
@ -14981,7 +14982,7 @@ export type operations = {
/** @description The number of boards per page */
limit?: number | null;
/** @description Whether or not to include archived boards in list */
archived?: boolean;
include_archived?: boolean;
};
};
responses: {