Skip to content

Release v0.2.0: React stack, WebMCP setting - #3

Merged
roble merged 6 commits into
mainfrom
dev-2026-11-30
Nov 30, 2026
Merged

roble merged 6 commits into
mainfrom
dev-2026-11-30

Conversation

@roble

@roble roble commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor
  • React stack. The chat page and its components on React, mirroring Vue (names, test ids, behaviour). Vue and React were compared screen by screen; the differences found are fixed (model menu, Markdown styles, code languages, phone sheet focus).
  • WebMCP is a beta setting, off by default. An admin turns it on in the AI chat settings.
  • Fix: one Escape closes the chat list on a phone.
  • E2E coverage of the main flows (35 tests), and Storybook stories for 13 components on both stacks.

Checks: PHPUnit 113, lib tests 36, E2E 35/35 on Vue and on React, stories 44/44 on each stack, Pint clean.

Predicted version: v0.2.0. Merge with a merge commit.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added React support alongside Vue, with chat, conversation history, message streaming, code and image previews, source links, and usage indicators.
    • Added an optional WebMCP beta setting. It is off by default; when enabled in a supported browser, chat tools can be offered to the browser agent.
    • Added chat-history search and management, including renaming, pinning, deleting, and loading more conversations.
    • Added speech dictation where supported and improved navigation through long conversations.
  • Documentation
    • Updated feature and configuration guidance for React support and WebMCP.

roble and others added 5 commits November 30, 2026 20:56
The chat page and its components on React, mirroring Vue's names and test
ids: Streamdown for Markdown (classes copied from vue-stream-markdown, so
replies look the same), @ai-sdk/react, the shadcn React registry's
message scroller and code block. composer.json lists both frameworks.

Shared browser code no longer imports Vue: webmcp.ts offers a listener in
place of a ref, and stored.ts keeps what the browser refuses to store in
memory. Vue's copy button keeps the label it is given.

composer.json also autoloads tests/Support for the E2E helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An admin turns it on in the AI chat settings (WebMCP (beta)). Until then the
page registers no tools and the sidebar shows no WebMCP item; the page reads
it from its `webmcp` prop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New chat's tooltip opened on focus even where it was hidden, and took the
first Escape. It now has a tooltip only when the sidebar is collapsed to
icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Asking, replies of every kind, Stop and Ask again, the chat list (rename,
pin, delete, search, Show more), history pages, scrolling, layouts and the
phone sheet, the monthly limit, and WebMCP on and off. Fresh users per test
and a test helper for seeded chats and limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thirteen components, the same stories and play functions on both stacks,
under Modules/AiChat like the other modules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

This organization's CodeRabbit subscription is cancelled. Resubscribe in Billing to continue reviews beyond the free-tier limit.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Free
  • Run ID: cda8ec41-0f62-4c2f-94f4-a4732d5a91ca
Commits

Reviewing files that changed from the base of the PR and between 7695c08 and 2e3df2d.

Files selected for processing: 3

  • README.md
  • src/Filament/Pages/AiChatSettings.php
  • tests/Feature/AdminTest.php

saucebase-dev is on CodeRabbit Free, which includes PR summaries. Ask your admin to upgrade for code reviews.

  • Ask an admin to upgrade

Open in CodeRabbit

Walkthrough

This change adds a React chat interface alongside Vue support. It adds chat rendering, session navigation, message input, and related browser storage utilities. WebMCP becomes an admin-controlled setting that gates browser-agent tool registration. Component stories, feature tests, and end-to-end tests cover the additions.

Changes: React chat and WebMCP

