Openstatus www.openstatus.dev

update onboarding form (#1558)

* update onboarding form

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Thibault Le Ouay
autofix-ci[bot]
and committed by
GitHub
5ff5b542 30186467

+11 -31
+3 -3
apps/dashboard/src/app/(dashboard)/onboarding/client.tsx
··· 234 234 <Section> 235 235 <SectionHeader className="h-8 flex-row items-center justify-between"> 236 236 <SectionDescription> 237 - We&apos;d love to know how you heard about us. This will help us 238 - improve our product and services. 237 + We&apos;d love to know what you are looking for with openstatus. 238 + This will help us improve our product and services. 239 239 </SectionDescription> 240 240 </SectionHeader> 241 241 <LearnFromForm 242 242 onSubmit={async (values) => { 243 243 await createFeedbackMutation.mutateAsync({ 244 - message: `I learned about OpenStatus from *${values.from}${ 244 + message: `I want to use OpenStatus for *${values.from}${ 245 245 values.other ? `: ${values.other || "others"}` : "" 246 246 }*`, 247 247 });
+8 -28
apps/dashboard/src/components/forms/onboarding/learn-from.tsx
··· 20 20 import { toast } from "sonner"; 21 21 import { z } from "zod"; 22 22 23 - const learnedFrom = [ 24 - { 25 - id: "twitter", 26 - title: "Twitter / X", 27 - }, 28 - { 29 - id: "bsky", 30 - title: "Bluesky", 31 - }, 32 - { 33 - id: "linkedin", 34 - title: "LinkedIn", 35 - }, 36 - { 37 - id: "reddit", 38 - title: "Reddit", 39 - }, 23 + const wantFrom = [ 40 24 { 41 - id: "github", 42 - title: "GitHub", 25 + id: "statuspage", 26 + title: "Status Page", 43 27 }, 44 28 { 45 - id: "friends", 46 - title: "Friends or Colleagues", 29 + id: "uptime-monitoring", 30 + title: "Uptime Monitoring", 47 31 }, 48 32 { 49 - id: "seo", 50 - title: "Search Engine (Google, Bing, etc.)", 51 - }, 52 - { 53 - id: "newsletter", 54 - title: "Blog post or Newsletter", 33 + id: "both", 34 + title: "Both", 55 35 }, 56 36 { 57 37 id: "other", ··· 130 110 defaultValue={field.value} 131 111 className="grid grid-cols-1 gap-4 sm:grid-cols-2" 132 112 > 133 - {learnedFrom.map((item) => ( 113 + {wantFrom.map((item) => ( 134 114 <FormItem key={item.id} className="flex items-center gap-3"> 135 115 <FormControl> 136 116 <RadioGroupItem value={item.id} id={item.id} />