Skip to content

OpenConceptLab/ocl_issues#3099 | The Verification process link opens the docs section of its own process - #127

Open
filiperochalopes wants to merge 1 commit into
OpenConceptLab:mainfrom
filiperochalopes:fix/verification-process-docs-anchor
Open

filiperochalopes wants to merge 1 commit into
OpenConceptLab:mainfrom
filiperochalopes:fix/verification-process-docs-anchor

Conversation

@filiperochalopes

Copy link
Copy Markdown
Contributor

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

Area Files Description
Docs link helper src/components/repos/aboutSections.js New getProcessDocsURL(process): Sphinx-style slug (lowercase, non-alphanumeric runs become -), fallback to #what-is-checked when empty
About tab src/components/repos/RepoAbout.jsx Process link uses the helper instead of the hard-coded anchor
Test src/components/repos/__tests__/aboutSections.test.js Covers ocl-verification-v1.icd11, ocl-verification-v1, empty and null

Key Decisions

Decision Choice Rationale
Where the slug is built Pure helper beside the other About logic Testable with node --test, reusable for any future process id
Empty process Fall back to #what-is-checked Keeps the previous behaviour when there is nothing to link

Verification Checklist

env -u PYTHONPATH npm test
env -u PYTHONPATH ./node_modules/eslint/bin/eslint.js src/components/repos --ext .jsx,.js
  • npm test: 411 pass, 0 fail
  • eslint on src/components/repos: clean
  • Browser check of the link on a verified version (not rendered)
  • OCL docs expose sections with ids ocl-verification-v1-icd11 / ocl-verification-v1-atc (page could not be extracted; not verified)

* 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
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-03T22:23:06.425981Z
We couldn’t complete this review. Comment @codex review to try again.
f410200 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@paynejd

paynejd commented Dec 4, 2026

Copy link
Copy Markdown
Member

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 getProcessDocsURL from this branch on both processes that verified versions in production have, and looked each anchor up in the live page:

Verified version Process Anchor On the page
WHO ICD-11-WHO 2026-01 ocl-verification-v1.icd11 #ocl-verification-v1-icd11 yes
WHO WHOATC 2026 ocl-verification-v1.atc #ocl-verification-v1-atc yes

The general process, ocl-verification-v1, and the fallback, #what-is-checked, have their sections too. The process sections are explicit labels in the docs' source, so a reworded heading doesn't break the links. That answers the last open box of the checklist. npm test (411 pass) and eslint on src/components/repos are clean here as well. I didn't render the tab: the change is only the link's address.

Codex review, pass 1 (codex-cli 0.171.0, commit f410200): 2 P2

  • F1.1 P2 RepoAbout.jsx:117 With an empty process, the footer shows no link. → Not a defect: the link's text is the process name, so without one there's nothing to show, as before this PR. The API doesn't accept an empty process either.
  • F1.2 P2 aboutSections.js:23 A process without a section in the docs opens the top of the page, where it used to open "What is checked". → Accepted: no version is affected today. The docs need a section for a new process before the first version verified with it.

Simplification review (Claude subagent): 2 items, both optional

  • S1 aboutSections.js:23 One return is enough: return `${VERIFIED_REPOSITORIES_DOCS_URL}#${slug || 'what-is-checked'}` .
  • S2 aboutSections.test.js:130 The ticket's own example, ocl-verification-v1.atc, isn't in the test. It could replace the one without a suffix.
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"
    }
  ]
}

This branch has not been deployed

No deployments
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.

Bug: Verification Process link on the About tab always opens #what-is-checked instead of its process section

2 participants