diff --git a/packages/backend/src/api/v1/auth/index.ts b/packages/backend/src/api/v1/auth/index.ts index 4491d2a0..af77615e 100644 --- a/packages/backend/src/api/v1/auth/index.ts +++ b/packages/backend/src/api/v1/auth/index.ts @@ -55,6 +55,7 @@ auth.post("/signup", async (ctx: Context) => { employeeCount: z.string().optional(), orgId: z.string().optional(), token: z.string().optional(), + whereFindUs: z.string().optional(), redirectUrl: z.string().optional(), signupMethod: z.enum(["signup", "join"]), }) @@ -68,6 +69,7 @@ auth.post("/signup", async (ctx: Context) => { employeeCount, orgId, signupMethod, + whereFindUs, redirectUrl, token, } = bodySchema.parse(ctx.request.body) @@ -157,7 +159,9 @@ auth.post("/signup", async (ctx: Context) => { signupMethod === "signup" ? `building ${projectName} @ ${orgName} (${employeeCount}).` : "joining an org." - }`, + } + +Found us: ${whereFindUs}`, "users", ) diff --git a/packages/frontend/components/blocks/Feedbacks/index.tsx b/packages/frontend/components/blocks/Feedbacks/index.tsx index b41ae6d7..eab3ac84 100644 --- a/packages/frontend/components/blocks/Feedbacks/index.tsx +++ b/packages/frontend/components/blocks/Feedbacks/index.tsx @@ -1,5 +1,5 @@ import { useFixedColorScheme } from "@/utils/hooks" -import { ActionIcon, Box, Button, Popover, TextInput } from "@mantine/core" +import { ActionIcon, Button, Group, Popover, TextInput } from "@mantine/core" import { IconMessage, IconThumbDown, IconThumbUp } from "@tabler/icons-react" import { useState } from "react" import { Feedback } from "shared" @@ -29,7 +29,6 @@ export default function Feedbacks({ } function ThumbFeedback({ value }: { value?: "up" | "down" | null }) { - console.log(value) function ThumbUp() { const color = getColor(value === "up" ? "green" : "gray") return @@ -41,7 +40,7 @@ export default function Feedbacks({ } return ( - + { @@ -68,7 +67,7 @@ export default function Feedbacks({ > - + ) } @@ -86,6 +85,7 @@ export default function Feedbacks({ value={comment} size="xs" mt="xs" + placeholder="Add a comment" onChange={(e) => setComment(e.target.value)} />