feat: extract product identity workflow step
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-10 03:09:39 -04:00
parent 8ff547feaa
commit 3e29ca0529
5 changed files with 90 additions and 33 deletions
+10 -33
View File
@@ -5,6 +5,7 @@ import { RouterLink } from "vue-router";
import { useAuth } from "@/composables/useAuth.js";
import AdminListingStatus from "@/components/molecules/AdminListingStatus.vue";
import InventoryWorkflowStepper from "@/components/molecules/InventoryWorkflowStepper.vue";
import ProductIdentityStep from "@/components/molecules/ProductIdentityStep.vue";
import {
createAdminInventory,
createAdminProduct,
@@ -675,39 +676,15 @@ onMounted(load);
<InventoryWorkflowStepper :steps="workflowSteps" />
<div class="admin-workspace-grid">
<form id="workflow-product" class="showcase-panel" @submit.prevent="createProduct">
<h2>Add product</h2>
<label class="fixture-label" for="product-name">Name</label>
<input
id="product-name"
v-model="productName"
class="fixture-input"
required
/>
<label class="fixture-label" for="product-category">Category</label>
<select
id="product-category"
v-model="categoryId"
class="fixture-input"
required
>
<option value="" disabled>Select a category</option>
<option
v-for="category in categories"
:key="category.id"
:value="category.id"
>
{{ category.name }}
</option>
</select>
<button
class="button button--primary"
type="submit"
:disabled="isSaving"
>
Create product
</button>
</form>
<ProductIdentityStep
:product-name="productName"
:category-id="categoryId"
:categories="categories"
:is-saving="isSaving"
@update:product-name="productName = $event"
@update:category-id="categoryId = $event"
@submit="createProduct"
/>
<form id="workflow-mapping" class="showcase-panel" @submit.prevent="createProviderMapping">
<h2>Link provider mapping</h2>
<label class="fixture-label" for="mapping-product">Product</label>