[Demo] Add Mol* 3D protein structure viewer to target detail pages

← All Specs

[Demo] Add Mol* 3D protein structure viewer to target detail pages

ID: dcd7455c-ee4 Priority: 96 Type: one_shot Status: open

Goal

[Demo] Add Mol* 3D protein structure viewer to target detail pages

Acceptance Criteria

☐ Concrete deliverables created
☐ Work log updated with timestamped entry

Work Log

2026-04-23T15:38:28Z — Watchdog verification

  • Root cause: stale duplicate demo task. Target-detail Mol* support had already landed on main via related target-page work, but this task remained open with a thin spec and no verification note, causing the abandonment watchdog to keep retrying it.
  • Verified current api.py target route has a PDB-preferred / AlphaFold-fallback Mol* block for /target/{target_id} (molstar-target-details, PDBeMolstarPlugin, pdb_id, and uniprot_id handling).
  • Verified database coverage: 152 targets have pdb_id values and 169 targets have uniprot_id values.
  • Ran python3 -m py_compile api.py successfully.
  • Rendered api.target_detail("target-gabra1") in-process: returned 101,762 bytes with 29 Mol*/structure markers, included PDB 6D6U, and included molstar-target-details.
  • Live curl to the running API timed out even for /; service logs showed unrelated connection-pool/cache warnings, so route verification used the worktree code and PostgreSQL directly.

Already Resolved — 2026-04-23T15:38:28Z

  • Evidence: api.target_detail("target-gabra1") renders a target detail page containing molstar-target-details, PDBeMolstarPlugin, Mol*, and PDB 6D6U; python3 -m py_compile api.py passed; PostgreSQL has 152 target rows with PDB IDs and 169 with UniProt IDs.
  • Commit: 698ed86b2d0b08da8ecfbbd596b07d4846e10306 contains the current target Mol viewer block in api.py; related verification commit 497c0770e3f11613a52926fe8f340ec17efdd4f3 documented target-page 500 and Mol viewer resolution for task 08d47950-507b-4b93-bb23-d5587b012a5f; structural data population landed via fb3f195614efbe23322da3eda207b7314338e17e.
  • Summary: Original task is complete on main; no duplicate code change is needed.

Tasks using this spec (1)
[Demo] Add Mol* 3D protein structure viewer to target detail
Demo done P96
File: dcd7455c_ee4_spec.md
Modified: 2026-04-25 23:40
Size: 2.1 KB