Skip to content

Commit 4ee9e0e

Browse files
committed
fix(manifest-ui): add missing post-detail block definition
The Post Detail link in the sidebar was 404ing because the block was registered in registry.json but missing from the categories array in the dynamic page handler. Added block definition with fullscreen and inline variants.
1 parent 36475cd commit 4ee9e0e

File tree

1 file changed

+108
-0
lines changed
  • packages/manifest-ui/app/blocks/[category]/[block]

1 file changed

+108
-0
lines changed

packages/manifest-ui/app/blocks/[category]/[block]/page.tsx

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,114 @@ const categories: Category[] = [
943943
actions={{
944944
onReadMore: (post) => console.log("Read more:", post.title)
945945
}}
946+
/>`
947+
}
948+
]
949+
},
950+
{
951+
id: 'post-detail',
952+
name: 'Post Detail',
953+
description:
954+
'Full post view with Medium-style typography, cover image, author info, content, and related posts.',
955+
registryName: 'post-detail',
956+
layouts: ['inline', 'fullscreen'],
957+
actionCount: 2,
958+
variants: [
959+
{
960+
id: 'fullscreen',
961+
name: 'Fullscreen',
962+
component: (
963+
<PostDetail appearance={{ displayMode: 'fullscreen' }} />
964+
),
965+
usageCode: `<PostDetail
966+
data={{
967+
post: {
968+
title: "Getting Started with Agentic UI Components",
969+
excerpt: "Learn how to build conversational interfaces with our comprehensive component library designed for AI-powered applications.",
970+
coverImage: "https://images.unsplash.com/photo-1633356122544-f134324a6cee?w=800",
971+
author: {
972+
name: "Sarah Chen",
973+
avatar: "https://i.pravatar.cc/150?u=sarah"
974+
},
975+
publishedAt: "2024-01-15",
976+
readTime: "5 min read",
977+
tags: ["Tutorial", "Components", "AI", "React", "TypeScript"],
978+
category: "Tutorial"
979+
},
980+
content: \`
981+
<p>Building modern AI-powered applications requires a new approach to UI design. Traditional web components don't always translate well to conversational interfaces, where context and flow are paramount.</p>
982+
983+
<p>Our Agentic UI component library provides a collection of purpose-built components that work seamlessly within chat interfaces. From payment flows to product displays, each component is designed with the unique constraints of conversational UIs in mind.</p>
984+
985+
<h2>Key Features</h2>
986+
<p>Each component supports three display modes: inline (within the chat flow), fullscreen (for complex interactions), and picture-in-picture (persistent visibility). This flexibility allows you to create rich, interactive experiences without breaking the conversational flow.</p>
987+
988+
<p>Components are designed mobile-first and touch-friendly, ensuring a great experience across all devices. They automatically adapt to light and dark themes, and integrate seamlessly with MCP tools for backend communication.</p>
989+
\`,
990+
relatedPosts: [
991+
{
992+
title: "Designing for Conversational Interfaces",
993+
excerpt: "Best practices for creating intuitive UI components that work within chat environments.",
994+
coverImage: "https://images.unsplash.com/photo-1559028012-481c04fa702d?w=800",
995+
author: { name: "Alex Rivera", avatar: "https://i.pravatar.cc/150?u=alex" },
996+
publishedAt: "2024-01-12",
997+
readTime: "8 min read",
998+
tags: ["Design", "UX"],
999+
category: "Design",
1000+
url: "https://example.com/posts/designing-conversational-interfaces"
1001+
},
1002+
{
1003+
title: "MCP Integration Patterns",
1004+
excerpt: "How to leverage Model Context Protocol for seamless backend communication.",
1005+
coverImage: "https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=800",
1006+
author: { name: "Jordan Kim", avatar: "https://i.pravatar.cc/150?u=jordan" },
1007+
publishedAt: "2024-01-10",
1008+
readTime: "12 min read",
1009+
tags: ["MCP", "Backend"],
1010+
category: "Development",
1011+
url: "https://example.com/posts/mcp-integration-patterns"
1012+
}
1013+
]
1014+
}}
1015+
appearance={{
1016+
showCover: true,
1017+
showAuthor: true,
1018+
displayMode: "fullscreen"
1019+
}}
1020+
actions={{
1021+
onBack: () => console.log("Back clicked"),
1022+
onReadRelated: (post) => console.log("Read related:", post.title)
1023+
}}
1024+
/>`
1025+
},
1026+
{
1027+
id: 'inline',
1028+
name: 'Inline',
1029+
component: <PostDetail appearance={{ displayMode: 'inline' }} />,
1030+
usageCode: `<PostDetail
1031+
data={{
1032+
post: {
1033+
title: "Getting Started with Agentic UI Components",
1034+
excerpt: "Learn how to build conversational interfaces with our comprehensive component library.",
1035+
coverImage: "https://images.unsplash.com/photo-1633356122544-f134324a6cee?w=800",
1036+
author: {
1037+
name: "Sarah Chen",
1038+
avatar: "https://i.pravatar.cc/150?u=sarah"
1039+
},
1040+
publishedAt: "2024-01-15",
1041+
readTime: "5 min read",
1042+
tags: ["Tutorial", "Components"],
1043+
category: "Tutorial"
1044+
},
1045+
content: "<p>Building modern AI-powered applications requires a new approach...</p>"
1046+
}}
1047+
appearance={{
1048+
showCover: true,
1049+
displayMode: "inline"
1050+
}}
1051+
actions={{
1052+
onReadMore: () => console.log("Read more clicked")
1053+
}}
9461054
/>`
9471055
}
9481056
]

0 commit comments

Comments
 (0)