feat(phase5): docs channels - CRUD, wiki sidebar, markdown editor
This commit is contained in:
@@ -11,6 +11,7 @@ import { ThreadListPanel } from "./ThreadListPanel.tsx";
|
||||
import { ThreadPanel } from "./ThreadPanel.tsx";
|
||||
import { ForumView } from "./ForumView.tsx";
|
||||
import { CalendarView } from "./CalendarView.tsx";
|
||||
import { DocsView } from "./DocsView.tsx";
|
||||
import { UserProfileModal } from "./UserProfileModal.tsx";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
import remarkGfm from "remark-gfm";
|
||||
@@ -248,7 +249,9 @@ export function ChatArea() {
|
||||
? `■ ${activeChannel.name}`
|
||||
: activeChannel.type === 'calendar'
|
||||
? `○ ${activeChannel.name}`
|
||||
: `# ${activeChannel.name}`
|
||||
: activeChannel.type === 'docs'
|
||||
? `☰ ${activeChannel.name}`
|
||||
: `# ${activeChannel.name}`
|
||||
: activeChannelId
|
||||
? `#${activeChannelId}`
|
||||
: "[NO CHANNEL SELECTED]"}
|
||||
@@ -326,6 +329,8 @@ export function ChatArea() {
|
||||
<ForumView channelId={activeChannelId} channelName={activeChannel.name} onOpenThread={(t) => setActiveThread(t)} />
|
||||
) : activeChannel && activeChannel.type === 'calendar' && activeChannelId ? (
|
||||
<CalendarView channelId={activeChannelId} channelName={activeChannel.name} />
|
||||
) : activeChannel && activeChannel.type === 'docs' && activeChannelId ? (
|
||||
<DocsView channelId={activeChannelId} channelName={activeChannel.name} />
|
||||
) : (
|
||||
<>
|
||||
<div className="flex-1 flex flex-col min-w-0">
|
||||
|
||||
Reference in New Issue
Block a user