mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 17:31:14 -05:00
Refactor: Approve test data generator tool use
This commit is contained in:
@@ -181,6 +181,39 @@ export function TestDataGenerator() {
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
)}
|
||||
|
||||
{/* Dependency warnings */}
|
||||
{entityTypes.rides && stats.parks === 0 && !entityTypes.parks && (
|
||||
<Alert variant="destructive">
|
||||
<AlertTriangle className="h-4 w-4" />
|
||||
<AlertDescription>
|
||||
<strong>Missing Dependency:</strong> You've selected "rides" but no parks exist.
|
||||
Rides require parks to be created first. Either enable "parks" or generate parks separately first.
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
)}
|
||||
|
||||
{entityTypes.ride_models && stats.manufacturers === 0 && !entityTypes.manufacturers && (
|
||||
<Alert variant="destructive">
|
||||
<AlertTriangle className="h-4 w-4" />
|
||||
<AlertDescription>
|
||||
<strong>Missing Dependency:</strong> You've selected "ride models" but no manufacturers exist.
|
||||
Ride models require manufacturers to be created first. Either enable "manufacturers" or generate manufacturers separately first.
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
)}
|
||||
|
||||
{(entityTypes.parks || entityTypes.rides) &&
|
||||
stats.operators === 0 && stats.property_owners === 0 &&
|
||||
!entityTypes.operators && !entityTypes.property_owners && (
|
||||
<Alert>
|
||||
<AlertTriangle className="h-4 w-4" />
|
||||
<AlertDescription>
|
||||
<strong>Optional Dependencies:</strong> Parks and rides can optionally link to operators and property owners.
|
||||
Consider enabling "operators" and "property_owners" for more realistic test data with proper dependency chains.
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user