feat(catalog): enhance featured groups with paginated and carousel layouts, update seeder and tests

This commit is contained in:
2026-07-23 13:24:39 -03:00
parent 1438ff66c7
commit e778d862ba
5 changed files with 157 additions and 39 deletions

View File

@@ -9,8 +9,8 @@ use Illuminate\Http\Resources\Json\JsonResource;
/** @mixin FeaturedGroup */
class CatalogFeaturedGroupResource extends JsonResource
{
/** @param array<string, mixed> $itemsPage */
public function __construct($resource, private readonly array $itemsPage)
/** @param array<array-key, mixed> $items */
public function __construct($resource, private readonly array $items)
{
parent::__construct($resource);
}
@@ -24,7 +24,7 @@ class CatalogFeaturedGroupResource extends JsonResource
'layout' => $this->product_layout->value,
'group_layout' => $this->group_layout->value,
'group_order' => $this->group_order,
'items' => $this->itemsPage,
'items' => $this->items,
];
}
}