@@ -28,6 +50,13 @@ function OverlayWelcome({
industrial spy, trying to access secrets using the organisation's
integrated AI chatbot system.
+
+ );
+ }
+
+ function WelcomeTwo() {
+ return (
+
Your mission
You have joined the popular soft drink producer ScottBrew as a
@@ -45,6 +74,22 @@ function OverlayWelcome({
setStartLevel={setStartLevel}
/>
+ );
+ }
+
+ return (
+
+
+
+
);
}
diff --git a/frontend/src/components/ThemedButtons/StartLevelButtons.tsx b/frontend/src/components/ThemedButtons/StartLevelButtons.tsx
index c45409a46..45976571a 100644
--- a/frontend/src/components/ThemedButtons/StartLevelButtons.tsx
+++ b/frontend/src/components/ThemedButtons/StartLevelButtons.tsx
@@ -10,8 +10,8 @@ function StartLevelButtons({
setStartLevel: (newLevel: LEVEL_NAMES) => void;
}) {
const levels: ModeSelectButton[] = [
- { displayName: 'Beginner', targetLevel: LEVEL_NAMES.LEVEL_1 },
- { displayName: 'Expert', targetLevel: LEVEL_NAMES.SANDBOX },
+ { displayName: 'Level 1', targetLevel: LEVEL_NAMES.LEVEL_1 },
+ { displayName: 'Sandbox', targetLevel: LEVEL_NAMES.SANDBOX },
];
return (
From 4e8dc8ab970ab83f02f3bcab51c70fa04bde650d Mon Sep 17 00:00:00 2001
From: dhinrichs-scottlogic
<125262707+dhinrichs-scottlogic@users.noreply.github.com>
Date: Mon, 12 Feb 2024 12:01:02 +0000
Subject: [PATCH 03/30] 578 welcome modal very basic working
---
.../src/components/Overlay/LevelsComplete.tsx | 20 +++++++++----------
.../components/Overlay/MissionInformation.tsx | 15 +++++++-------
.../src/components/Overlay/OverlayWelcome.tsx | 14 ++++++-------
3 files changed, 24 insertions(+), 25 deletions(-)
diff --git a/frontend/src/components/Overlay/LevelsComplete.tsx b/frontend/src/components/Overlay/LevelsComplete.tsx
index f955c78e7..e648485cf 100644
--- a/frontend/src/components/Overlay/LevelsComplete.tsx
+++ b/frontend/src/components/Overlay/LevelsComplete.tsx
@@ -1,6 +1,6 @@
import LevelsCompleteButtons from '@src/components/ThemedButtons/LevelsCompleteButtons';
-import MissionDialogue from './MissionDialogue';
+// import MissionDialogue from './MissionDialogue';
import Overlay from './Overlay';
function LevelsComplete({
@@ -10,19 +10,19 @@ function LevelsComplete({
goToSandbox: () => void;
closeOverlay: () => void;
}) {
- const managerDialogue = [
- {
- speaker: 'ScottBrew Manager',
- text: `Congratulations on becoming our new Head of Security!
- You can now fully explore and adjust ScottBrewBot's system, defences, prompts and more.
- Glad to finally have you in the right role.`,
- },
- ];
+ // const managerDialogue = [
+ // {
+ // speaker: 'ScottBrew Manager',
+ // text: `Congratulations on becoming our new Head of Security!
+ // You can now fully explore and adjust ScottBrewBot's system, defences, prompts and more.
+ // Glad to finally have you in the right role.`,
+ // },
+ // ];
return (
-
+ {/*
*/}
You've completed the story mode! You can stay here and continue
diff --git a/frontend/src/components/Overlay/MissionInformation.tsx b/frontend/src/components/Overlay/MissionInformation.tsx
index b66133c74..399d74b51 100644
--- a/frontend/src/components/Overlay/MissionInformation.tsx
+++ b/frontend/src/components/Overlay/MissionInformation.tsx
@@ -4,7 +4,6 @@ import { LEVELS } from '@src/Levels';
import OverlayButton from '@src/components/ThemedButtons/OverlayButton';
import { LEVEL_NAMES } from '@src/models/level';
-// import MissionDialogue from './MissionDialogue';
import Overlay from './Overlay';
import OverlayNav from './OverlayNav';
@@ -50,12 +49,14 @@ function MissionInformation({
)}
-