diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte index 4deb4ca2c..de29b9a0d 100644 --- a/src/lib/components/support.svelte +++ b/src/lib/components/support.svelte @@ -60,49 +60,41 @@ on:click={() => { show = false; }}> - Contact our Support Team + Email support {/if} {/if} -
-
-

Troubleshooting

+
+

Troubleshooting

-
- {#key $app.themeInUse} - - {/key} -
+
+ {#key $app.themeInUse} + + {/key}
-
diff --git a/src/lib/elements/forms/inputSelectCheckbox.svelte b/src/lib/elements/forms/inputSelectCheckbox.svelte index 57c0fd440..6c208e3ec 100644 --- a/src/lib/elements/forms/inputSelectCheckbox.svelte +++ b/src/lib/elements/forms/inputSelectCheckbox.svelte @@ -12,6 +12,7 @@ export let tags: string[] = []; export let placeholder: string; export let options: Option[] = []; + export let removable = false; let search = ''; let input: HTMLInputElement; @@ -54,6 +55,23 @@
  • {tag} + {#if removable} + + {/if}
  • {/each} diff --git a/src/routes/(console)/support/+page.svelte b/src/routes/(console)/support/+page.svelte index 627c125b4..3cc7c11db 100644 --- a/src/routes/(console)/support/+page.svelte +++ b/src/routes/(console)/support/+page.svelte @@ -7,7 +7,6 @@ Button, Form, FormList, - InputCheckbox, InputSelect, InputSelectCheckbox, InputTextarea, @@ -36,6 +35,8 @@ import FormItem from '$lib/elements/forms/formItem.svelte'; import type { OrganizationList } from '$lib/stores/organization'; import { BillingPlan } from '$lib/constants'; + import { Card } from '$lib/components'; + import { tooltip } from '$lib/actions/tooltip'; let previousPage: string = base; @@ -74,7 +75,6 @@ { value: 'other', label: 'Other', checked: false }, { value: 'none', label: 'No particular product or serivce', checked: false } ]; - let access = false; onMount(async () => { if ($page.url.searchParams.has('org')) { @@ -106,10 +106,7 @@ { id: '48492', value: selectedOrgId ?? '' }, { id: '48491', value: originProjectId ?? '' }, { id: '48490', value: $user?.$id ?? '' } - ], - metaFields: { - temporaryAccess: access - } + ] }) }); trackEvent(Submit.SupportTicket); @@ -123,8 +120,8 @@ } else { await goto(previousPage); addNotification({ - message: - 'Your support ticket was submitted successfully. The Appwrite team will get back to you shortly.', + title: 'Request sent successfully', + message: 'Our support team will reach out to you soon.', type: 'success' }); } @@ -137,7 +134,7 @@ endDay: 'Friday' as WeekDay }; - $: supportTimings = `${utcHourToLocaleHour(workTimings.start)} - ${utcHourToLocaleHour(workTimings.end)} ${localeTimezoneName()}`; + $: supportTimings = `${utcHourToLocaleHour(workTimings.start)} - ${utcHourToLocaleHour(workTimings.end)}`; $: supportWeekDays = `${utcWeekDayToLocaleWeekDay(workTimings.startDay, workTimings.start)} - ${utcWeekDayToLocaleWeekDay(workTimings.endDay, workTimings.end)}`; @@ -148,8 +145,7 @@ Support - Please describe your request in detail, including reproduction steps or screenshots of any - in-app issues. + Please describe your request in detail, including reproduction steps of any in-app issues.
    @@ -167,6 +163,7 @@ ({ ...option, @@ -192,25 +189,10 @@ placeholder="Type here..." bind:value={message} required /> - {#if category === 'technical'} - - - - Under some circumstances, you may want to provide access for help - with issues related to your projects. - - - - {/if} -
    +

    We will contact you at {$user.email}. We try to respond to all messages within our office hours. @@ -218,6 +200,7 @@

    • Available: {supportWeekDays}, {supportTimings} +
    • Currently: @@ -248,7 +231,7 @@ {/key}
    -
    +