---
description: Testing Guide: New Workflow Buttons: Step-by-step tutorial with examples, best practices, and common patterns. Learn by doing with hands-on examples.
---
Date: 2026-01-01 Changes: Added 4 new workflow buttons to Dashboard
The VSCode extension has been compiled with the latest changes. You can now test the new features!
Location: VSCode Sidebar → Empathy Explorer → Dashboard → Workflows section
New Buttons Added:
- 🔍 Review File (
code-review) - File-level code review - 📄 Generate Docs (
doc-gen) - Documentation generation - 🚀 Release Prep (
release-prep) - Pre-release preparation - 🔐 Secure Release (
secure-release) - Security release pipeline
The Dashboard now shows these workflow buttons in a 2-column grid:
┌──────────────────────────────────────────────┐
│ Workflows (Beta) │
├──────────────────────────────────────────────┤
│ [🔍 Review File] [⭐ Run Analysis] │ ← NEW!
│ [📚 Manage Docs] [🐛 Predict Bugs] │
│ [🔒 Security] [⚡ Performance] │
│ [🧪 Generate Tests] [🏗️ Refactor] │
│ [📦 Dependencies] [🩺 Health Check] │
│ [🔍 Review PR] [📄 Gen Docs] │ ← NEW!
│ [🚀 Release Prep] [🔐 Sec Release] │ ← NEW!
└──────────────────────────────────────────────┘
Purpose: Verify the code review feature is now discoverable from UI
Steps:
- Open VSCode with a Python/TypeScript project
- Open Empathy Explorer sidebar
- Click on "Dashboard" tab
- Scroll to "Workflows (Beta)" section
- Click 🔍 Review File button
Expected Behavior:
- File picker opens
- Select a file (e.g.,
src/auth.py) - Workflow executes
- CodeReviewPanel opens in sidebar
- Findings appear with clickable file:line references
Success Criteria:
- ✅ Button appears first in workflows section
- ✅ File picker shows on click
- ✅ Review runs successfully
- ✅ Results appear in CodeReviewPanel
- ✅ Clicking finding navigates to file:line
Steps:
- Click 📄 Generate Docs button
- Folder picker should open
- Select a folder (e.g.,
./src) - Workflow executes
Expected Behavior:
- Folder picker opens (not file picker)
- Can select project root or specific folder
- Documentation generation workflow runs
- Report opens in new editor tab OR terminal
Success Criteria:
- ✅ Folder picker appears
- ✅ Workflow executes without errors
- ✅ Output is readable
Steps:
- Click 🚀 Release Prep button
- Folder picker opens
- Select project root (
.) - Workflow executes
Expected Behavior:
- Folder picker opens
- "Use Entire Project" button available
- Release preparation checklist runs
- Report shows pre-release validation results
Success Criteria:
- ✅ Folder picker with project root option
- ✅ Workflow runs on entire project
- ✅ Checklist items displayed
Steps:
- Click 🔐 Secure Release button
- Select project root
- Multi-stage security pipeline runs
Expected Behavior:
- Folder picker opens
- Security pipeline executes (may take 1-2 min)
- Each stage shows progress
- Final report shows security validation
Success Criteria:
- ✅ Pipeline runs all security checks
- ✅ Results clearly formatted
- ✅ Blocking issues highlighted
Test these to ensure no regressions:
- ⭐ Run Analysis (
pro-review) - 📚 Manage Docs (
doc-orchestrator) - 🐛 Predict Bugs (
bug-predict) - 🔒 Security Audit (
security-audit) - ⚡ Perf Audit (
perf-audit) - 🧪 Generate Tests (
test-gen) - 🏗️ Refactor Plan (
refactor-plan) - 📦 Check Deps (
dependency-check) - 🩺 Health Check (
health-check) - 🔍 Review PR (
pr-review)
Quick Regression Test:
- Click 2-3 existing buttons randomly
- Verify they still open pickers and run workflows
- No JavaScript errors in DevTools console
-
Reload VSCode Window:
- Command Palette: "Developer: Reload Window"
- Or restart VSCode entirely
-
Check Extension is Activated:
- Look for "Empathy Explorer" in sidebar
- Check Output panel for extension logs
-
Verify Compilation:
cd vscode-extension npm run compile
-
Check Python Environment:
python -m empathy_os.cli workflow list
Should show all available workflows including new ones
-
Check Workflow Registration:
python -m empathy_os.cli workflow run doc-gen --help python -m empathy_os.cli workflow run release-prep --help python -m empathy_os.cli workflow run secure-release --help
-
Check VSCode DevTools:
- Command Palette: "Developer: Toggle Developer Tools"
- Look for errors in Console tab
Issue: "Workflow not found"
- Cause: Workflow not registered in backend
- Fix: Check
src/empathy_os/workflows/__init__.pyincludes the workflow
Issue: "No input provided"
- Cause: Workflow config missing or incorrect
- Fix: Check
workflowConfigin EmpathyDashboardPanel.ts
Issue: Button does nothing when clicked
- Cause: JavaScript not compiled or cached
- Fix: Run
npm run compileand reload window
Use this to track your testing:
## Test Results - [Your Name] - [Date]
### Code Review Button
- [ ] Button appears in Dashboard
- [ ] File picker opens
- [ ] Workflow runs successfully
- [ ] Results appear in CodeReviewPanel
- [ ] Findings are clickable
- **Notes:**
### Generate Docs Button
- [ ] Button appears in Dashboard
- [ ] Folder picker opens
- [ ] Workflow runs successfully
- [ ] Output is readable
- **Notes:**
### Release Prep Button
- [ ] Button appears in Dashboard
- [ ] Folder picker opens
- [ ] Workflow runs successfully
- [ ] Checklist displayed
- **Notes:**
### Secure Release Button
- [ ] Button appears in Dashboard
- [ ] Folder picker opens
- [ ] Security pipeline runs
- [ ] Results are clear
- **Notes:**
### Regression Tests
- [ ] Existing buttons still work
- [ ] No console errors
- [ ] No visual layout issues
- **Notes:**
### Overall Assessment
- **Pass/Fail:**
- **Blocker Issues:**
- **Minor Issues:**
- **Suggestions:**- All 14 workflow buttons visible
- Icons render correctly (no broken emoji)
- 2-column grid layout maintained
- Buttons have consistent styling
- Hover states work
- All buttons clickable
- Pickers open correctly (file vs folder)
- "Use Entire Project" button appears for folder workflows
- Workflows execute without crashing
- Results display properly
- CodeReviewPanel opens for code-review
- Reports open in editor for other workflows
- Notifications appear on completion
- Workflow history records runs
- Cost tracking updates
Quick Start:
- Reload VSCode window
- Open Empathy Explorer sidebar
- Click Dashboard
- Try clicking 🔍 Review File button
- Select a file and verify results appear
Report Issues: If you find any bugs or unexpected behavior, note:
- Which button was clicked
- Error message (if any)
- Console errors (DevTools)
- Expected vs actual behavior
Good luck testing! 🎉