Skip to content

feat(panels) AIAssistPanel#609

Open
ibgreen wants to merge 3 commits into
masterfrom
ib/ai-widget
Open

feat(panels) AIAssistPanel#609
ibgreen wants to merge 3 commits into
masterfrom
ib/ai-widget

Conversation

@ibgreen
Copy link
Copy Markdown
Collaborator

@ibgreen ibgreen commented Apr 26, 2026

Summary

Adds AIAssistPanel to @deck.gl-community/panels, based on the deck.gl AI assistant widget PR. The new panel is deck-independent and can be used through existing panel containers or deck-facing panel widgets.

Changes

  • Added AIAssistPanel, AIAssistPanelProps, and AIAssistPanelConfig
  • Integrated OpenAssistant UI through an internal React root mounted from a Preact panel wrapper
  • Added model config handling with onConfigChange
  • Added OpenAssistant/React package dependencies and refreshed yarn.lock
  • Added docs, sidebar entry, whats-new note, and panel docs example highlight
  • Added browser tests for defaults, config panel wiring, theme behavior, and event propagation

Validation

  • yarn
  • yarn test --project browser modules/panels/src/widget-panels/ai-assist-panel.test.tsx
  • npx tsc -p modules/panels/tsconfig.json --noEmit
  • yarn lint

Note: yarn lint passes but still reports existing warnings in unrelated modules.

@github-actions
Copy link
Copy Markdown

Coverage

Stmts: 26.25% ▼-0.05% | Branch: 19.62% ▼-0.05% | Funcs: 23.67% ▼-0.11% | Lines: 26.24% ▼-0.05%

Test Files 70 passed (70)

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3c6626b217

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

import type {WidgetPanel, WidgetPanelTheme} from './widget-containers';
import type {JSX} from 'preact';

import '@openassistant/ui/dist/index.css';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid top-level CSS import in AIAssistPanel module

Importing @openassistant/ui/dist/index.css at module scope makes the new AI panel file side-effectful, and modules/panels/src/index.ts now re-exports that file so any root import of @deck.gl-community/panels will eagerly evaluate it. This breaks non-bundled Node/SSR consumers (including the CJS entrypoint) that do not have a CSS loader, even if they never use AIAssistPanel, because module initialization fails on the .css import.

Useful? React with 👍 / 👎.

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