feat: add Ruby script preview panel to Ruby tab More menu#294
Merged
takaokouji merged 6 commits intodevelopfrom Mar 13, 2026
Merged
feat: add Ruby script preview panel to Ruby tab More menu#294takaokouji merged 6 commits intodevelopfrom
takaokouji merged 6 commits intodevelopfrom
Conversation
Add a utility function that generates the final Ruby code (with require statements and class wrapping) for a single target using RubyGenerator. Refs #293 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Cards-style draggable panel with shrink/expand, close, and clipboard copy button. Uses pointer-events:none overlay for transparent background. Refs #293 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
🚀 Preview deployed: https://smalruby.jp/smalruby3-editor/feature/ruby-script-preview/ |
Add menu item to Ruby toolbar More menu, handler in ruby-tab.jsx with validate-then-generate flow, and Japanese locale translations. Refs #293 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tests cover opening the panel, clipboard copy, shrink/expand toggle, and closing the panel. Refs #293 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use highlight.js with Ruby language support for lightweight syntax highlighting. Add GitHub-light-like color theme for hljs tokens. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
github-actions bot
pushed a commit
that referenced
this pull request
Mar 13, 2026
…script-preview feat: add Ruby script preview panel to Ruby tab More menu
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
Ruby tab のスリードットメニューから「ルビースクリプトを確認」を選択すると、現在のスプライト/ステージの最終的な Ruby コード(require 文や class 定義を含む)をカードスタイルのパネルで表示する機能を追加する。
Closes #293
Implementation Steps
generatePreviewCode) — TDDTest Coverage
generatePreviewCode(null target, sprite v2, stage v2, sprite v1)🤖 Generated with Claude Code