From 22365668e0038edf7b7a0c753c2cf4b0236c424b Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Tue, 4 Apr 2023 16:00:57 +0200 Subject: [PATCH] hidden ai playground page. nobody will know how to go to it --- .../CommandPalette/CommandPalette.svelte | 6 + .../[projectId]/aiplayground/+page.svelte | 106 ++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 src/routes/projects/[projectId]/aiplayground/+page.svelte diff --git a/src/lib/components/CommandPalette/CommandPalette.svelte b/src/lib/components/CommandPalette/CommandPalette.svelte index 727e140e2..74b3cbffb 100644 --- a/src/lib/components/CommandPalette/CommandPalette.svelte +++ b/src/lib/components/CommandPalette/CommandPalette.svelte @@ -67,6 +67,12 @@ if ($project) { dialog === Replay ? (dialog = undefined) : ((dialog = Replay), (props = { project })); } + }, + 'a i p': () => { + // my secret hotkey to go to AI Playground, nobody should know about it + if ($project) { + goto(`/projects/${$project.id}/aiplayground`); + } } }, true // disabled when an input is focused diff --git a/src/routes/projects/[projectId]/aiplayground/+page.svelte b/src/routes/projects/[projectId]/aiplayground/+page.svelte new file mode 100644 index 000000000..44d60259d --- /dev/null +++ b/src/routes/projects/[projectId]/aiplayground/+page.svelte @@ -0,0 +1,106 @@ + + +
+
+

Put things to summarize here:

+ + +
+
+

Summary ID:

+

{summaryId}

+

Requested Sequence:

+

{sequence}

+

Processed Sequence:

+

{processedSeq}

+

Summary:

+

{summary}

+ +
+