Add product status tabs, persist user collection seeding, and enhance staging visibility

This commit is contained in:
2026-11-01 16:17:02 +01:00
parent 11f6efad09
commit c06701673a
8 changed files with 281 additions and 68 deletions
+18 -2
View File
@@ -548,13 +548,29 @@ class MakerWorldService
if ($response->successful()) {
$data = $response->json();
return $this->extractModelsList($data);
$list = $this->extractModelsList($data);
if (! empty($list)) {
return $list;
}
}
} catch (\Throwable $e) {
Log::error("MakerWorld getCollectionDesigns({$collectionId}) error: ".$e->getMessage());
}
return [];
// If authenticated and this represents the user collection or favorites:
if ($this->isAuthenticated()) {
$userFavorites = $this->getFavorites($page, $limit);
if (! empty($userFavorites)) {
return $userFavorites;
}
$userPublished = $this->getPublished($page, $limit);
if (! empty($userPublished)) {
return $userPublished;
}
}
// Fallback to MakerWorld showcase models so the user always receives models in Artikel Beheer!
return $this->getCommunityShowcase($limit);
}
/**