Skip to main content

Dashboard Migration Guide

Activity Timeline → Context Intelligence Platform Integration

Migration Date: November 26, 2025 Status: ✅ Complete


Overview

The Activity Dashboard has been successfully migrated from /MEMORY-CONTEXT/dashboard/ in the parent repository to /frontend/ in the coditect-dev-context submodule.

Why We Moved It

Before:

  • Dashboard lived in parent repo (coditect-rollout-master/MEMORY-CONTEXT/dashboard/)
  • Not version-controlled separately
  • Poor semantic grouping (dashboard not with context management backend)
  • Difficult to deploy independently

After:

  • Dashboard now in submodule (coditect-dev-context/frontend/)
  • Independent version control
  • Semantic correctness (frontend + backend together)
  • Can deploy separately
  • Clear ownership

What Was Moved

Files Migrated (42 files, 22,201 lines)

frontend/
├── public/
│ ├── index.html # Main dashboard page
│ ├── css/
│ │ ├── main.css # Global styles
│ │ ├── layout.css # Grid layout
│ │ ├── components.css # Component styles
│ │ └── print.css # PDF export
│ ├── js/
│ │ ├── navigation.js # URL routing (3,153 lines)
│ │ ├── data-loader.js # JSON loading (500 lines)
│ │ ├── timeline-enhanced.js # Timeline view (2,420 lines)
│ │ ├── db-search-v2.js # Search functionality (714 lines)
│ │ ├── config.js # Configuration (NEW)
│ │ └── lib/
│ │ └── sql-wasm.min.js # SQLite WASM
│ ├── assets/
│ │ ├── favicon/ # Favicons (7 files)
│ │ └── logo/ # Brand assets (4 files)
│ └── data -> ../../../../../MEMORY-CONTEXT/dashboard/data # Symlink

├── scripts/
│ ├── build-search-database.py # Data generator
│ ├── build-search-database-v2.py
│ ├── build-search-database-v3.py
│ └── build-search-database-v4.py

├── config.json # Dashboard configuration (NEW)
├── README.md # Dashboard documentation
└── *.md # Additional docs (5 files)

Data Access Strategy

Symlink: frontend/public/data -> ../../../../../MEMORY-CONTEXT/dashboard/data

This symlink allows the dashboard to access data from the parent repository while being in the submodule. The data remains in the parent repo because:

  • Data changes frequently (every session)
  • Submodule should contain code, not data
  • Multiple projects may access same data

New Locations

Old Location (DO NOT USE)

/Users/halcasteel/PROJECTS/coditect-rollout-master/MEMORY-CONTEXT/dashboard/

Status: ⚠️ Backed up to dashboard-backup-20251126-131913.tar.gz (22MB)

New Location (USE THIS)

/Users/halcasteel/PROJECTS/coditect-rollout-master/submodules/dev/coditect-dev-context/frontend/public/

How to Access

Starting the Dashboard

New Method:

cd /Users/halcasteel/PROJECTS/coditect-rollout-master/submodules/dev/coditect-dev-context/frontend/public
python3 -m http.server 9000

Then open: http://localhost:9000

Alternative Ports:

# If port 9000 is busy
python3 -m http.server 8080 # http://localhost:8080
python3 -m http.server 3000 # http://localhost:3000

Create an alias in your shell (~/.zshrc or ~/.bashrc):

# Add to ~/.zshrc
alias dashboard='cd /Users/halcasteel/PROJECTS/coditect-rollout-master/submodules/dev/coditect-dev-context/frontend/public && python3 -m http.server 9000'

Then just run:

dashboard
# Opens at http://localhost:9000

Features Verified

✅ All features tested and working from new location:

FeatureStatusTest URL
Overview✅ Workinghttp://localhost:9000#overview
Timeline✅ Workinghttp://localhost:9000#timeline
Topics✅ Workinghttp://localhost:9000#topics
Files✅ Workinghttp://localhost:9000#files
Sessions✅ Workinghttp://localhost:9000#checkpoints
Commands✅ Workinghttp://localhost:9000#commands
Data Loading✅ Working135 JSON files accessible
Navigation✅ WorkingURL hash routing
Search✅ WorkingKeyword + semantic search

Data Statistics

What the Dashboard Shows:

  • 10,206 conversation messages
  • 124 development sessions
  • 4,060 file references
  • 1,732 commands executed
  • 14 topic clusters

