From b1e4979f18843363e3d79cf5066c18c0863f00ef Mon Sep 17 00:00:00 2001
From: "alex.hill@gmail.com"
Date: Thu, 24 Oct 2024 13:25:23 +0100
Subject: [PATCH] add end sesison button
---
src/RootContext.ts | 1 +
src/components/ManageDatasets.tsx | 5 ++--
src/components/TopNav.tsx | 18 +++++++++++-
src/reducers/rootReducer.ts | 4 ++-
src/services/dataService.ts | 7 +++++
...taset.test.tsx => ManageDatasets.test.tsx} | 0
test/components/TopNav.test.tsx | 29 +++++++++++++++++++
test/rootReducer.test.ts | 13 ++++++++-
8 files changed, 71 insertions(+), 6 deletions(-)
rename test/components/{ChooseDataset.test.tsx => ManageDatasets.test.tsx} (100%)
create mode 100644 test/components/TopNav.test.tsx
diff --git a/src/RootContext.ts b/src/RootContext.ts
index dcf097e..1f28a25 100644
--- a/src/RootContext.ts
+++ b/src/RootContext.ts
@@ -28,6 +28,7 @@ export enum ActionType {
SELECT_SCALE = "SELECT_SCALE",
SET_SPLINE_OPTIONS = "SET_SPLINE_OPTIONS",
SET_INDIVIDUAL_OPTIONS = "SET_INDIVIDUAL_OPTIONS",
+ SESSION_ENDED = "SESSION_ENDED"
}
export interface RootAction {
diff --git a/src/components/ManageDatasets.tsx b/src/components/ManageDatasets.tsx
index 7e513a7..d4229e9 100644
--- a/src/components/ManageDatasets.tsx
+++ b/src/components/ManageDatasets.tsx
@@ -23,9 +23,8 @@ export function ManageDatasets() {