Skip to content

Commit d8034f0

Browse files
committed
fix: ERD UI 개선
1 parent 0292695 commit d8034f0

3 files changed

Lines changed: 916 additions & 308 deletions

File tree

src/app/pages/ChatPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ export function ChatPage() {
463463
: selectedCustomChannel?.label
464464
?? selectedChannelMeta?.label
465465
?? selectedChannel.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
466+
const selectedRepositoryName = repositories.find((repo) => repo.id === selectedRepository)?.name ?? '전체 리포지토리';
466467

467468
useEffect(() => {
468469
if (!isMainExpanded) return;
@@ -1578,7 +1579,7 @@ export function ChatPage() {
15781579
) : selectedChannel === 'api-spec' ? (
15791580
<APISpecPage embedded />
15801581
) : selectedChannel === 'erd' ? (
1581-
<ERDPage embedded />
1582+
<ERDPage embedded repositoryId={selectedRepository} repositoryName={selectedRepositoryName} />
15821583
) : selectedChannel === 'docs' ? (
15831584
<DocsPage embedded />
15841585
) : selectedChannel === 'general' || customChannels.some(ch => ch.id === selectedChannel) ? (

0 commit comments

Comments
 (0)