feat(app): plugin-driven renderer + markdown plugin (#220) - #378
Merged
Conversation
…220) Second PR in the plugin system epic. Wires the plugin registry into chart-renderer.tsx and migrates the markdown widget as a proof of concept. Architecture: - New `app/src/plugins/` directory holds the global registry singleton and individual chart plugins - `chart-renderer.tsx` now checks `pluginRegistry.get(type)` FIRST; the existing switch statement remains as a safety fallback for charts not yet migrated - Plugin component receives a uniform props shape: `{ data, settings, stylingRules, paramValues, colorScales, onClick, connectionId, widgetId, resultId, query, autoFit, clickableColumns, colorThresholds }` Markdown migration (first plugin): - New `app/src/plugins/markdown.tsx` defines the markdown plugin - Content-only widget with no query, no click action, no styling - Component adapter reads `settings.content` and renders MarkdownWidget - The legacy switch case is kept as fallback (dead code after registration) Tests added: - 6 markdown plugin tests (capabilities, transform, component render) - 3 global registry tests (registration on import, idempotency, unknown types) All 1852 app tests pass (+9 new). Related: #220, epic #221 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review WalkthroughIntroduces a plugin registry system for chart rendering. The Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Client / User
participant Renderer as ChartRendererInner
participant Registry as PluginRegistry
participant Plugin as MarkdownPlugin
participant Widget as MarkdownWidget
Client->>Renderer: Request chart render (type="markdown")
Renderer->>Registry: pluginRegistry.get("markdown")
Registry-->>Renderer: Return plugin
Renderer->>Plugin: Call plugin.component(props)
Plugin->>Widget: Render MarkdownWidget
Widget-->>Client: Display markdown content
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
alfredo1996
changed the base branch from
feat/chart-plugin-registry
to
release/1.1
April 5, 2026 22:03
|
This was referenced Apr 6, 2026
This was referenced Apr 21, 2026
alfredo1996
added a commit
that referenced
this pull request
May 10, 2026
feat(app): plugin-driven renderer + markdown plugin (#220)
4 tasks
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.


Summary
Second PR in the plugin system epic. Wires the registry into `chart-renderer.tsx` and migrates markdown as proof of concept.
Stacked on: PR #377 (plugin registry primitives). Merge that first.
Architecture
Markdown migration (proof of concept)
Tests
Test plan
Related: #220, epic #221
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
New Features
Tests