Show full dashboard room content

This commit is contained in:
ejclaw
2026-04-28 19:53:00 +09:00
parent f7f4888f92
commit 38ba5b87fa
5 changed files with 57 additions and 28 deletions

View File

@@ -208,4 +208,42 @@ describe('RoomCardV2', () => {
);
expect(html).toContain('bar-chart-label-fit-playwright.png');
});
it('renders expanded watcher messages without truncating content', () => {
const watcherTail = 'WATCHER_TAIL_VISIBLE';
const html = renderToStaticMarkup(
createElement(RoomCardV2, {
activity: activity({
messages: [
{
id: 'watcher-1',
sender: 'bot-1',
senderName: 'reviewer',
content: `[Watcher] ${'검증 로그 '.repeat(40)} ${watcherTail}`,
timestamp: '2026-04-28T02:00:00.000Z',
isFromMe: false,
isBotMessage: true,
sourceKind: 'bot',
},
],
}),
activityLoading: false,
busy: false,
draft: '',
entry,
expanded: true,
inboxItems: [],
locale: 'ko',
onDraftChange: () => {},
onSendMessage: () => {},
onToggle: () => {},
pinned: true,
t,
...formatters,
}),
);
expect(html).toContain('class="room-watcher-fold"');
expect(html).toContain(watcherTail);
});
});

View File

@@ -870,7 +870,7 @@ function RoomWatcherFold({
</strong>
<time>{formatDate(message.timestamp, locale)}</time>
</header>
<ParsedBody text={message.content} truncate={200} />
<ParsedBody text={message.content} />
</li>
))}
</ul>

View File

@@ -249,6 +249,7 @@ body:has(.view-stack.view-rooms) .error-card {
background: var(--panel);
overflow-y: auto;
overflow-x: hidden;
scroll-padding-bottom: 96px;
}
.view-stack.view-rooms .rooms-detail .room-card-v2.is-pinned {
@@ -290,7 +291,7 @@ body:has(.view-stack.view-rooms) .error-card {
}
.view-stack.view-rooms .rooms-detail .room-thread-section {
padding: 4px 12px 4px 0;
padding: 4px 12px 96px 0;
}
.view-stack.view-rooms .rooms-detail .room-card-head {