Repository navigation
chore(examples): Update CPK version and bound drawer grid row so threads list scrolls internally [ENT-1051] (post-release follow-up) - #5828
Merged
Conversation
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
MikeRyanDev
previously approved these changes
Jul 7, 2026
MikeRyanDev
left a comment
Contributor
There was a problem hiding this comment.
Reviewed current draft head 89d3954. The example layout changes look sound: the reserved drawer column follows --cpk-drawer-reserved-width, grid rows are bounded so the drawer list can scroll internally, and the mobile grid override still collapses to a single column. CI is green. This approval is for the current CSS/layout diff; the PR body still correctly tracks the release/dependency-bump work before it should be marked ready.
BenTaylorDev
added a commit
that referenced
this pull request
Jul 7, 2026
…ign (ENT-1051) (#5823) Redesigns the shared `<copilotkit-threads-drawer>` element (`@copilotkit/web-components`) to the new Figma UX, keeping the React, Vue, and Angular wrappers in lockstep. Pure-VIEW change — no `@copilotkit/core`, runtime, or `useThreads` changes. **Ticket:** [ENT-1051](https://linear.app/copilotkit/issue/ENT-1051) · **Figma:** [Thread Drawer](https://www.figma.com/design/feSsBJw1qCfLp0JNnOurrJ/CopilotKit-Intelligence?node-id=723-78) · **Spec:** [Notion](https://app.notion.com/p/3953aa381852819ab464dae3894e7f18) ## What changed - **Header** → right-aligned icon row. On desktop it holds the **collapse** toggle (sidebar glyph); on mobile the **close** toggle. No title text, no "+ New" pill. Optional `slot="header"` preserved (empty by default; the toggle right-aligns after it). - **New Conversation** row (plus-square + label) below the header — keeps `part="new-thread-button"` + the `new-thread` event. - **Recent Conversations** heading + **funnel** filter icon → Active/All popover. Preserves `_filter` + `filter-change` and `part="filter-active"`/`filter-all"`. - **Per-row kebab menu** (⋮) holding Archive/Unarchive + Delete — preserves those events + parts. An open kebab now shields the rest of the list from hover so it reads as a single surface (see Review fixes). - **Delete confirm** is a native `<dialog>` opened with `showModal()` (browser top layer), centered over the drawer's visible box — it can't paint under other UI or drop below the fold. jsdom falls back to the `open` attribute. - **Archived rows** render italic/muted inline in the "All" view. - **Desktop collapse** → `collapsed` / `collapsible` props (default **expanded**) + a `collapse-change` event / `CollapseChangeDetail`. Collapsing sets `--cpk-drawer-reserved-width: 0` on the document root so the host grid reclaims the column with no hydration flicker. - **Unified floating cluster** (Figma "closed" mockup) = `[sidebar-toggle] [+ New Conversation]`, shown in both the mobile-closed and desktop-collapsed states. Mobile stays an off-canvas modal (backdrop / Escape / focus-trap). ## Compatibility - All existing `::part()` names and events are preserved; only **additive** parts are introduced: `collapse-toggle`, `close-toggle`, `section-heading`, `filter-toggle`, `row-menu`, `row-menu-popover`, `launcher-cluster`, `launcher`, `launcher-new-thread`, plus `confirm-dialog`/`confirm-cancel`/`confirm-delete`/`backdrop`. One additive event: `collapse-change`. - Additive wrapper props: `recentLabel` (all frameworks); `collapsible`/`collapsed` + `onCollapseChange` (React) / equivalents in Vue & Angular. - **Usage note (now in the docs):** the drawer and `<CopilotChat>` must share a chat-configuration provider so the drawer drives the chat — `CopilotChatConfigurationProvider` (React/Vue) / `provideCopilotChatConfiguration()` (Angular). The v2 `CopilotKitProvider` does not provide that context on its own. - Verified: **no example `::part()` theme changes required** — every example themes the drawer via inherited `--cpk-drawer-*` custom properties. ## Descoped / changed during development (re: earlier review) - **Client-side search was removed at the designer's request.** There is **no** search UI, `search` event, `search-toggle`/`search-input` part, or `onSearch` wrapper prop in the shipped element. Any remaining "search" mention in older comments is stale. - **Desktop collapse was briefly backed out, then re-restored** per the designer (commit `8bfd245305`). The shipped element **has** collapse (`collapsed` is a live public property — it was not removed). ## Review fixes (commit `0b4f6ca392`) Addressing @MikeRyanDev and @marthakelly: - **`core/threads.ts`** — a full-list refetch (filter-change / retry) now clears `fetchMoreError` on both `listRequested` and `listSucceeded`, so the inline "couldn't load more — retry" banner no longer survives onto a fresh list. - **Escape while confirming delete** — the host keydown handler now consumes Escape while a confirmation is open; previously the bubbled keydown fell through and closed the whole mobile drawer along with the confirmation. - **Open kebab menu shields the list** — `.list.menu-open .row:not(.menu-open)` gets `pointer-events: none`, so other rows no longer reveal their kebab / paint a host `::part(row):hover` background around or behind the open popover. Click-away dismissal is preserved via the existing document pointerdown handler. (Verified live in the langgraph-js example.) - **Docs token** — dropped the removed `--cpk-drawer-rail-width` from the web-components README. ## Testing All suites run via `nx`, green through each package's lefthook pre-commit gate: - `@copilotkit/web-components` — **92** drawer element tests + `:build` green. Covers header collapse/close toggles, New Conversation, funnel filter switch, `recentLabel`, kebab open + archive/delete routing, confirm-dialog gating + native cancel + **backdrop-click dismiss**, **Escape-while-confirming (no drawer close)**, **open-menu row shield**, collapse/cluster/column-reclaim, archived-italic, preserved parts/events, `header` slot + `label` aria-labels. - `@copilotkit/core` — **553** tests incl. the new `clears a lingering fetchMoreError when a full list refetch succeeds`. - `@copilotkit/react-core` — CopilotThreadsDrawer suite + full package **1419** green. - `@copilotkit/vue` — **32** incl. SSR + the `collapsible` boolean-prop-default regression test. - `@copilotkit/angular` — CopilotThreadsDrawer spec **35** (incl. **scoped-chat-input focus**: prefers the ancestor `copilot-chat-view` over the document-global fallback); full package **178**. ## Follow-on - Docs (screenshot + reference/guide) on the release-gated docs PR **#5780**. - Release (`web-components` + `react-core` + `vue` + `angular`, lockstep) + CLI scaffolding bump. - Example grid/theme updates ride the release in **#5828**. - **[ENT-1080](https://linear.app/copilotkit/issue/ENT-1080)** — dedup the per-wrapper `findChatInput` / open-state fallback (marthakelly #6, deliberately deferred as a cross-package refactor). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
BenTaylorDev
force-pushed
the
ben1/ent-1051-example-grid-followup
branch
from
July 8, 2026 16:05
89d3954 to
d9ad3eb
Compare
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/bot
@copilotkit/bot-discord
@copilotkit/bot-slack
@copilotkit/bot-teams
@copilotkit/bot-telegram
@copilotkit/bot-ui
@copilotkit/bot-whatsapp
@copilotkit/core
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
BenTaylorDev
force-pushed
the
ben1/ent-1051-example-grid-followup
branch
2 times, most recently
from
July 8, 2026 17:20
5a0d600 to
aee4317
Compare
…pk-drawer-reserved-width [ENT-1051] Read grid-template-columns' first track from var(--cpk-drawer-reserved-width, 320px) so when the drawer collapses on desktop (it sets the var to 0) the reserved column collapses and the chat reclaims the space — instead of leaving an empty placeholder column. Mobile (single-column) is unchanged.
…er on desktop [ENT-1051] The floating launcher/collapsed cluster is fixed at the top-left corner. Below 1024px it always shows (already cleared via max-lg:pl-24); on desktop it appears only when the drawer is COLLAPSED. Drive the header's left padding off --cpk-drawer-reserved-width (0px when collapsed, 320px default otherwise) so the logo starts at ~6rem when collapsed and pl-6 when expanded — no overlap. No-op on current packages (var never set → stays pl-6).
…go (6rem->7rem) [ENT-1051]
…[ENT-1051] The 7px/16px launcher inset was tuned for the mobile off-canvas launcher; on desktop it leaked onto the collapsed cluster. Move it into the mobile media query so desktop-collapse uses the element's own 24px gutter default.
… match the drawer [ENT-1051] - Mobile header: max-lg:pb-0 -> pb-4 so chat content clears the fixed launcher/ toggle strip instead of butting right under it (no boundary). - Chat/App ModeToggle: rounded-full -> rounded-[4px] container + rounded-[2px] buttons, matching the drawer's 4px radius cap so the header controls are visually consistent.
…her left matches right gutter, logo/toggle on one line [ENT-1051] - ModeToggle: move left (right-[72px]) so the top-right inspector FAB no longer covers the App segment; grow to 46px (lg:min-h) + center on the logo line (top-6) to match the launcher; keep the 4px corners. - Launcher: left gutter -> 16px to match the right-side controls' inset. - Logo: pt-7 so it centers on the same line as the launcher + toggle.
- ModeToggle: one style on both breakpoints (top-4/right-4 = 16px gutter, 46px min-height, 4px corners); symmetric p-1.5 + fixed 20px button leading so the selected pill has an even gap on all four sides (was tight L/R vs T/B). - Launcher: uniform 16px gutter (top + left) on both breakpoints so it mirrors the toggle; drop the mobile-only 7px override. - Logo: centered on the launcher/toggle middle line (pt-[23px]); wordmark padding normalized so its height matches on both breakpoints. - Inspector FAB: sits beneath the toggle, gap = the 16px top gutter (one rule, no media query, since the toggle is identical across breakpoints). Net: launcher, logo, toggle share center-y; launcher + toggle are both 46px; the FAB tucks under the toggle with a matching gap; the selected toggle pill is evenly inset.
The 1.62.3 release publishes the CopilotThreadsDrawer redesign (web-components + react-core wrapper) and the stateless /suggest feature. Bump the 15 integration examples that consume the drawer from 1.62.2 -> 1.62.3 (package.json + lockfiles) so they pick up the released packages alongside this branch's example CSS. Validated: langgraph-js runs on the published 1.62.3 (no local links) — the redesigned drawer renders (New Conversation, Recent Conversations, filter funnel, desktop collapse toggle, per-row kebab), threads are licensed, and a real agent message round-trips.
BenTaylorDev
marked this pull request as ready for review
July 8, 2026 17:23
BenTaylorDev
force-pushed
the
ben1/ent-1051-example-grid-followup
branch
from
July 8, 2026 17:23
aee4317 to
654389a
Compare
BenTaylorDev
requested review from
jpr5,
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
July 8, 2026 17:23
MikeRyanDev
approved these changes
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Applies the threads-drawer grid fix to all 15 integration examples: adds
grid-template-rows: minmax(0, 1fr)to each example's.layoutso the drawer's threads list scrolls internally (pinned header + New Conversation) instead of the whole page growing to content height.Without this,
height: 100dvhon a grid whose rows aren't bounded lets the row size to content, so the list can't scroll within the drawer and the delete-confirm dialog centers against a content-tall root.Why this is a separate PR
These are example changes that consume published
@copilotkit/*packages. They were pulled out of the drawer-redesign PR (#5823) so that PR stays scoped to the packages. This one lands after the redesigned drawer is released.⛔ Blocked / TODO before marking ready
@copilotkit/*dependency to the new published versions in this PR (currently only the CSS is here)Testing
🤖 Generated with Claude Code