feat(review): remove species picker; species stays from Measure
Species is chosen on the merged Measure screen; the Review select was a duplicate. Keep species_id on the slab from createSlab (Capture→draft→Woo) and gate Create title from the hydrated value without offering edit.
This commit is contained in:
@@ -20,6 +20,8 @@ export interface SeedMeasure {
|
||||
sqft: number;
|
||||
bdft: number;
|
||||
widthIn: number;
|
||||
/** Woo species leaf; required for Review-ready e2e now that Review has no species picker. */
|
||||
speciesId?: number | null;
|
||||
}
|
||||
|
||||
const toEighths = (inches: number) => Math.round(inches * 8);
|
||||
@@ -58,6 +60,7 @@ export async function seedMeasureDraft(
|
||||
axisBbox: null,
|
||||
lengthEighths: payload.lengthEighths,
|
||||
thicknessEighths: payload.thicknessEighths,
|
||||
species_id: payload.speciesId ?? null,
|
||||
results: {
|
||||
lengthEighths: payload.lengthEighths,
|
||||
thicknessEighths: payload.thicknessEighths,
|
||||
@@ -97,6 +100,7 @@ export async function seedMeasureDraft(
|
||||
widthEighths,
|
||||
sqft: d.sqft,
|
||||
bdft: d.bdft,
|
||||
speciesId: d.speciesId ?? null,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user