feat : update
CI / Verify (push) Successful in 1m14s
CI / Build immutable images and deploy (push) Successful in 4m51s

This commit is contained in:
2026-09-06 17:41:16 +07:00 Unverified
parent fcf6a2c187
commit 770c60c4a2
10 changed files with 91 additions and 17 deletions
+5 -2
View File
@@ -49,6 +49,9 @@ export default async function StructuredEditorPage({
const editorSection = fixedSection
? page as (typeof sections)[number]
: "extra" as const;
const sectionTitle = extraSection?.title
?? guide.sections.find((section) => section.slug === page)?.title
?? page;
const [catalog, content] = await Promise.all([
getActiveCatalog(),
getAdminGuideContent(guide.slug),
@@ -77,9 +80,9 @@ export default async function StructuredEditorPage({
<div className="min-w-0">
<p className="text-sm text-muted-foreground">{guide.name}</p>
<h1 className="whitespace-nowrap font-heading text-3xl font-semibold">
{extraSection?.title ?? guide.sections.find((section) => section.slug === page)?.title ?? page}
{sectionTitle}
</h1>
<EditorPresence guideId={guide.id} />
<EditorPresence guideId={guide.id} section={sectionTitle} />
</div>
</header>
<GuideSectionNav
+1 -1
View File
@@ -47,7 +47,7 @@ export default async function GuideOverviewPage({ params }: { params: Promise<{
<div className="min-w-0 flex-1">
<p className="text-sm text-muted-foreground">เลือกส่วนที่ต้องการแก้ไข</p>
<h1 className="font-heading text-3xl font-semibold">{guide.name}</h1>
<EditorPresence guideId={guide.id} />
<EditorPresence guideId={guide.id} section="Overview" />
</div>
<GuideVisibilityControl guideId={guide.id} guideName={guide.name} isPublic={guide.isPublic} />
</header>