Skip to content

Commit 4b20050

Browse files
committed
[TOOL-3639] Dashboard: Pay > Universal Bridge renaming (#6431)
<!-- start pr-codex --> ## PR-Codex overview This PR focuses on renaming and rebranding the `Pay` feature to `Universal Bridge`, updating related paths, descriptions, and components accordingly. ### Detailed summary - Renamed `Pay` to `Universal Bridge` in various components and files. - Updated links and routes to reflect the new branding. - Changed descriptions to align with the new feature purpose. - Replaced `TrackedLinkTW` with `TrackedUnderlineLink` in multiple components. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent f8eb86d commit 4b20050

File tree

14 files changed

+33
-28
lines changed

14 files changed

+33
-28
lines changed

apps/dashboard/redirects.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,13 @@ async function redirects() {
354354
destination: "/",
355355
permanent: false,
356356
},
357+
// pay > universal-bridge redirect
358+
{
359+
source: "/team/:team_slug/:project_slug/connect/pay/:path*",
360+
destination:
361+
"/team/:team_slug/:project_slug/connect/universal-bridge/:path*",
362+
permanent: false,
363+
},
357364
...legacyDashboardToTeamRedirects,
358365
];
359366
}

apps/dashboard/src/app/(dashboard)/(chain)/components/server/products.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const products = [
4545
link: "https://portal.thirdweb.com/connect/account-abstraction/overview",
4646
},
4747
{
48-
name: "Pay",
48+
name: "Universal Bridge",
4949
id: "pay",
5050
icon: PayIcon,
5151
description: "Point of sale solution for bridging, onramping & swapping",

apps/dashboard/src/app/team/[team_slug]/[project_slug]/connect/account-abstraction/AccountAbstractionPage.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
44
import { TabPathLinks } from "@/components/ui/tabs";
5-
import { TrackedLinkTW } from "@/components/ui/tracked-link";
5+
import { TrackedUnderlineLink } from "@/components/ui/tracked-link";
66
import { SmartWalletsBillingAlert } from "components/settings/ApiKeys/Alerts";
77
import { CircleAlertIcon } from "lucide-react";
88
import { useActiveWalletChain } from "thirdweb/react";
@@ -29,21 +29,20 @@ export function AccountAbstractionLayout(props: {
2929

3030
return (
3131
<div>
32-
<h1 className="mb-1 font-semibold text-2xl tracking-tight lg:text-3xl">
32+
<h1 className="mb-1 font-semibold text-2xl tracking-tight lg:mb-2 lg:text-3xl">
3333
Account Abstraction
3434
</h1>
3535
<p className="text-muted-foreground text-sm">
3636
Easily integrate Account abstraction (ERC-4337) compliant smart accounts
3737
into your apps.{" "}
38-
<TrackedLinkTW
38+
<TrackedUnderlineLink
3939
target="_blank"
4040
label="docs-wallets"
4141
category={TRACKING_CATEGORY}
4242
href="https://portal.thirdweb.com/wallets/smart-wallet"
43-
className="text-link-foreground hover:text-foreground"
4443
>
4544
View Documentation
46-
</TrackedLinkTW>
45+
</TrackedUnderlineLink>
4746
</p>
4847
<div className="h-6" />
4948
<div className="flex flex-col gap-6">

apps/dashboard/src/app/team/[team_slug]/[project_slug]/connect/in-app-wallets/_components/header.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getInAppWalletUsage } from "@/api/analytics";
2-
import { TrackedLinkTW } from "@/components/ui/tracked-link";
2+
import { TrackedUnderlineLink } from "@/components/ui/tracked-link";
33
import { InAppWalletsSummary } from "components/embedded-wallets/Analytics/Summary";
44
import { subDays } from "date-fns";
55
import { TRACKING_CATEGORY } from "../_constants";
@@ -31,22 +31,21 @@ export async function InAppWalletsHeader({
3131

3232
return (
3333
<div>
34-
<h1 className="mb-3 font-semibold text-2xl tracking-tight md:text-3xl">
34+
<h1 className="mb-1 font-semibold text-2xl tracking-tight lg:mb-2 lg:text-3xl">
3535
In-App Wallets
3636
</h1>
37-
<p className="mt-3 mb-7 max-w-[700px] text-muted-foreground">
37+
<p className="mb-7 max-w-[700px] text-muted-foreground text-sm leading-relaxed">
3838
A wallet infrastructure that enables apps to create, manage, and control
3939
their users wallets. Email login, social login, and bring-your-own auth
4040
supported.{" "}
41-
<TrackedLinkTW
41+
<TrackedUnderlineLink
4242
target="_blank"
4343
href="https://portal.thirdweb.com/connect/in-app-wallet/overview"
4444
label="learn-more"
4545
category={TRACKING_CATEGORY}
46-
className="text-link-foreground hover:text-foreground"
4746
>
4847
Learn more
49-
</TrackedLinkTW>
48+
</TrackedUnderlineLink>
5049
</p>
5150
<InAppWalletsSummary
5251
allTimeStats={allTimeStats || []}

apps/dashboard/src/app/team/[team_slug]/[project_slug]/connect/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export default async function Layout(props: {
2020
href: `/team/${team_slug}/${project_slug}/connect/account-abstraction`,
2121
},
2222
{
23-
label: "Pay",
24-
href: `/team/${team_slug}/${project_slug}/connect/pay`,
23+
label: "Universal Bridge",
24+
href: `/team/${team_slug}/${project_slug}/connect/universal-bridge`,
2525
},
2626
{
2727
label: "Playground",

apps/dashboard/src/app/team/[team_slug]/[project_slug]/connect/pay/layout.tsx renamed to apps/dashboard/src/app/team/[team_slug]/[project_slug]/connect/universal-bridge/layout.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getProject } from "@/api/projects";
22
import { TabPathLinks } from "@/components/ui/tabs";
3-
import Link from "next/link";
43
import { redirect } from "next/navigation";
4+
import { UnderlineLink } from "../../../../../../@/components/ui/UnderlineLink";
55

66
export default async function Layout(props: {
77
params: Promise<{
@@ -17,26 +17,25 @@ export default async function Layout(props: {
1717
redirect(`/team/${params.team_slug}`);
1818
}
1919

20-
const payLayoutPath = `/team/${params.team_slug}/${params.project_slug}/connect/pay`;
20+
const payLayoutPath = `/team/${params.team_slug}/${params.project_slug}/connect/universal-bridge`;
2121

2222
return (
2323
<div className="flex w-full flex-col gap-6">
2424
<div className="flex flex-col items-start justify-between gap-6 lg:flex-row">
2525
<div className="max-w-[700px]">
26-
<h1 className="mb-3 font-bold text-3xl tracking-tight md:text-4xl">
27-
Pay
26+
<h1 className="mb-1 font-semibold text-2xl tracking-tight lg:mb-2 lg:text-3xl">
27+
Universal Bridge
2828
</h1>
29-
<p className="text-muted-foreground text-sm leading-relaxed md:text-base">
30-
Pay allows your users to purchase cryptocurrencies and execute
31-
transactions with their credit card or debit card, or with any token
32-
via cross-chain routing.{" "}
33-
<Link
29+
<p className="text-muted-foreground text-sm leading-relaxed">
30+
Universal Bridge allows your users to bridge, swap, and purchase
31+
cryptocurrencies and execute transactions with any fiat options or
32+
tokens via cross-chain routing.{" "}
33+
<UnderlineLink
3434
target="_blank"
3535
href="https://portal.thirdweb.com/connect/pay/overview"
36-
className="!text-link-foreground"
3736
>
3837
Learn more
39-
</Link>
38+
</UnderlineLink>
4039
</p>
4140
</div>
4241
</div>

apps/dashboard/src/app/team/[team_slug]/[project_slug]/settings/ProjectGeneralSettingsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export function ProjectGeneralSettingsPageUI(props: {
217217
const paths = {
218218
aaConfig: `${projectLayout}/connect/account-abstraction/settings`,
219219
inAppConfig: `${projectLayout}/connect/in-app-wallets/settings`,
220-
payConfig: `${projectLayout}/connect/pay/settings`,
220+
payConfig: `${projectLayout}/connect/universal-bridge/settings`,
221221
afterDeleteRedirectTo: `/team/${props.teamSlug}`,
222222
};
223223

packages/service-utils/src/core/services.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ export const SERVICE_DEFINITIONS = {
4646
},
4747
pay: {
4848
name: "pay",
49-
title: "Pay",
50-
description: "Pay for a blockchain transaction with any currency",
49+
title: "Universal Bridge",
50+
description:
51+
"Bridge, swap, and purchase cryptocurrencies and execute transactions with any fiat or tokens via cross-chain routing",
5152
// all actions allowed
5253
actions: [],
5354
},

0 commit comments

Comments
 (0)