Skip to content

Commit 496db8e

Browse files
authored
fix(cockpit-examples): use CSS sidebar widths
Fix cockpit render/chat example width props and add regression coverage for render example latent bug classes.
1 parent f2c5526 commit 496db8e

20 files changed

Lines changed: 245 additions & 16 deletions

File tree

cockpit/chat/input/angular/src/app/input.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { injectAgent } from '@threadplane/langgraph';
3333
ExampleChatLayoutComponent,
3434
],
3535
template: `
36-
<example-chat-layout sidebarWidth="w-72">
36+
<example-chat-layout sidebarWidth="18rem">
3737
<div main class="flex-1 flex flex-col min-w-0">
3838
<header class="px-4 py-3 border-b" style="border-color: var(--tplane-chat-separator); background: var(--tplane-chat-bg);">
3939
<h1 class="text-sm font-semibold" style="color: var(--tplane-chat-text);">Chat Input Demo</h1>

cockpit/chat/interrupts/angular/src/app/interrupts.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const SUGGESTIONS = [
5050
ExampleChatLayoutComponent,
5151
],
5252
template: `
53-
<example-chat-layout sidebarWidth="w-80">
53+
<example-chat-layout sidebarWidth="20rem">
5454
<chat main [agent]="agent" class="flex-1 min-w-0">
5555
<div chatWelcomeSuggestions>
5656
@for (s of suggestions; track s.value) {

cockpit/chat/messages/angular/src/app/messages.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import { MESSAGES_AGENT, type MessagesState } from './agent-ref';
3939
ExampleChatLayoutComponent,
4040
],
4141
template: `
42-
<example-chat-layout sidebarWidth="w-72">
42+
<example-chat-layout sidebarWidth="18rem">
4343
<div main class="flex-1 flex flex-col min-w-0">
4444
<header class="px-4 py-3 border-b" style="border-color: var(--tplane-chat-separator); background: var(--tplane-chat-bg);">
4545
<h1 class="text-sm font-semibold" style="color: var(--tplane-chat-text);">Chat Messages Primitives</h1>

cockpit/chat/subagents/angular/src/app/subagents.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const SUGGESTIONS = [
3535
ExampleChatLayoutComponent,
3636
],
3737
template: `
38-
<example-chat-layout sidebarWidth="w-80">
38+
<example-chat-layout sidebarWidth="20rem">
3939
<chat main [agent]="agent" class="flex-1 min-w-0">
4040
<div chatWelcomeSuggestions>
4141
@for (s of suggestions; track s.value) {

cockpit/chat/theming/angular/src/app/theming.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const THEMES: Record<string, Record<string, string>> = {
5050
standalone: true,
5151
imports: [ChatComponent, ExampleChatLayoutComponent, TitleCasePipe],
5252
template: `
53-
<example-chat-layout sidebarWidth="w-72">
53+
<example-chat-layout sidebarWidth="18rem">
5454
<chat main [agent]="agent" class="flex-1 min-w-0" />
5555
<div sidebar class="p-4 space-y-4" style="background: var(--tplane-chat-bg); color: var(--tplane-chat-text);">
5656
<h3 class="text-xs font-semibold uppercase tracking-wide"

cockpit/chat/threads/angular/src/app/threads.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const activeThreadIdState = signal<string | null>(null);
4444
}),
4545
],
4646
template: `
47-
<example-chat-layout sidebarPosition="left" sidebarWidth="w-64">
47+
<example-chat-layout sidebarPosition="left" sidebarWidth="16rem">
4848
<chat main
4949
[agent]="agent"
5050
[threads]="threadsSvc.threads()"

cockpit/chat/timeline/angular/src/app/timeline.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { injectAgent } from '@threadplane/langgraph';
1414
standalone: true,
1515
imports: [ChatComponent, ChatTimelineSliderComponent, ExampleChatLayoutComponent],
1616
template: `
17-
<example-chat-layout sidebarWidth="w-80">
17+
<example-chat-layout sidebarWidth="20rem">
1818
<chat main [agent]="agent" class="flex-1 min-w-0" />
1919
<div sidebar class="p-4 space-y-4" style="background: var(--tplane-chat-bg); color: var(--tplane-chat-text);">
2020
<h3 class="text-xs font-semibold uppercase tracking-wide"

cockpit/chat/tool-calls/angular/src/app/tool-calls.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const SUGGESTIONS = [
3535
ExampleChatLayoutComponent,
3636
],
3737
template: `
38-
<example-chat-layout sidebarWidth="w-80">
38+
<example-chat-layout sidebarWidth="20rem">
3939
<chat main [agent]="agent" class="flex-1 min-w-0">
4040
<div chatWelcomeSuggestions>
4141
@for (s of suggestions; track s.value) {

cockpit/deep-agents/filesystem/angular/src/app/filesystem.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface FileOperation {
3131
standalone: true,
3232
imports: [ChatComponent, ExampleChatLayoutComponent],
3333
template: `
34-
<example-chat-layout sidebarWidth="w-72">
34+
<example-chat-layout sidebarWidth="18rem">
3535
<chat main [agent]="agent" [views]="ui" [store]="uiStore" class="flex-1 min-w-0" />
3636
<div sidebar class="p-4 space-y-2" style="background: var(--tplane-chat-bg); color: var(--tplane-chat-text);">
3737
<h3 class="text-xs font-semibold uppercase tracking-wide"

cockpit/deep-agents/memory/angular/src/app/memory.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { injectAgent } from '@threadplane/langgraph';
2020
standalone: true,
2121
imports: [ChatComponent, ExampleChatLayoutComponent],
2222
template: `
23-
<example-chat-layout sidebarWidth="w-72">
23+
<example-chat-layout sidebarWidth="18rem">
2424
<chat main [agent]="agent" class="flex-1 min-w-0" />
2525
<div sidebar class="p-4 space-y-2" style="background: var(--tplane-chat-bg); color: var(--tplane-chat-text);">
2626
<h3 class="text-xs font-semibold uppercase tracking-wide"

0 commit comments

Comments
 (0)