Dont show the cert box oss and dont check license

This commit is contained in:
Owen
2026-04-29 11:28:17 -07:00
parent b39a2bcfb1
commit b8ca0499af
2 changed files with 15 additions and 6 deletions

View File

@@ -165,7 +165,6 @@ authenticated.get(
authenticated.get( authenticated.get(
"/org/:orgId/certificate/:domainId/:domain", "/org/:orgId/certificate/:domainId/:domain",
verifyValidLicense,
verifyOrgAccess, verifyOrgAccess,
verifyCertificateAccess, verifyCertificateAccess,
verifyUserHasAction(ActionsEnum.getCertificate), verifyUserHasAction(ActionsEnum.getCertificate),

View File

@@ -1,7 +1,15 @@
"use client"; "use client";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { ShieldCheck, ShieldOff, Eye, EyeOff, CheckCircle2, XCircle, Clock } from "lucide-react"; import {
ShieldCheck,
ShieldOff,
Eye,
EyeOff,
CheckCircle2,
XCircle,
Clock
} from "lucide-react";
import { useResourceContext } from "@app/hooks/useResourceContext"; import { useResourceContext } from "@app/hooks/useResourceContext";
import CopyToClipboard from "@app/components/CopyToClipboard"; import CopyToClipboard from "@app/components/CopyToClipboard";
import { import {
@@ -13,7 +21,7 @@ import {
import { useTranslations } from "next-intl"; import { useTranslations } from "next-intl";
import CertificateStatus from "@app/components/CertificateStatus"; import CertificateStatus from "@app/components/CertificateStatus";
import { toUnicode } from "punycode"; import { toUnicode } from "punycode";
import { useEnvContext } from "@app/hooks/useEnvContext"; import { build } from "@server/build";
type ResourceInfoBoxType = {}; type ResourceInfoBoxType = {};
@@ -28,7 +36,7 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) {
<Alert> <Alert>
<AlertDescription> <AlertDescription>
{/* 4 cols because of the certs */} {/* 4 cols because of the certs */}
<InfoSections cols={resource.http ? 6 : 5}> <InfoSections cols={resource.http && build != "oss" ? 6 : 5}>
<InfoSection> <InfoSection>
<InfoSectionTitle>{t("identifier")}</InfoSectionTitle> <InfoSectionTitle>{t("identifier")}</InfoSectionTitle>
<InfoSectionContent> <InfoSectionContent>
@@ -137,7 +145,8 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) {
{/* Certificate Status Column */} {/* Certificate Status Column */}
{resource.http && {resource.http &&
resource.domainId && resource.domainId &&
resource.fullDomain && ( resource.fullDomain &&
build != "oss" && (
<InfoSection> <InfoSection>
<InfoSectionTitle> <InfoSectionTitle>
{t("certificateStatus", { {t("certificateStatus", {
@@ -177,7 +186,8 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) {
<span>{t("resourcesTableUnhealthy")}</span> <span>{t("resourcesTableUnhealthy")}</span>
</div> </div>
)} )}
{(!resource.health || resource.health === "unknown") && ( {(!resource.health ||
resource.health === "unknown") && (
<div className="flex items-center space-x-2 text-muted-foreground"> <div className="flex items-center space-x-2 text-muted-foreground">
<Clock className="w-4 h-4 flex-shrink-0" /> <Clock className="w-4 h-4 flex-shrink-0" />
<span>{t("resourcesTableUnknown")}</span> <span>{t("resourcesTableUnknown")}</span>