update reserved keys in six stages renderer

This commit is contained in:
ShivaniKhaire 2026-09-29 12:54:29 +05:30
parent 7d862b6834
commit f2ef4bb25e
2 changed files with 5 additions and 11 deletions

View File

@ -8,14 +8,7 @@ import { Hero } from "./shared/Hero";
import { ImageGallery } from "./shared/ImageGallery";
import { SectionCard } from "./shared/SectionCard";
const RESERVED_KEYS = new Set([
"code",
"name",
"sort_order",
"content_count",
"content_label",
"link",
]);
const RESERVED_KEYS = new Set(["code"]);
/**
* Renderer-independent detail fallback.

View File

@ -8,8 +8,9 @@ import { ContentValue } from "../shared/ContentValue";
import { Hero } from "../shared/Hero";
import { SectionCard } from "../shared/SectionCard";
const EXCLUDED_KEYS = new Set([
"code",
const RESERVED_KEYS = new Set(["code"]);
const CATALOG_METADATA_KEYS = new Set([
"name",
"title",
"sort_order",
@ -39,7 +40,7 @@ export function SixStagesDetailRenderer({
<Hero title={title} subtitle={content.summary ?? undefined} />
{Object.entries(data)
.filter(([key]) => !EXCLUDED_KEYS.has(key))
.filter(([key]) => !RESERVED_KEYS.has(key) && !CATALOG_METADATA_KEYS.has(key))
.map(([key, value]) => (
<SectionCard key={key} title={humanizeKey(key)}>
<ContentValue value={value} />