diff --git a/gui/rules.md b/gui/rules.md new file mode 100644 index 000000000..1c097ae04 --- /dev/null +++ b/gui/rules.md @@ -0,0 +1 @@ +- Whenever adding links in the `gui` that direct to `hub.continue.dev`, you should use an onClick handler that calls `ideMessenger.request("controlPlane/openUrl", { path, orgSlug: undefined });` instead of directly linking to the URL with an `href`. diff --git a/gui/src/components/modelSelection/platform/FreeTrialButton.tsx b/gui/src/components/modelSelection/platform/FreeTrialButton.tsx index f36fd6376..005a9ce82 100644 --- a/gui/src/components/modelSelection/platform/FreeTrialButton.tsx +++ b/gui/src/components/modelSelection/platform/FreeTrialButton.tsx @@ -111,14 +111,17 @@ export default function FreeTrialButton({ allows you to use a variety of frontier models for a flat monthly fee. Read more about usage limits and what models are included{" "} - { + await ideMessenger.request("controlPlane/openUrl", { + path: "/pricing", + orgSlug: undefined, + }); + }} + className="cursor-pointer text-blue-400 underline hover:text-blue-300" > here - + .