Created detailed markdown plans for all items in todo.md: 1. 01-playwright-scaffolding.md - Base Playwright infrastructure 2. 02-magnitude-tests-comprehensive.md - Complete test coverage 3. 03-stream-ai-to-deepgram-tts.md - TTS latency optimization 4. 04-fix-galaxy-node-clicking.md - Galaxy navigation bugs 5. 05-dark-light-mode-theme.md - Dark/light mode with dynamic favicons 6. 06-fix-double-border-desktop.md - UI polish 7. 07-delete-backup-files.md - Code cleanup 8. 08-ai-transition-to-edit.md - Intelligent node creation flow 9. 09-umap-minimum-nodes-analysis.md - Technical analysis Each plan includes: - Detailed problem analysis - Proposed solutions with code examples - Manual Playwright MCP testing strategy - Magnitude test specifications - Implementation steps - Success criteria Ready to implement in sequence. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
79 lines
1.7 KiB
Markdown
79 lines
1.7 KiB
Markdown
# Plan: Delete Backup/Old Page Files
|
|
|
|
**Priority:** LOW - Code cleanup
|
|
**Dependencies:** None
|
|
**Affects:** Code maintenance, repository cleanliness
|
|
|
|
## Overview
|
|
|
|
Remove all backup and old page.tsx files that are no longer needed. These files clutter the codebase and can cause confusion.
|
|
|
|
## Files to Delete
|
|
|
|
Need to search for:
|
|
- `*.backup.*` files
|
|
- `*.old.*` files
|
|
- `*-old.*` files
|
|
- Files with "backup" in the name
|
|
- Commented-out old implementations
|
|
|
|
## Search Strategy
|
|
|
|
```bash
|
|
# Find all backup files
|
|
find . -name "*.backup.*" -o -name "*.old.*" -o -name "*-old.*"
|
|
|
|
# Find files with "backup" in name
|
|
find . -iname "*backup*"
|
|
|
|
# Check git status for renamed files
|
|
git status | grep -i backup
|
|
```
|
|
|
|
## Implementation Steps
|
|
|
|
1. **Search for backup files**
|
|
```bash
|
|
find app -name "*.backup*" -o -name "*.old*"
|
|
find components -name "*.backup*" -o -name "*.old*"
|
|
find lib -name "*.backup*" -o -name "*.old*"
|
|
```
|
|
|
|
2. **Verify files are not imported anywhere**
|
|
```bash
|
|
# For each found file, check if it's imported
|
|
grep -r "import.*from.*filename" .
|
|
```
|
|
|
|
3. **Delete files**
|
|
```bash
|
|
git rm app/chat/page.tsx.backup
|
|
# ... repeat for each file
|
|
```
|
|
|
|
4. **Check for commented-out code**
|
|
- Review recent commits for large commented blocks
|
|
- Remove if no longer needed
|
|
|
|
5. **Commit deletion**
|
|
```bash
|
|
git commit -m "chore: Remove backup and old files"
|
|
git push origin development
|
|
```
|
|
|
|
## Success Criteria
|
|
|
|
- ✅ No `.backup` files in codebase
|
|
- ✅ No `.old` files in codebase
|
|
- ✅ No files with "backup" in name
|
|
- ✅ Code still builds successfully
|
|
- ✅ All tests still pass
|
|
|
|
## Files to Delete
|
|
|
|
(Will be determined during search step)
|
|
|
|
Example:
|
|
1. `app/chat/page.tsx.backup`
|
|
2. Any other discovered backup files
|