diff --git a/src/components/navbar-editor.tsx b/src/components/navbar-editor.tsx index 5820699f15..a9430fbbd5 100644 --- a/src/components/navbar-editor.tsx +++ b/src/components/navbar-editor.tsx @@ -54,8 +54,7 @@ interface EditorNavbarProps { persistenceState: Signal } -type StuckCategory = "Logic Error" | "Syntax Error" | "Other"; - +type StuckCategory = "Logic Error" | "Syntax Error" | "Other" | "UI" | "Code Compilation" | "Bitmap Editor" | "Tune Editor" | "Help/Tutorial Window" | "AI Chat" | "Website"; type StuckData = { category: StuckCategory description: string @@ -212,7 +211,7 @@ export default function EditorNavbar(props: EditorNavbarProps) {
  • @@ -298,13 +297,13 @@ export default function EditorNavbar(props: EditorNavbarProps) { }; try { - const response = await fetch("/api/stuck-request", { + const response = await fetch("/api/bug-report", { method: "POST", body: JSON.stringify(payload) }) // Let the user know we'll get back to them after we've receive their complaint if (response.ok) { - alert("We received your request and will get back to you via email.") + alert("We received your bug report! Thanks!") } else alert("We couldn't send your request. Please make sure you're connected and try again.") } catch (err) { @@ -317,9 +316,14 @@ export default function EditorNavbar(props: EditorNavbarProps) {