The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
WIP shortcuts
Tim Wilson66a767596e26
diff --git a/apps/web/ui/modals/link-builder/ab-testing-modal.tsx b/apps/web/ui/modals/link-builder/ab-testing-modal.tsxindex c76456b24a..807950a8d0 100644--- a/apps/web/ui/modals/link-builder/ab-testing-modal.tsx+++ b/apps/web/ui/modals/link-builder/ab-testing-modal.tsx@@ -257,14 +257,14 @@ function ABTestingModal({content={<div className="px-2 py-1 text-xs text-neutral-700">Press{" "}- <strong className="font-medium text-neutral-950">B</strong> to+ <strong className="font-medium text-neutral-950">A</strong> toopen this quickly</div>}side="right"><kbd className="flex size-6 cursor-default items-center justify-center rounded-md border border-neutral-200 font-sans text-xs text-neutral-950">- B+ A</kbd></Tooltip></div>@@ -500,7 +500,7 @@ function ABTestingButton({const { watch } = useFormContext<LinkFormData>();const [tests, testsCompleteAt] = watch(["tests", "testsCompleteAt"]);- useKeyboardShortcut("b", () => setShowABTestingModal(true), {+ useKeyboardShortcut("a", () => setShowABTestingModal(true), {modal: true,});diff --git a/apps/web/ui/modals/link-builder/advanced-modal.tsx b/apps/web/ui/modals/link-builder/advanced-modal.tsxindex 48cdd0bd4e..09c1446a1b 100644--- a/apps/web/ui/modals/link-builder/advanced-modal.tsx+++ b/apps/web/ui/modals/link-builder/advanced-modal.tsx@@ -4,7 +4,6 @@ import {Modal,SimpleTooltipContent,Tooltip,- useKeyboardShortcut,} from "@dub/ui";import {Dispatch,@@ -48,10 +47,6 @@ function AdvancedModal({"tenantId",]);- useKeyboardShortcut("a", () => setShowAdvancedModal(true), {- modal: true,- });-const parentEnabled = Boolean(externalIdParent || tenantIdParent);return (@@ -82,14 +77,14 @@ function AdvancedModal({content={<div className="px-2 py-1 text-xs text-neutral-700">Press{" "}- <strong className="font-medium text-neutral-950">A</strong> to+ <strong className="font-medium text-neutral-950">V</strong> toopen this quickly</div>}side="right"><kbd className="flex size-6 cursor-default items-center justify-center gap-1 rounded-md border border-neutral-200 font-sans text-xs text-neutral-950">- A+ V</kbd></Tooltip></div>diff --git a/apps/web/ui/modals/link-builder/constants.ts b/apps/web/ui/modals/link-builder/constants.tsindex 4ed86d8335..3c774522cf 100644--- a/apps/web/ui/modals/link-builder/constants.ts+++ b/apps/web/ui/modals/link-builder/constants.ts@@ -62,7 +62,7 @@ export const MORE_ITEMS: MoreItem[] = [key: "advanced",icon: Settings,label: "Advanced Settings",- shortcutKey: "a",+ shortcutKey: "v",type: "modal",enabled: (data) => Boolean(data.externalId || data.tenantId),add: false,