Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/app/api/customers/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const GET = withWorkspace(
},
);

// POST /api/customers – Create a new customer
// POST /api/customers – Create a customer
export const POST = withWorkspace(
async ({ req, workspace }) => {
const { email, name, avatar, externalId } = createCustomerBodySchema.parse(
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/api/stripe/integration/webhook/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function createNewCustomer(event: Stripe.Event) {
return `Link with ID ${linkId} not found or does not have a project, skipping...`;
}

// Create a new customer
// Create a customer
const customer = await prisma.customer.create({
data: {
id: createId({ prefix: "cus_" }),
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/actions/partners/create-program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { generateRandomString, nanoid, R2_URL } from "@dub/utils";
import { Program, Project, User } from "@prisma/client";
import { waitUntil } from "@vercel/functions";

// Create a new program from the onboarding data
// Create a program from the onboarding data
export const createProgram = async ({
workspace,
user,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/actions/request-password-reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const requestPasswordResetAction = actionClient
},
}),

// Create a new password reset token
// Create a password reset token
prisma.passwordResetToken.create({
data: {
identifier: email,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import { ZodOpenApiOperationObject } from "zod-openapi";
export const createReferralsEmbedToken: ZodOpenApiOperationObject = {
operationId: "createReferralsEmbedToken",
"x-speakeasy-name-override": "referrals",
summary: "Create a new referrals embed token",
description:
"Create a new referrals embed token for the given partner/tenant.",
summary: "Create a referrals embed token",
description: "Create a referrals embed token for the given partner/tenant.",
requestBody: {
content: {
"application/json": {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/lib/openapi/folders/create-folder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { ZodOpenApiOperationObject } from "zod-openapi";
export const createFolder: ZodOpenApiOperationObject = {
operationId: "createFolder",
"x-speakeasy-name-override": "create",
summary: "Create a new folder",
description: "Create a new folder for the authenticated workspace.",
summary: "Create a folder",
description: "Create a folder for the authenticated workspace.",
requestBody: {
content: {
"application/json": {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/lib/openapi/links/create-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export const createLink: ZodOpenApiOperationObject = {
operationId: "createLink",
"x-speakeasy-name-override": "create",
"x-speakeasy-usage-example": true,
summary: "Create a new link",
description: "Create a new link for the authenticated workspace.",
summary: "Create a link",
description: "Create a link for the authenticated workspace.",
requestBody: {
content: {
"application/json": {
Expand Down
3 changes: 1 addition & 2 deletions apps/web/lib/openapi/partners/create-partner-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export const createPartnerLink: ZodOpenApiOperationObject = {
operationId: "createPartnerLink",
"x-speakeasy-name-override": "createLink",
summary: "Create a link for a partner",
description:
"Create a new link for a partner that is enrolled in your program.",
description: "Create a link for a partner that is enrolled in your program.",
requestBody: {
content: {
"application/json": {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/lib/openapi/partners/create-partner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import { ZodOpenApiOperationObject } from "zod-openapi";
export const createPartner: ZodOpenApiOperationObject = {
operationId: "createPartner",
"x-speakeasy-name-override": "create",
summary: "Create a new partner",
summary: "Create a partner",
description:
"Create a new partner for a program. If partner exists, automatically enrolls them.",
"Create a partner for a program. If partner exists, automatically enrolls them.",
requestBody: {
content: {
"application/json": {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/lib/openapi/tags/create-tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { ZodOpenApiOperationObject } from "zod-openapi";
export const createTag: ZodOpenApiOperationObject = {
operationId: "createTag",
"x-speakeasy-name-override": "create",
summary: "Create a new tag",
description: "Create a new tag for the authenticated workspace.",
summary: "Create a tag",
description: "Create a tag for the authenticated workspace.",
requestBody: {
content: {
"application/json": {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/ui/layout/toolbar/onboarding/onboarding-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function OnboardingButtonInner({
const tasks = useMemo(() => {
return [
{
display: "Create a new Dub link",
cta: `/${slug}`,
display: "Create your first short link",
cta: `/${slug}/links`,
checked: totalLinks === 0 ? false : true,
recommended: true,
},
Expand Down
2 changes: 1 addition & 1 deletion apps/web/ui/modals/add-workspace-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function AddWorkspaceModalHelper({
>
<div className="flex flex-col items-center justify-center space-y-3 border-b border-neutral-200 px-4 py-4 pt-8 sm:px-16">
<Logo />
<h3 className="text-lg font-medium">Create a new workspace</h3>
<h3 className="text-lg font-medium">Create a workspace</h3>
<a
href="https://dub.co/help/article/what-is-a-workspace"
target="_blank"
Expand Down