-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Overview
Remove the freeform chat interface and related code after goal-based system is functional.
Part of
Memoryloop v2 Pivot - Branch 014-goal-based-learning
Deprecation Strategy
- Build goal-based system first (Issues [v2] Database Schema: Learning Goals and Skill Trees #220-226)
- Migrate any existing chat-derived flashcards to goals
- Remove chat UI and routes
- Clean up database (optional: archive old data)
Files to Remove
Pages
app/(protected)/chat/page.tsxapp/(protected)/chat/loading.tsxapp/(protected)/chat/error.tsx
Components
components/chat/ChatInterface.tsxcomponents/chat/MessageList.tsxcomponents/chat/MessageInput.tsxcomponents/chat/GenerateFlashcardsButton.tsxcomponents/chat/FallbackNotice.tsxcomponents/chat/Message.tsx
API Routes
app/api/chat/conversations/route.tsapp/api/chat/conversations/[conversationId]/messages/route.ts
Database Operations
lib/db/operations/conversations.tslib/db/operations/messages.tslib/db/operations/messages-lancedb.ts
LLM Utilities
lib/claude/rag.tslib/claude/context.ts
Database Cleanup
- Option A: Drop conversations/messages tables
- Option B: Archive to backup tables
- Recommended: Archive for 90 days, then drop
Migration Script
Create script to:
- Find flashcards created from conversations
- Create a "Legacy Cards" goal for each user
- Link orphaned flashcards to this goal
Acceptance Criteria
- All goal-based features working first
- Migration script handles existing flashcards
- Chat routes return 410 Gone or redirect
- No broken links in UI
- Database cleaned up
Dependencies
- Issue [v2] Goal Creation and Skill Tree Generation #221 (Goal Creation) - MUST be complete first
- Issue [v2] Scoped Card Generation for Skill Nodes #222 (Card Generation) - MUST be complete first
- Issue [v2] Update Navigation and Home Page #226 (Navigation Update)
Related Spec
See specs/014-goal-based-learning/spec.md - FR-030