From bcee6b2c68890d8ce88136a8f82fe4343f0c6a0f Mon Sep 17 00:00:00 2001
From: Noel Sabia
Date: Sat, 14 Nov 2026 21:04:23 +0100
Subject: [PATCH 1/2] feat: add live playground forecast console
---
app/app.vue | 6 +-
app/components/PlaygroundChart.vue | 513 ++++++++++++++
app/layouts/default.vue | 22 +-
app/pages/playground.vue | 1000 ++++++++++++++++++++++++++++
app/utils/playground.ts | 165 +++++
nuxt.config.ts | 7 +
server/api/playground.get.ts | 67 ++
shared/types.ts | 19 +
test/playground.test.ts | 144 ++++
9 files changed, 1931 insertions(+), 12 deletions(-)
create mode 100644 app/components/PlaygroundChart.vue
create mode 100644 app/pages/playground.vue
create mode 100644 app/utils/playground.ts
create mode 100644 server/api/playground.get.ts
create mode 100644 test/playground.test.ts
diff --git a/app/app.vue b/app/app.vue
index 2d92d8e..102794b 100644
--- a/app/app.vue
+++ b/app/app.vue
@@ -14,7 +14,9 @@ const usingMock = computed(() => {
return value === true || value === '1' || value === 'true'
})
-const isSensing = computed(() => route.path === '/' || route.path.startsWith('/sensors'))
+const isNewShell = computed(
+ () => route.path === '/' || route.path.startsWith('/sensors') || route.path.startsWith('/playground'),
+)
const isCool = computed(() => route.path.startsWith('/cool'))
const isDarkPresentation = computed(
() => route.path === '/stage' || route.path === '/live' || route.path === '/cool/stage',
@@ -59,7 +61,7 @@ onBeforeUnmount(() => navRoleObserver?.disconnect())
-
+
diff --git a/app/components/PlaygroundChart.vue b/app/components/PlaygroundChart.vue
new file mode 100644
index 0000000..a9e758d
--- /dev/null
+++ b/app/components/PlaygroundChart.vue
@@ -0,0 +1,513 @@
+
+
+
+
+
+
+
+
+
diff --git a/app/layouts/default.vue b/app/layouts/default.vue
index 36f8649..3a5a93f 100644
--- a/app/layouts/default.vue
+++ b/app/layouts/default.vue
@@ -5,6 +5,7 @@ const menuButton = ref(null)
const engineActive = computed(() => route.path === '/')
const sensorsActive = computed(() => route.path.startsWith('/sensors'))
+const playgroundActive = computed(() => route.path.startsWith('/playground'))
const navLinkClass =
'inline-flex h-16 items-center border-b-2 font-label-md transition-colors'
@@ -86,13 +87,13 @@ watch(() => route.fullPath, closeMenu)
>
Use cases
-
Playground
-
+
-
+
Observed