Add public work read model and smooth puzzle transitions

This commit is contained in:
kdletters
2026-05-26 16:38:27 +08:00
parent 545f315cbc
commit aeee782fe0
47 changed files with 2679 additions and 79 deletions

View File

@@ -702,7 +702,7 @@ pub async fn list_custom_world_gallery(
) -> Result<Json<Value>, Response> {
let entries = state
.spacetime_client()
.list_custom_world_gallery_entries()
.list_public_work_gallery_entries()
.await
.map_err(|error| {
custom_world_error_response(&request_context, map_custom_world_client_error(error))
@@ -713,7 +713,8 @@ pub async fn list_custom_world_gallery(
CustomWorldGalleryResponse {
entries: entries
.into_iter()
.map(|entry| map_custom_world_gallery_card_response(&state, entry))
.filter(|entry| entry.source_type == "custom-world")
.map(|entry| map_public_work_custom_world_gallery_card_response(&state, entry))
.collect(),
},
))