feat(structure-viewer): add ted resource link - #402
Conversation
Automated reviewDoes it solve #344? Yes — the PR adds Found 1 issue:
protspace/docs/explore/structures.md Lines 11 to 13 in ef9b3dc Deliberately not flagged: the TED anchor rendering unconditionally (it mirrors the pre-existing AlphaFold/UniProt/InterPro anchors, and 🤖 Generated with Claude Code |
|
Disposition: actionable and needs to be addressed. Verified against current head Required direction: update both Explore descriptions to include/link TED and regenerate the shared structure-viewer screenshot. No implementation was performed as part of this triage. |
|
Implemented the verified documentation feedback in |
- Insert the missing `undefined` arg in the three `page.waitForFunction` calls in scripts/docs-screenshots/helpers.ts (waitForDataLoad readiness predicate, the #progressive-loading overlay wait, and waitForLegend) so their `timeout` and `polling` land in the options position instead of being serialized as the unused page-function argument and discarded. Matches the form already used at helpers.ts waitForWebGLContext and in capture-animations.spec.ts. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016qoU16kDQxz6U3H2UWbbm2
Reverts 9617f85. Moving the options object into waitForFunction's third argument is the correct fix -- the options were silently discarded in the `arg` slot -- but it is not behavior-preserving, so it should be the author's call rather than an automated cleanup. Because playwright.config.ts leaves `actionTimeout` unset (default 0), the three waits in scripts/docs-screenshots/helpers.ts were previously unbounded, capped only by the 60s per-test timeout. Applying the fix caps them at 30s/30s/15s and switches polling from `raf` to fixed 200/100/200ms intervals, which can turn a slow-but-successful screenshot capture into a hard failure. Raised as a review comment instead. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016qoU16kDQxz6U3H2UWbbm2
Adversarial reviewReviewed in an isolated worktree by three independent lenses (code quality, adversarial correctness, issue-resolution audit), with every finding then put through a refuter whose default position was that it is a false positive. 4 raised, 2 survived refutation. Applied, then reverted (
|
|
Addressed the adversarial review in comment 5203113387 on
Verification: focused helper tests |
Summary
Root cause
The structure viewer header had URL builders and rendered anchors only for AlphaFold, UniProt, and InterPro. There was no TED URL builder or TED anchor, so the resource could never appear.
Reproduction
Before the fix, the header showed UniProt and InterPro but no TED link. After the fix, TED appears and targets https://ted.cathdb.info/uniprot/A0A023VZF1 in a safe new tab.
Tests
Closes #344