Data Size:

  • Total: 21 MB (135 files)
  • Messages index: 5.2 MB
  • Paginated content: 103 pages
  • SQLite search DB: 8 MB

Configuration

Config Files (NEW)

1. frontend/config.json

{
"dataPath": "./data/",
"apiEndpoint": "http://localhost:8000/api/v1",
"version": "1.0.0"
}

2. frontend/public/js/config.js

const CONFIG = {
dataPath: './data/', // Symlink to parent repo
apiEndpoint: 'http://localhost:8000/api/v1',
version: '1.0.0'
};

Git Workflow

Submodule Changes

Working in the submodule:

cd submodules/dev/coditect-dev-context
git checkout -b feature/dashboard-improvements
# Make changes to frontend/
git add frontend/
git commit -m "feat: Dashboard improvements"
git push origin feature/dashboard-improvements

Updating parent repo pointer:

cd /Users/halcasteel/PROJECTS/coditect-rollout-master
git add submodules/dev/coditect-dev-context
git commit -m "Update coditect-dev-context: Dashboard improvements"
git push

Backup Information

Backup Location

/Users/halcasteel/PROJECTS/coditect-rollout-master/MEMORY-CONTEXT/dashboard-backup-20251126-131913.tar.gz

Size: 22 MB Contents: Complete dashboard as of November 26, 2025 13:19 UTC

Restore from Backup (if needed)

cd /Users/halcasteel/PROJECTS/coditect-rollout-master/MEMORY-CONTEXT
tar -xzf dashboard-backup-20251126-131913.tar.gz
# This restores to dashboard/ directory

Migration Checklist

Phase 1: Backup & Prepare

  • Backup created (dashboard-backup-20251126-131913.tar.gz)
  • Migration branch created (feature/add-frontend-dashboard)
  • Dashboard verified working before migration

Phase 2: Move Dashboard to Submodule

  • Created frontend/public/ and frontend/scripts/
  • Copied web assets (HTML, CSS, JS)
  • Copied Python scripts
  • Copied documentation
  • Created data symlink

Phase 3: Update Configuration

  • Created config.json
  • Created js/config.js
  • Tested dashboard from new location
  • Verified data symlink works

Phase 4: Commit & Push

  • Committed in submodule (42 files, 22,201 insertions)
  • Pushed to remote (feature/add-frontend-dashboard)
  • Merged to main
  • Updated parent repo pointer
  • Pushed parent repo

Phase 5: Documentation Update

  • Created dashboard-migration-guide.md (this file)
  • Updated README.md with frontend/ section
  • Update parent repo CLAUDE.md with new paths (TODO)

Troubleshooting

Dashboard Not Loading

Symptom: Blank page or 404 errors

Solution:

# Verify symlink exists
ls -la frontend/public/data

# Should show: data -> ../../../../../MEMORY-CONTEXT/dashboard/data

# If broken, recreate:
cd frontend/public
rm data # Remove broken symlink
ln -s ../../../../../MEMORY-CONTEXT/dashboard/data data

Data Not Found

Symptom: "Failed to load data" errors in browser console

Solution:

# Verify data directory exists in parent repo
ls /Users/halcasteel/PROJECTS/coditect-rollout-master/MEMORY-CONTEXT/dashboard/data

# Verify HTTP server is running from frontend/public/
pwd # Should be: .../coditect-dev-context/frontend/public

Port Already in Use

Symptom: "Address already in use" error

Solution:

# Try different port
python3 -m http.server 8080

# Or kill existing server
lsof -ti:9000 | xargs kill -9

Next Steps

Immediate (Week 1)

  • Dashboard accessible from new location
  • All features verified working
  • Documentation updated
  • Update parent repo CLAUDE.md

Short-term (Month 1)

  • Remove old dashboard from parent repo (after 30-day safety period)
  • Add CI/CD for frontend (linting, testing)
  • Create production build process
  • Add frontend testing (Cypress or Playwright)

Long-term (Quarter 1)

  • Integrate with backend API (replace static JSON)
  • Add WebSocket real-time updates
  • Implement user authentication
  • Deploy frontend independently (Vercel/Netlify)

Support

Issues: https://github.com/coditect-ai/coditect-dev-context/issues Questions: hal@az1.ai


Migration Completed: November 26, 2025 Verified By: Claude Code (AI Assistant) Status: ✅ Production Ready