Skip to content

docs: add a React starter for plugin-owned console UI - #3234

Merged
i386 merged 1 commit into
mainfrom
docs/react-plugin-ui
Nov 29, 2026
Merged

i386 merged 1 commit into
mainfrom
docs/react-plugin-ui

Conversation

@i386

@i386 i386 commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

What plugin authors can do

Build a React page and a Configuration → Plugins section as part of a standalone plugin release. The starter uses the existing archive installer and the same manifest as the plain JavaScript exemplar. It includes a pinned Vite build, public host types, a React mount and cleanup example, and instructions for composing the installed archive.

The docs point to Capsules for a shipped request-inspector contribution. MeshLLM owns its request log and diagnostic report. Capsules owns its evidence lookup, link, and page. This follows up on the ownership question raised in #3218.

Companion reference and registration test: Mesh-LLM/capsules-plugin#429.

Validation

  • Typechecked and built the starter from its frozen pnpm lockfile. Imported the resulting browser ES module without npm imports at runtime.
  • Built the native exemplar against current main and matched its generated manifest to the checked-in fixture.
  • Installed an exemplar archive on released MeshLLM 0.80.0. In Chromium, mounted the page and Configuration section, saved retention through the console, and reloaded the result. With the projection disabled, the bundle returned 404 and the MCP status tool still responded.
  • Built the public site with just website-build and verified the rendered starter link.

Summary by CodeRabbit

  • New Features
    • Added a React and Vite starter for building plugin interfaces, with examples of pages, settings, and actions.
    • Expanded guidance for packaging, installing, and verifying plugin UI bundles, including security and client-side limitations.
    • Updated plugin development documentation with links to the starter and web UI example.

Signed-off-by: James Dumay <james@generalinference.xyz>
@i386
i386 requested a review from ndizazzo as a code owner November 29, 2026 04:23
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Adds a React and Vite starter for the existing plugin UI exemplar. Documents how to build and package its bundle, and updates the exemplar’s run and verification instructions. The starter registers an overview page and page-actions section and reads the host’s visible retention setting.

Changes: React web UI exemplar

Layer / File(s) Summary
React starter implementation and build
mesh/docs/plugins/exemplars/web-ui/react/package.json, tsconfig.json, vite.config.ts, register-mesh-plugin-ui.tsx, .gitignore
Adds a React UI with an overview page and page-actions section. The UI reads the visible retention setting, displays it, and supports sample-note and navigation interactions. The package includes type-check and build scripts, and Vite outputs an ES module.
Starter usage and exemplar workflow
mesh/docs/plugins/exemplars/web-ui/react/README.md, mesh/docs/plugins/exemplars/web-ui/README.md, mesh/docs/plugins/README.md, mesh/website/src/docs/pages/developing-plugins.md
Documents React starter setup, host integration, and packaging through PLUGIN_UI_ENTRY. Updates the exemplar’s local serving and configuration verification steps, and links to the starter from plugin documentation.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Possibly related issues

  • Mesh-LLM/mesh-llm#1965 — The changes update plugin documentation and describe the host-facing UI contribution boundary, which is related to the issue’s documentation-placement objective.
Merge Risk: Minimal · up to 6cc6a · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "docs: add a React starter for plugin-owned console UI" matches the main change. The PR adds a React and Vite starter under mesh/docs/plugins/exemplars/web-ui/react, with a page and a Config…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "docs: add a React starter for plugin-owned console UI" matches the main change. The PR adds a React and Vite starter under mesh/docs/plugins/exemplars/web-ui/react, with a page and a Configuration → Plugins settings section, plus docs updates that link to it. The title is short, specific, and describes the primary change. The conventional "docs:" prefix fits, although the change also adds package.json, tsconfig, and a Vite config for the starter.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f407fd18-cdbb-4b45-aa79-57c11eae0f2e
Commits

Reviewing files that changed from the base of the PR and between c036157 and 6cc6a86.

Files ignored due to path filters: 1

  • mesh/docs/plugins/exemplars/web-ui/react/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 9

  • mesh/docs/plugins/README.md
  • mesh/docs/plugins/exemplars/web-ui/README.md
  • mesh/docs/plugins/exemplars/web-ui/react/.gitignore
  • mesh/docs/plugins/exemplars/web-ui/react/README.md
  • mesh/docs/plugins/exemplars/web-ui/react/package.json
  • mesh/docs/plugins/exemplars/web-ui/react/register-mesh-plugin-ui.tsx
  • mesh/docs/plugins/exemplars/web-ui/react/tsconfig.json
  • mesh/docs/plugins/exemplars/web-ui/react/vite.config.ts
  • mesh/website/src/docs/pages/developing-plugins.md

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

@i386 i386 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewed the React starter against the public plugin UI contract. A frozen pnpm install, typecheck, Vite build, and import of the generated ES module passed. The page and settings section register the IDs in the existing manifest and each mount returns a React cleanup handle. The two pinned Capsules source references resolve. GitHub disables approval from the PR author account.

@i386
i386 merged commit 111fe3d into main Nov 29, 2026
18 of 44 checks passed
@i386
i386 deleted the docs/react-plugin-ui branch November 29, 2026 10:42
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