+ {manifest.scenarios.map((scenario) => {
+ const canRun = !user || scenario.required_roles.includes(user.role);
+ return (
+
+
+ {scenario.title}
+
+ {scenario.ready ? "Klaar voor demo" : "Niet beschikbaar"}
+
+
+ {scenario.operational_problem}
+
+ - Duur
- ± {scenario.estimated_minutes} min
+ - Rol
- {scenario.required_roles.map((r) => ROLE_LABEL[r]).join(" of ")}
+
+ Toont aan: {scenario.demonstrates}
+ {!scenario.ready && scenario.blocked_reason && (
+ {scenario.blocked_reason}
+ )}
+ {!canRun && (
+ Vereist rol: {scenario.required_roles.map((r) => ROLE_LABEL[r]).join(" of ")}.
+ )}
+ {
+ if (!scenario.ready || !canRun) event.preventDefault();
+ }}
+ >
+ Start scenario
+
+