ID: fbe2795d-545 Priority: 85 Type: one_shot Status: open Quest: 16 (Demo Showcase)
The /demo page currently shows "0: Experiments" prominently in the stats grid because the experiments table is empty. This looks hollow to demo viewers. Also shows "Experiments (0) →" CTA button. Replace with Notebooks count (232) which is a meaningful non-zero stat.
notebook_count query added to demo route handlerexperiment_count = 0 on demo page stat grid (api.py:32877)Verification evidence:
git show origin/main:api.py | grep -n "demo_notebook_count" returned:demo_notebook_count = db.execute("SELECT COUNT(*) FROM notebooks WHERE status='active'").fetchone()[0]<div class="stat-value">{demo_notebook_count}</div><div class="stat-label">Notebooks</div><a href="/notebooks" class="cta-btn cta-yellow">Notebooks ({demo_notebook_count}) →</a>
Commit: 6f9645c32 (on task branches, merged via squash to origin/main)
{
"_reset_note": "This task was reset after a database incident on 2026-04-17.\n\n**Context:** SciDEX migrated from SQLite to PostgreSQL after recurring DB\ncorruption. Some work done during Apr 16-17 may have been lost.\n\n**Before starting work:**\n1. Check if the task's goal is ALREADY satisfied (run the relevant checks)\n2. Check `git log --all --grep=task:YOUR_TASK_ID` for prior commits\n3. If complete, verify and mark done. If partial, continue. If not done, proceed.\n\n**DB change:** SciDEX now uses PostgreSQL. `get_db()` auto-detects via\nSCIDEX_DB_BACKEND=postgres env var.",
"_reset_at": "2026-04-18T06:29:22.046013+00:00",
"_reset_from_status": "done"
}