diff --git a/portal/src/components/SnipLibrary.tsx b/portal/src/components/SnipLibrary.tsx index 2bc42bda..ce0db0ed 100644 --- a/portal/src/components/SnipLibrary.tsx +++ b/portal/src/components/SnipLibrary.tsx @@ -539,7 +539,7 @@ function SnipDetail({ )} - {snip.pairWith.length > 0 && ( + {(snip.pairWith.length > 0 || (snip.variantRequires?.length ?? 0) > 0) && (
)} diff --git a/portal/src/lib/snips.ts b/portal/src/lib/snips.ts index b11d2f7f..7f6f4850 100644 --- a/portal/src/lib/snips.ts +++ b/portal/src/lib/snips.ts @@ -31,6 +31,7 @@ export type SnipRecord = { | { state: "none" | "not-applicable" }; highlights: string[]; pairWith: SnipPairRef[]; + variantRequires?: { group: string; families: string[] }[]; variables: SnipVariable[]; jvdServiceMapping: string[]; body: string;