Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

hide tools

Steven Tey5d17210fdea7
diff --git a/apps/web/app/(ee)/admin.dub.co/(dashboard)/page.tsx b/apps/web/app/(ee)/admin.dub.co/(dashboard)/page.tsx
index fbe56c1c8d..3a4bed219b 100644
--- a/apps/web/app/(ee)/admin.dub.co/(dashboard)/page.tsx
+++ b/apps/web/app/(ee)/admin.dub.co/(dashboard)/page.tsx
@@ -25,71 +25,78 @@ export default async function AdminPage() {
<ImpersonateUser />
</div>
{showModerationTools && (
- <div className="flex flex-col space-y-4 px-5 py-10">
- <h2 className="text-xl font-semibold">Ban Link</h2>
- <p className="text-sm text-neutral-500">
- Ban a dub.sh link. The destination shows up as you type, with the
- creator's account below.
- </p>
- <BanLink />
- </div>
- )}
- <div className="flex flex-col space-y-4 px-5 py-10">
- <h2 className="text-xl font-semibold">Delete Stripe Express Account</h2>
- <p className="text-sm text-neutral-500">
- Delete a partner's Stripe express account (and potentially their
- partner account as well). <br />
- <br />
- Caveats:
- <br />- If the partner has already received payouts via Stripe, their
- Stripe Express account won't be deleted.
- <br />- If the partner has already received commissions or leads on
- Dub, their partner account won't be deleted.
- </p>
- <DeletePartnerAccount />
- </div>
- <div className="flex flex-col space-y-4 px-5 py-10">
- <h2 className="text-xl font-semibold">Delete Program</h2>
- <p className="text-sm text-neutral-500">
- Permanently delete a program by ID or slug, along with all of its
- commissions, payouts, rewards, discounts, links, customers, partner
- groups, and enrollments.
- </p>
- <DeleteProgram />
- </div>
- <div className="flex flex-col space-y-4 px-5 py-10">
- <h2 className="text-xl font-semibold">Reset Login Attempts</h2>
- <p className="text-sm text-neutral-500">
- Reset a user's invalidLoginAttempts and lockedAt fields
- </p>
- <ResetLoginAttempts />
- </div>
- <div className="flex flex-col space-y-4 px-5 py-10">
- <h2 className="text-xl font-semibold">Convert to Sandbox Workspace</h2>
- <p className="text-sm text-neutral-500">
- Convert a workspace to sandbox mode with the Advanced plan and trial
- limits.
- </p>
- <ConvertToSandboxWorkspace />
- </div>
- <div className="flex flex-col space-y-4 px-5 py-10">
- <h2 className="text-xl font-semibold">Slack Support Invite</h2>
- <p className="text-sm text-neutral-500">
- Manually send a priority Slack Connect invite to a user for a given
- workspace (bypasses the plan check).
- </p>
- <SlackSupportInvite />
- </div>
- {showModerationTools && (
- <div className="flex flex-col space-y-4 px-5 py-10">
- <h2 className="text-xl font-semibold">Disable / Restore Workspace</h2>
- <p className="text-sm text-neutral-500">
- Disable or restore all links for a workspace. Disabling also
- downgrades owners to billing, members to viewer, and emails
- workspace owners. Restoring reverts those role changes.
- </p>
- <DisableRestoreWorkspace />
- </div>
+ <>
+ <div className="flex flex-col space-y-4 px-5 py-10">
+ <h2 className="text-xl font-semibold">Ban Link</h2>
+ <p className="text-sm text-neutral-500">
+ Ban a dub.sh link. The destination shows up as you type, with the
+ creator's account below.
+ </p>
+ <BanLink />
+ </div>
+
+ <div className="flex flex-col space-y-4 px-5 py-10">
+ <h2 className="text-xl font-semibold">
+ Delete Stripe Express Account
+ </h2>
+ <p className="text-sm text-neutral-500">
+ Delete a partner's Stripe express account (and potentially their
+ partner account as well). <br />
+ <br />
+ Caveats:
+ <br />- If the partner has already received payouts via Stripe,
+ their Stripe Express account won't be deleted.
+ <br />- If the partner has already received commissions or leads
+ on Dub, their partner account won't be deleted.
+ </p>
+ <DeletePartnerAccount />
+ </div>
+ <div className="flex flex-col space-y-4 px-5 py-10">
+ <h2 className="text-xl font-semibold">Delete Program</h2>
+ <p className="text-sm text-neutral-500">
+ Permanently delete a program by ID or slug, along with all of its
+ commissions, payouts, rewards, discounts, links, customers,
+ partner groups, and enrollments.
+ </p>
+ <DeleteProgram />
+ </div>
+ <div className="flex flex-col space-y-4 px-5 py-10">
+ <h2 className="text-xl font-semibold">Reset Login Attempts</h2>
+ <p className="text-sm text-neutral-500">
+ Reset a user's invalidLoginAttempts and lockedAt fields
+ </p>
+ <ResetLoginAttempts />
+ </div>
+ <div className="flex flex-col space-y-4 px-5 py-10">
+ <h2 className="text-xl font-semibold">
+ Convert to Sandbox Workspace
+ </h2>
+ <p className="text-sm text-neutral-500">
+ Convert a workspace to sandbox mode with the Advanced plan and
+ trial limits.
+ </p>
+ <ConvertToSandboxWorkspace />
+ </div>
+ <div className="flex flex-col space-y-4 px-5 py-10">
+ <h2 className="text-xl font-semibold">Slack Support Invite</h2>
+ <p className="text-sm text-neutral-500">
+ Manually send a priority Slack Connect invite to a user for a
+ given workspace (bypasses the plan check).
+ </p>
+ <SlackSupportInvite />
+ </div>
+ <div className="flex flex-col space-y-4 px-5 py-10">
+ <h2 className="text-xl font-semibold">
+ Disable / Restore Workspace
+ </h2>
+ <p className="text-sm text-neutral-500">
+ Disable or restore all links for a workspace. Disabling also
+ downgrades owners to billing, members to viewer, and emails
+ workspace owners. Restoring reverts those role changes.
+ </p>
+ <DisableRestoreWorkspace />
+ </div>
+ </>
)}
</div>
);