feat(variant): refactor selection values to expose options with labels; update related resources and tests for consistency

This commit is contained in:
2026-08-10 12:27:00 -03:00
parent c6351d706f
commit e7c8807a67
11 changed files with 113 additions and 43 deletions

View File

@@ -42,7 +42,7 @@ class CatalogSearchItemResource extends JsonResource
'stock_tecnico' => $this->inventory_policy === InventoryPolicy::Unlimited
? null
: $variant->inventory?->availableStock(),
'values' => $variant->selectionValues(),
'values' => $variant->selectionOptions(),
])
->values(),
];