From d95f6376798435d97b9939f4e823c6c44b355e99 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 27 Oct 2025 06:37:18 +0000 Subject: [PATCH 01/17] Initial plan From 1c41f8e5f22630f3266b3d4b15672168b66f7ba9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 27 Oct 2025 06:51:10 +0000 Subject: [PATCH 02/17] feat: update support wizard with new fields and filtering Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com> --- src/routes/(console)/supportWizard.svelte | 80 +++++++++++++++++--- src/routes/(console)/wizard/support/store.ts | 2 + 2 files changed, 72 insertions(+), 10 deletions(-) diff --git a/src/routes/(console)/supportWizard.svelte b/src/routes/(console)/supportWizard.svelte index 6c6aa7045f..3152e5640b 100644 --- a/src/routes/(console)/supportWizard.svelte +++ b/src/routes/(console)/supportWizard.svelte @@ -1,6 +1,6 @@ +{#snippet severityPopover()} +
+ + +
+ + + Critical: System is down or a critical component is non-functional, + causing a complete stoppage of work or significant business impact. + + + High: Major functionality is impaired, but a workaround is + available, or a critical component is significantly degraded. + + + Medium: Minor functionality is impaired without significant business + impact. + + + Low: Issue has minor impact on business operations; workaround is + not necessary. + + + Question: Requests for information, general guidance, or feature + requests. + + +
+
+
+{/snippet} +
@@ -210,39 +252,9 @@ label="Severity" options={severityOptions} bind:value={$supportData.severity} - required={true} + required placeholder="Select severity"> -
- - -
- - - Critical: System is down or a critical component is non-functional, - causing a complete stoppage of work or significant business impact. - - - High: Major functionality is impaired, but a workaround is - available, or a critical component is significantly degraded. - - - Medium: Minor functionality is impaired without significant - business impact. - - - Low: Issue has minor impact on business operations; workaround - is not necessary. - - - Question: Requests for information, general guidance, or feature - requests. - - -
-
-
+ {@render severityPopover()} Date: Tue, 28 Oct 2025 15:06:55 +0000 Subject: [PATCH 13/17] fix: use onMount instead of $effect for project loading Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com> --- src/routes/(console)/supportWizard.svelte | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/routes/(console)/supportWizard.svelte b/src/routes/(console)/supportWizard.svelte index d609c1805b..bc3cb22225 100644 --- a/src/routes/(console)/supportWizard.svelte +++ b/src/routes/(console)/supportWizard.svelte @@ -2,6 +2,7 @@ import { Wizard } from '$lib/layout'; import { Icon, Input, Layout, Popover, Tag, Typography, Card } from '@appwrite.io/pink-svelte'; import { supportData, isSupportOnline } from './wizard/support/store'; + import { onMount } from 'svelte'; import { sdk } from '$lib/stores/sdk'; import { Form, @@ -61,20 +62,19 @@ { value: 'question', label: 'Question' } ]; - $effect(() => { + onMount(async () => { // Filter projects by organization ID using server-side queries - sdk.forConsole.projects - .list({ - queries: $organization?.$id ? [Query.equal('teamId', $organization.$id)] : [] - }) - .then((projectList) => { - projectOptions = projectList.projects.map((project) => ({ - value: project.$id, - label: project.name - })); - }); + const projectList = await sdk.forConsole.projects.list({ + queries: $organization?.$id ? [Query.equal('teamId', $organization.$id)] : [] + }); + projectOptions = projectList.projects.map((project) => ({ + value: project.$id, + label: project.name + })); + }); - // Cleanup on destroy + // Cleanup on component destroy + $effect(() => { return () => { $supportData = { message: null, From d43e72fe9a4c4dcbab319c0a6cde64c42199c50d Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Wed, 29 Oct 2025 13:42:54 -0700 Subject: [PATCH 14/17] chore: fix diagnostic error --- src/routes/(console)/supportWizard.svelte | 61 +++++++++++------------ 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/src/routes/(console)/supportWizard.svelte b/src/routes/(console)/supportWizard.svelte index bc3cb22225..39be19ceb8 100644 --- a/src/routes/(console)/supportWizard.svelte +++ b/src/routes/(console)/supportWizard.svelte @@ -172,37 +172,32 @@ {#snippet severityPopover()} -
- - -
- - - Critical: System is down or a critical component is non-functional, - causing a complete stoppage of work or significant business impact. - - - High: Major functionality is impaired, but a workaround is - available, or a critical component is significantly degraded. - - - Medium: Minor functionality is impaired without significant business - impact. - - - Low: Issue has minor impact on business operations; workaround is - not necessary. - - - Question: Requests for information, general guidance, or feature - requests. - - -
-
-
+ + +
+ + + Critical: System is down or a critical component is non-functional, causing + a complete stoppage of work or significant business impact. + + + High: Major functionality is impaired, but a workaround is available, or a + critical component is significantly degraded. + + + Medium: Minor functionality is impaired without significant business impact. + + + Low: Issue has minor impact on business operations; workaround is not necessary. + + + Question: Requests for information, general guidance, or feature requests. + + +
+
{/snippet} @@ -254,7 +249,9 @@ bind:value={$supportData.severity} required placeholder="Select severity"> - {@render severityPopover()} +
+ {@render severityPopover()} +
Date: Thu, 30 Oct 2025 14:00:43 -0700 Subject: [PATCH 15/17] fix: ensure submit button submits --- src/routes/(console)/supportWizard.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/(console)/supportWizard.svelte b/src/routes/(console)/supportWizard.svelte index 39be19ceb8..22467ac408 100644 --- a/src/routes/(console)/supportWizard.svelte +++ b/src/routes/(console)/supportWizard.svelte @@ -273,7 +273,7 @@ on:click={() => { wizard.hide(); }}>Cancel - +
From 8a02f948c43f70d948a326073f46f1fe7540441f Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Wed, 5 Nov 2025 13:54:23 -0800 Subject: [PATCH 16/17] fix: update support form - set default severity to question since there needs to be a value set but the required attribute on InputSelect doesn't work - require details --- src/routes/(console)/supportWizard.svelte | 3 ++- src/routes/(console)/wizard/support/store.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/(console)/supportWizard.svelte b/src/routes/(console)/supportWizard.svelte index 22467ac408..a7574c511f 100644 --- a/src/routes/(console)/supportWizard.svelte +++ b/src/routes/(console)/supportWizard.svelte @@ -81,7 +81,7 @@ subject: null, category: 'technical', topic: undefined, - severity: undefined, + severity: 'question', file: null }; }; @@ -265,6 +265,7 @@ bind:value={$supportData.message} placeholder="Type here..." label="Tell us a bit more" + required maxlength={4096} />