-
Notifications
You must be signed in to change notification settings - Fork 14
feat: add code panel and step selection with explanation UI #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat-demo-3-dag-debug
Are you sure you want to change the base?
Conversation
|
283eb6e to
c1e9b36
Compare
51cb603 to
3f40fb5
Compare
d7fb170 to
1f7f9c7
Compare
1f7f9c7 to
c9db847
Compare
c9db847 to
a026d83
Compare
a026d83 to
9d2bf71
Compare
3f40fb5 to
bf3ad7f
Compare
9d2bf71 to
68c28db
Compare
bf3ad7f to
26ba852
Compare
68c28db to
66e1b1c
Compare
26ba852 to
e9332db
Compare
66e1b1c to
5b48d9c
Compare
5b48d9c to
045ac50
Compare
e9332db to
1a0aab0
Compare
045ac50 to
c852760
Compare
1a0aab0 to
946dd0f
Compare
Implement code visualization with syntax highlighting and interactive step exploration. New Components: - CodePanel: Shiki-highlighted flow code with clickable lines - ExplanationPanel: Shows step dependencies, inputs, and returns on click - flow-code.ts: Simplified educational code snippet with line-to-step mapping Enhanced Components: - DAGVisualization: Added click handling and selection states - DebugPanel: Auto-scroll to selected step with smooth animations - Page layout: 55/45 split, all panels synchronized via step-selected events Interactions: - Click code line or DAG node → shows explanation + scrolls debug panel - Visual states: active (executing) vs selected (clicked) - ESC or outside click dismisses explanation panel 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
c852760 to
cec2133
Compare
946dd0f to
67ad902
Compare
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx affected -t lint typecheck test --parallel -... |
❌ Failed | 14s | View ↗ |
☁️ Nx Cloud last updated this comment at 2025-11-11 14:46:57 UTC

Add Code Panel and Step Explanation Features
This PR adds a new interactive code panel and step explanation features to the pgflow demo, enhancing the educational value of the application.
Key additions:
CodePanelcomponent that displays syntax-highlighted flow code with interactive line selectionExplanationPanelcomponent that shows detailed information about selected stepsflow-code.tsfile with educational code examples and line-to-step mappingThe UI now features a 55/45 split layout with code and explanation on the left, and DAG visualization and debug panel on the right. When a user selects a step (by clicking on code, DAG node, or debug panel), the step is highlighted across all components and detailed information appears in the explanation panel.