Layer / File(s) Summary
WebMCP setting and server prop
database/settings/*, src/Filament/Pages/AiChatSettings.php, src/Http/Controllers/AiChatController.php, src/Settings/AiChatSettings.php, tests/Feature/WebMcpSettingTest.php, README.md
Adds a default-off webmcp_enabled setting, an admin toggle, and a webmcp prop on both chat page responses. Feature tests cover the default, enabled state, and admin setting form.
WebMCP browser state and UI
resources/js/lib/webmcp.ts, resources/js/lib/webmcp.test.ts, resources/js/react/components/WebMcpMenuItem.tsx, resources/js/vue/components/WebMcpMenuItem.vue, resources/js/react/pages/Index.tsx, resources/js/vue/pages/Index.vue, resources/js/*/components/WebMcpMenuItem.stories.*, tests/e2e/tests/layout.spec.ts
The shared WebMCP module exposes offered tools through offeredTools() and onOfferedToolsChange(). Chat pages register tools only when enabled. The React and Vue menus observe offered-tool changes.
React runtime and shared UI foundations
package.json, composer.json, resources/js/react/components/ui/*, resources/js/react/hooks/*, resources/js/react/lib/highlighter.tsx, resources/js/lib/stored.ts, resources/js/lib/stored.test.ts
Adds React dependencies and UI primitives, shared local-storage operations, a React storage hook, and code-highlighting utilities.
Messages, artifacts, and rendered output
resources/js/react/components/ChatArtifact*, ChatCodeBlock*, ChatImage*, ChatMarkdown.tsx, ChatMessage*, ChatSources*, ChatSteps*, resources/js/vue/components/*.stories.ts, resources/js/vue/components/ui/code-block/CodeBlockCopyButton.vue
Adds React rendering for messages, steps, Markdown, code, images, sources, and artifact panels. Storybook stories cover these outputs in React and Vue.
Composer, dictation, and usage notices
resources/js/react/components/ChatInput*, ChatUsageBar*, resources/js/react/hooks/useDictation.ts, resources/js/vue/components/ChatInput.stories.ts, ChatInputBar.stories.ts, ChatUsageBar.stories.ts
Adds the React composer, dictation support, notice bar, and usage bar. Stories cover empty, busy, model-selection, dismissal, and message-limit states.
Chat page, session navigation, and scrolling
resources/js/react/app.tsx, resources/js/react/pages/Index.tsx, resources/js/react/components/ChatPanel*, ChatSessions*, ChatScrollButton*, resources/js/vue/components/ChatPanel.stories.ts, ChatSessions*, ChatScrollButton.stories.ts, resources/js/react/chat.css
Adds the React chat page and sidebar integration, session search and management, panel resizing, history loading, and scroll controls. Adds related Vue and React stories and chat layout styles.
End-to-end scenarios and test support
tests/Support/AiChatTestHelper.php, tests/e2e/helpers.ts, tests/e2e/tests/*
Adds helpers and end-to-end coverage for chat interactions, history loading, layout, message limits, scrolling, and session operations.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  actor Visitor
  participant ChatInput
  participant Index
  participant InertiaStreamTransport
  participant ChatServer
  Visitor->>ChatInput: Submit a question
  ChatInput->>Index: Call onSend
  Index->>InertiaStreamTransport: Send question with conversation and model data
  InertiaStreamTransport->>ChatServer: Submit chat request
  ChatServer-->>Index: Stream assistant reply
  Index-->>Visitor: Render messages and refresh chat usage
Loading
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Free
  • Run ID: 330836c1-15bf-4f1f-b1f7-21d98a557566
Commits

Reviewing files that changed from the base of the PR and between 8aeb901 and 7695c08.

Files selected for processing: 82

  • README.md
  • composer.json
  • database/settings/1000_00_00_000004_add_ai_chat_webmcp_setting.php
  • package.json
  • resources/boost/skills/saucebase-ai-chat-development/SKILL.md
  • resources/js/lib/sessions.fixture.ts
  • resources/js/lib/stored.test.ts
  • resources/js/lib/stored.ts
  • resources/js/lib/webmcp.test.ts
  • resources/js/lib/webmcp.ts
  • resources/js/react/app.tsx
  • resources/js/react/chat.css
  • resources/js/react/components/ChatArtifact.stories.tsx
  • resources/js/react/components/ChatArtifact.tsx
  • resources/js/react/components/ChatCodeBlock.stories.tsx
  • resources/js/react/components/ChatCodeBlock.tsx
  • resources/js/react/components/ChatImage.stories.tsx
  • resources/js/react/components/ChatImage.tsx
  • resources/js/react/components/ChatInput.stories.tsx
  • resources/js/react/components/ChatInput.tsx
  • resources/js/react/components/ChatInputBar.stories.tsx
  • resources/js/react/components/ChatInputBar.tsx
  • resources/js/react/components/ChatMarkdown.tsx
  • resources/js/react/components/ChatMessage.stories.tsx
  • resources/js/react/components/ChatMessage.tsx
  • resources/js/react/components/ChatPanel.stories.tsx
  • resources/js/react/components/ChatPanel.tsx
  • resources/js/react/components/ChatScrollButton.stories.tsx
  • resources/js/react/components/ChatScrollButton.tsx
  • resources/js/react/components/ChatSessions.stories.tsx
  • resources/js/react/components/ChatSessions.tsx
  • resources/js/react/components/ChatSources.stories.tsx
  • resources/js/react/components/ChatSources.tsx
  • resources/js/react/components/ChatSteps.stories.tsx
  • resources/js/react/components/ChatSteps.tsx
  • resources/js/react/components/ChatUsageBar.stories.tsx
  • resources/js/react/components/ChatUsageBar.tsx
  • resources/js/react/components/WebMcpMenuItem.stories.tsx
  • resources/js/react/components/WebMcpMenuItem.tsx
  • resources/js/react/components/artifact.ts
  • resources/js/react/components/ui/bubble.tsx
  • resources/js/react/components/ui/button.tsx
  • resources/js/react/components/ui/code-block.tsx
  • resources/js/react/components/ui/hover-card.tsx
  • resources/js/react/components/ui/message-scroller.tsx
  • resources/js/react/components/ui/message.tsx
  • resources/js/react/components/ui/spinner.tsx
  • resources/js/react/components/ui/trace.tsx
  • resources/js/react/hooks/use-highlighted-code.ts
  • resources/js/react/hooks/useDictation.ts
  • resources/js/react/hooks/useStored.ts
  • resources/js/react/lib/highlighter.tsx
  • resources/js/react/pages/Index.tsx
  • resources/js/vue/components/ChatArtifact.stories.ts
  • resources/js/vue/components/ChatCodeBlock.stories.ts
  • resources/js/vue/components/ChatImage.stories.ts
  • resources/js/vue/components/ChatInput.stories.ts
  • resources/js/vue/components/ChatInputBar.stories.ts
  • resources/js/vue/components/ChatMessage.stories.ts
  • resources/js/vue/components/ChatPanel.stories.ts
  • resources/js/vue/components/ChatScrollButton.stories.ts
  • resources/js/vue/components/ChatSessions.stories.ts
  • resources/js/vue/components/ChatSessions.vue
  • resources/js/vue/components/ChatSources.stories.ts
  • resources/js/vue/components/ChatSteps.stories.ts
  • resources/js/vue/components/ChatUsageBar.stories.ts
  • resources/js/vue/components/WebMcpMenuItem.stories.ts
  • resources/js/vue/components/WebMcpMenuItem.vue
  • resources/js/vue/components/ui/code-block/CodeBlockCopyButton.vue
  • resources/js/vue/pages/Index.vue
  • src/Filament/Pages/AiChatSettings.php
  • src/Http/Controllers/AiChatController.php
  • src/Settings/AiChatSettings.php
  • tests/Feature/WebMcpSettingTest.php
  • tests/Support/AiChatTestHelper.php
  • tests/e2e/helpers.ts
  • tests/e2e/tests/chat.spec.ts
  • tests/e2e/tests/history.spec.ts
  • tests/e2e/tests/layout.spec.ts
  • tests/e2e/tests/limits.spec.ts
  • tests/e2e/tests/scroll.spec.ts
  • tests/e2e/tests/sessions.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Models (providers, keys, models and the default), Assistant, Images and
WebMCP (beta), each with an icon and a one-line description, as the other
modules' settings pages. Plainer help texts, examples in the empty fields,
and a notice when test mode offers the demos instead of these models.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@roble
roble merged commit f0aa8d2 into main Nov 30, 2026
9 of 12 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