Repository navigation
OpenConceptLab/ocl_issues#3099 | The Verification process link opens the docs section of its own process - #127
Conversation
* Build the docs anchor from the verification process id so each process opens its own section instead of what-is-checked * Fall back to what-is-checked when the process is empty and cover the slug rules with a unit test
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Review of f410200: good to merge. No P0 or P1, and everything below is optional. The link against the live docs (Dec 4). I ran
The general process, Codex review, pass 1 (codex-cli 0.171.0, commit f410200): 2 P2
Simplification review (Claude subagent): 2 items, both optional
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "full",
"commit": "f4102006d",
"verdict": "findings",
"prior": [],
"findings": [
{
"id": "F1.1",
"severity": "P2",
"tag": null,
"file": "src/components/repos/RepoAbout.jsx",
"line": 117,
"claim": "The Verification footer omits the required fallback link when the process is empty.",
"scenario": "A repository version has a verification hash and `process: ''`. The Verification section renders, but the truthiness guard hides the Process link, so users cannot reach `#what-is-checked` from the footer. The helper test passes because it bypasses that guard.",
"action": "Render a labeled Process link for an empty process and add a component test that checks its `#what-is-checked` destination.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F1.2",
"severity": "P2",
"tag": null,
"file": "src/components/repos/aboutSections.js",
"line": 23,
"claim": "An undocumented process loses the working link to the general verification checks.",
"scenario": "If staff saves `ocl-verification-v2`, the unknown process used in the existing tests, the footer links to `#ocl-verification-v2`. That anchor is absent from the current docs, so the browser leaves the reader at the page top. Before this change the link landed at `#what-is-checked`.",
"action": "Resolve documented process IDs to their explicit anchors and retain `#what-is-checked` for IDs with no documented section.",
"lines_delta": null,
"confidence": "high"
}
]
}{
"reviewer": "claude subagent",
"perspective": "simplify",
"mode": "full",
"commit": "f4102006d",
"verdict": "findings",
"prior": [],
"findings": [
{
"id": "S1",
"severity": null,
"tag": "shrink",
"file": "src/components/repos/aboutSections.js",
"line": 22,
"claim": "The fallback repeats the base URL and builds the URL in two branches. The repo has no slug helper to reuse: rehype-slug is only used in the markdown pipeline and github-slugger is not a direct dependency.",
"scenario": null,
"action": "return `${VERIFIED_REPOSITORIES_DOCS_URL}#${slug || 'what-is-checked'}` (drops the ternary and the second copy of the URL)",
"lines_delta": -1,
"confidence": "medium"
},
{
"id": "S2",
"severity": null,
"tag": "dup-test",
"file": "src/components/repos/__tests__/aboutSections.test.js",
"line": 130,
"claim": "The test for 'ocl-verification-v1' without a dot is covered by the dotted case. The two '' and null assertions both hit the same fallback. The test never uses the .atc example from the acceptance criteria.",
"scenario": null,
"action": "Delete the plain 'ocl-verification-v1' assertion and use 'ocl-verification-v1.atc' in place of '.icd11'. Keep one of '' or null.",
"lines_delta": -2,
"confidence": "low"
}
]
} |
TL;DR: The Process link in the Verification footer of the repository About tab now opens the docs section of that process (
#ocl-verification-v1-icd11) instead of always#what-is-checked.Closes OpenConceptLab/ocl_issues#3099
Main Changes
src/components/repos/aboutSections.jsgetProcessDocsURL(process): Sphinx-style slug (lowercase, non-alphanumeric runs become-), fallback to#what-is-checkedwhen emptysrc/components/repos/RepoAbout.jsxsrc/components/repos/__tests__/aboutSections.test.jsocl-verification-v1.icd11,ocl-verification-v1, empty and nullKey Decisions
node --test, reusable for any future process id#what-is-checkedVerification Checklist
env -u PYTHONPATH npm test env -u PYTHONPATH ./node_modules/eslint/bin/eslint.js src/components/repos --ext .jsx,.jsnpm test: 411 pass, 0 failsrc/components/repos: cleanocl-verification-v1-icd11/ocl-verification-v1-atc(page could not be extracted; not verified)