Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
99246ef
Implement animations for special case algorithms (Issue #66)
sachinlala Sep 20, 2025
bcbb6be
Fix wiggle-sort demo function structure
sachinlala Sep 20, 2025
8a3926c
Add comprehensive testing infrastructure and documentation
sachinlala Sep 20, 2025
67ebf79
Fix JavaScript syntax errors in test-algorithm.html
sachinlala Sep 20, 2025
79c5045
Add wiggle sort visualization and fix animation display
sachinlala Sep 20, 2025
9b6b3d2
Fix wiggle-sort config export names for universal loader compatibility
sachinlala Sep 20, 2025
b9569a2
Fix JavaScript template literal syntax errors in wiggle-sort config
sachinlala Sep 20, 2025
bdbfd60
Add sourceCode section to wiggle-sort config for proper GitHub links
sachinlala Sep 20, 2025
8e7db6e
Clean up duplicate and excessive comments in core algorithm files
sachinlala Sep 20, 2025
c724070
feat(dutch-flag-sort): Add complete visualization and animation support
sachinlala Sep 20, 2025
178e8d2
feat(bucket-sort): Add complete animation visualization and enhanced …
sachinlala Sep 20, 2025
0e21011
fix(bucket-sort): Eliminate CLS in bucket visualization
sachinlala Sep 20, 2025
20f71a6
refactor(bucket-sort): Replace bucket containers with color-coded ani…
sachinlala Sep 20, 2025
4f040af
fix(bucket-sort): Remove confusing bucket text indicators
sachinlala Sep 20, 2025
72c6f78
fix(bucket-sort): Resolve JavaScript syntax errors
sachinlala Sep 20, 2025
4465896
fix(bucket-sort): Remove emojis to resolve parsing errors
sachinlala Sep 20, 2025
0727144
fix(bucket-sort): Fix orphaned code block causing syntax error
sachinlala Sep 20, 2025
44d9a28
fix(bucket-sort): Fix bucket color guide CSS selectors for dual class…
sachinlala Sep 20, 2025
8a2e495
fix(bucket-sort): Use inline styles for bucket color guide to ensure …
sachinlala Sep 20, 2025
daa1f13
fix(bucket-sort): Consolidate color arrays to ensure legend matches a…
sachinlala Sep 20, 2025
f40f7ea
fix(bucket-sort): Remove opacity modifiers to match legend colors exa…
sachinlala Sep 20, 2025
25e0aa2
Complete radix sort animated visualization with educational enhancements
sachinlala Sep 20, 2025
659ba23
Redesign radix sort visualization with clean color-coded approach
sachinlala Sep 20, 2025
ab9d959
Fix radix sort color guide display - ensure color boxes are visible
sachinlala Sep 20, 2025
8d3450e
Redesign radix sort color guide with compact horizontal circular layout
sachinlala Sep 20, 2025
c9c3710
Fix radix color circles horizontal layout
sachinlala Sep 20, 2025
f470e39
Fix radix color circles layout - use simple inline-block approach
sachinlala Sep 20, 2025
c5aa0f4
Create awesome animated counting sort visualization with comprehensiv…
sachinlala Sep 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions algorithms-js/AGENTS.md β†’ AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,22 @@ algorithms-js/
## πŸš€ Development Workflow

### **Testing Approach**
- **Algorithm Testing Lab**: Use `http://localhost:8080/test-algorithm.html` for comprehensive testing
- Test algorithm functionality first (core logic)
- Verify UI/visualization works correctly
- Test step-by-step animations and tracking
- Check responsive design on multiple screen sizes
- Test dark/light mode switching
- Validate in browser console (no 404s or errors)
- Use external browser (not terminal web viewers) for JavaScript execution

### **Algorithm Testing Workflow**
1. **Dependencies**: Test if all scripts load correctly
2. **Configuration**: Verify config objects are exported properly
3. **Core Functions**: Test algorithm logic and basic functionality
4. **Step Tracking**: Verify animation step generation works
5. **Demo Simulation**: Test the full demo interface functionality
6. **Cross-browser Testing**: Test in Chrome, Firefox, Safari

### **Code Quality**
- Write clear, self-documenting code
Expand All @@ -124,6 +135,15 @@ algorithms-js/

## πŸ› Common Issues & Solutions

### **JavaScript Execution Issues**
- **Warp Terminal Browser**: Warp's built-in web rendering may not execute JavaScript properly
- **Symptom**: "You need to enable JavaScript to run this app" message
- **Solutions**:
- Use external browser (Chrome, Firefox, Safari) for testing demos
- Use the permanent test page: `http://localhost:8080/test-algorithm.html`
- Test individual components using Node.js for core functionality
- **Testing Strategy**: Always verify demos in a full browser, not just terminal web viewers

### **404 Errors**
- Often caused by missing `-core.js` files
- Ensure config files point to correct paths
Expand Down Expand Up @@ -181,6 +201,13 @@ algorithms-js/

## πŸ’‘ Tips for AI Assistants

### **Reading GitHub Issues**
- **Use curl for reading GitHub issues**: When you need to read a GitHub issue, use curl instead of gh CLI
- **Command format**: `curl -s "https://api.github.com/repos/sachinlala/SimplifyLearning/issues/ISSUE_NUMBER"`
- **Get specific fields**: `curl -s "https://api.github.com/repos/sachinlala/SimplifyLearning/issues/ISSUE_NUMBER" | jq '{title: .title, body: .body, state: .state}'`
- **List all issues**: `curl -s "https://api.github.com/repos/sachinlala/SimplifyLearning/issues"`
- This approach is more reliable than gh CLI for programmatic access

### **🚨 CRITICAL: Workflow Requirements**
- **NEVER push directly to `master` branch - use feature branches only**
- **NEVER merge PRs without explicit approval from maintainer**
Expand Down
Loading