mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-20 19:22:37 +02:00
add alert warning for configure coding agents
This commit is contained in:
@@ -28,6 +28,7 @@ import { createGeneralFormSchema } from "@app/lib/privateResourceForm";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { useTranslations } from "next-intl";
|
||||
import Link from "next/link";
|
||||
import { ExternalLink } from "lucide-react";
|
||||
import { useActionState, useMemo } from "react";
|
||||
import { useForm } from "react-hook-form";
|
||||
import { z } from "zod";
|
||||
@@ -70,17 +71,26 @@ export default function PrivateResourceGeneralPage() {
|
||||
</SettingsSectionTitle>
|
||||
<SettingsSectionDescription>
|
||||
{t("privateResourceGeneralDescription")}
|
||||
{siteResource.mode === "inference" ? (
|
||||
<>
|
||||
{" "}
|
||||
{t.rich(
|
||||
"resourceGeneralAiClientConfigDescription",
|
||||
{
|
||||
configLink: (chunks) => (
|
||||
<Link
|
||||
href={`/${siteResource.orgId}?openResource=${encodeURIComponent(siteResource.niceId)}&openResourceQuery=${encodeURIComponent(siteResource.name)}`}
|
||||
className="text-primary hover:underline inline-flex items-center gap-1"
|
||||
>
|
||||
{chunks}
|
||||
<ExternalLink className="size-3.5 shrink-0" />
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
)}
|
||||
</>
|
||||
) : null}
|
||||
</SettingsSectionDescription>
|
||||
{siteResource.mode === "inference" ? (
|
||||
<p className="text-sm pt-1">
|
||||
<Link
|
||||
href={`/${siteResource.orgId}?openResource=${encodeURIComponent(siteResource.niceId)}&openResourceQuery=${encodeURIComponent(siteResource.name)}`}
|
||||
className="text-primary hover:underline"
|
||||
>
|
||||
{t("resourceGeneralAiClientConfigLink")}
|
||||
</Link>
|
||||
</p>
|
||||
) : null}
|
||||
</SettingsSectionHeader>
|
||||
|
||||
<SettingsSectionBody>
|
||||
|
||||
@@ -50,6 +50,7 @@ import { useOrgContext } from "@app/hooks/useOrgContext";
|
||||
import { orgQueries } from "@app/lib/queries";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import Link from "next/link";
|
||||
import { ExternalLink } from "lucide-react";
|
||||
import { build } from "@server/build";
|
||||
import { TierFeature } from "@server/lib/billing/tierMatrix";
|
||||
import { usePaidStatus } from "@app/hooks/usePaidStatus";
|
||||
@@ -255,17 +256,26 @@ export default function GeneralForm() {
|
||||
</SettingsSectionTitle>
|
||||
<SettingsSectionDescription>
|
||||
{t("resourceGeneralDescription")}
|
||||
{resource.mode === "inference" ? (
|
||||
<>
|
||||
{" "}
|
||||
{t.rich(
|
||||
"resourceGeneralAiClientConfigDescription",
|
||||
{
|
||||
configLink: (chunks) => (
|
||||
<Link
|
||||
href={`/${resource.orgId}?openResource=${encodeURIComponent(resource.niceId)}&openResourceQuery=${encodeURIComponent(resource.name)}`}
|
||||
className="text-primary hover:underline inline-flex items-center gap-1"
|
||||
>
|
||||
{chunks}
|
||||
<ExternalLink className="size-3.5 shrink-0" />
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
)}
|
||||
</>
|
||||
) : null}
|
||||
</SettingsSectionDescription>
|
||||
{resource.mode === "inference" ? (
|
||||
<p className="text-sm pt-1">
|
||||
<Link
|
||||
href={`/${resource.orgId}?openResource=${encodeURIComponent(resource.niceId)}&openResourceQuery=${encodeURIComponent(resource.name)}`}
|
||||
className="text-primary hover:underline"
|
||||
>
|
||||
{t("resourceGeneralAiClientConfigLink")}
|
||||
</Link>
|
||||
</p>
|
||||
) : null}
|
||||
</SettingsSectionHeader>
|
||||
|
||||
<SettingsSectionBody>
|
||||
|
||||
Reference in New Issue
Block a user