Skip to content

feat(pharma): scientific drug discovery job page - #150

Merged
Winter-Soren merged 2 commits into
mainfrom
feat/pharma-job-redesign
Nov 14, 2026
Merged

Winter-Soren merged 2 commits into
mainfrom
feat/pharma-job-redesign

Conversation

@Winter-Soren

@Winter-Soren Winter-Soren commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

What

Redesigns the drug discovery job page (/pharma/jobs/[jobId]) as a lab report. Frontend only; no backend or API changes. The branch carries two commits: the earlier layout redesign (d2b5a482f, which never made it into #149) and the scientific rebuild on top.

Page

  • Run header, pipeline trace, six readouts: min ΔG, ligands scored, iterations, VQE solves, mesh peers, wall time.
  • Figure 1: receptor (NGL), lead ligand, ΔG convergence with 95% CI error bars and a running minimum, and an MW × cLogP chemical-space plot with the Lipinski box.
  • Table 1: every scored ligand with ΔG, CI, MW, cLogP, QED, SA and ADMET result.
  • Figure 2, per-compound dossier: ADMET radar and rule table, HOMO/LUMO diagram, VQE error vs exact diagonalisation against chemical accuracy, fragment table with the peer that ran each solve, QAOA register bitstrings and β/γ, scaffold-hop lineage.
  • Methods paragraph generated from the run, plus the raw log with a VQE-lines toggle.

How

  • lib/pharma-science.ts rebuilds per-ligand records from the orchestrator log lines (formats in pharma/orchestrator.py). Only the final candidates are in the result payload, so the scored-ligand history comes from the log.
  • types.ts gains fields the backend already returns (exact_energy_hartree, ground_state_energy_hartree, vqe_starts, QUBO penalties, rmsd_angstrom, replacement_fragment_smiles).
  • ADMET limits in the UI match ADMETFilter defaults. The chart colour pair was run through the palette validator on the page background.
  • Failed and cancelled jobs now use the same page. The duplicate legacy view and candidate-card.tsx / admet-panel.tsx are removed.

Pipeline stepper, KPI row, full-bleed protein viewer with floating
controls, best ligand and score convergence cards, compact candidate
cards with ADMET rules, collapsible pipeline log. Scope the ligand SVG
dark-theme style so it no longer recolours charts, and parse
zone-less backend timestamps as UTC.
Rebuild the drug discovery job page as a lab report: pipeline trace,
readouts, Figure 1 (receptor, lead ligand, dG convergence with CI,
MW x cLogP chemical space), Table 1 of scored ligands, and a per-compound
dossier (ADMET radar and table, HOMO/LUMO diagram, VQE error vs exact,
fragment table with peers, QAOA register and angles, scaffold lineage).
Per-ligand data is parsed from the run log. Failed and cancelled jobs use
the same page; the duplicate legacy view and old card components are removed.
@vercel

vercel Bot commented Nov 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
qmeshpy-frontend Ignored Ignored Nov 14, 2026 9:34pm UTC

@Winter-Soren
Winter-Soren merged commit 1ffaaff into main Nov 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant