# 🚀 DOING: Dashboard Links SQLite Migration

## 📌 Context
- **Idea:** Migrate dashboard links from JSON file to SQLite database.
- **Status:** 🚧 In Progress

## 🎯 Goal
Migrate `dashboard_links` to use the standard local `canifa_ai_dump.sqlite` DB instead of a JSON file, and ensure CRUD endpoints work via the `get_pooled_connection_compat()` wrapper.

## 🛠 Impact & Files Touched
| File | Symbol | Change | Blast Radius |
|------|--------|--------|--------------|
| `backend/api/common/dashboard_route.py` | `_load_links`, `_save_links` | MODIFY | 1 API Route |

**Risk:** Low

## 📋 Execution Checklist

### Phase 1: SQLite Integration (~5m)
- [x] Task 1.1: Create table `dashboard_links` in SQLite via `get_pooled_connection_compat()`
- [x] Task 1.2: Update GET `/api/dashboard/links` to read from DB
- [x] Task 1.3: Update POST/PUT/DELETE/PATCH to write to DB

### Phase 2: Testing (~2m)
- [x] Task 2.1: Write to DB via `curl -X POST`
- [x] Task 2.2: Read from DB via `curl -X GET`

## ✅ Completion Gate
- [x] All tasks [x] | [x] Sub-Doings resolved | [x] Smoke test passed | [x] Trade-offs confirmed

---
_Started: 2026-04-28 | Updated: 2026-04-28_
