Skip to content

chat-sidebar header + [showModelPicker] API + narrow welcome overflow fix#463

Merged
blove merged 6 commits into
mainfrom
claude/sidebar-header-and-model-picker-control
May 19, 2026
Merged

chat-sidebar header + [showModelPicker] API + narrow welcome overflow fix#463
blove merged 6 commits into
mainfrom
claude/sidebar-header-and-model-picker-control

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 19, 2026

Summary

Lib (chat)

  • `` new input `[showModelPicker]` (default `true`). When `false`, hides the auto-rendered model picker even with non-empty `modelOptions`. Documented in TSDoc — useful in cramped surfaces. `chat-sidebar` and `chat-popup` forward it.
  • `` gets a fixed panel header: title slot (``) on the left, the existing close button on the right. Replaces the standalone absolute-positioned close button. Title element shrinks with ellipsis on overflow.

Demo

  • Wire `currentThreadTitle` computed signal into the new sidebar title slot.
  • Pass `[showModelPicker]="false"` in popup-mode and sidebar-mode (cramped widths).
  • Fix welcome-suggestions chip overflow in narrow popup: featured chip now `flex: 1 1 0; min-width: 0` so it shrinks with ellipsis; "More prompts" dropdown gets `flex: 0 0 auto` so it stays its natural size.

Thread title source (FYI)

Python graph's `_slice_title()` normalizes the first user message and saves it to `thread.metadata.title` on the first run. See `examples/chat/python/src/graph.py:55-81`. The demo's threads service surfaces it via `threads()`; the new `currentThreadTitle` signal reads the active thread.

@ngaf/* 0.0.42.

Test plan

  • `pnpm nx test chat` — green
  • `pnpm nx test examples-chat-angular` — 21 tests pass
  • Local chrome-mcp: sidebar panel header renders with title "say hi briefly" + close button (position: static, inside the flex header row); model picker hidden in both sidebar and popup panels; welcome chip in popup width 174 + dropdown 134, no overlap
  • Canonical demo redeploys on demo.threadplane.ai

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment May 19, 2026 4:43pm

Request Review

@blove blove merged commit 1847d77 into main May 19, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant