Skip to content

fix: preserve native interface link resolution - #18

Merged
coisa merged 1 commit into
mainfrom
codex/2026-10-27-0410-interface-links
Oct 29, 2026
Merged

coisa merged 1 commit into
mainfrom
codex/2026-10-27-0410-interface-links

Conversation

@coisa

@coisa coisa commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

An unresolved external interface currently receives a fabricated local-page link in the table of contents; a documented local interface receives nested anchors. Keep phpDocumentor's native class:short route as the sole link renderer and replace only the redundant outer anchor with a neutral span. External names remain visible without invented destinations, and internal links resolve once.

Add real-render fixtures for an external interface, a documented interface and a class without interfaces. Existing theme, assets, source examples and consumer skill contracts remain intact. This is the template portion of php-fast-forward/code-standards#31; the separate native graph-setting issue is not fixed here. No new upstream issue is created by this PR.

Reviewed commit: 5c59bc6; base 98b8735; tree abdf3b3d937b35ae48c5aa0dda17ef3a51a08489. Independent review found no pending findings in the four changed files.

Validation: focused RED/GREEN native phpDocumentor 3.9.1 render reproduced the invalid links and passed after the change. Exact-lock official signed shim 3.10.0 passed Composer strict/platform, canonical fixture generation (20 pages), consumer-skill rendering, both canonical renders from the Git export-ignore archive, and JS interaction tests. The project lock and global configuration remain unchanged. Published Changelog 0.4.0 check --since=origin/main passed one patch fragment. Local PHP was 8.5.12; hosted PHP matrix and current Changelog channel checks remain pending.

No runtime API or dependency change, replacement renderer, generated HTML rewrite, merge, tag or release is included. Consumer integration must use a reviewed compatible upstream publication or an explicitly approved exact candidate reference; published template 2.2.2 does not contain this fix.

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 612b114b-2c3e-4653-9270-7bfbc630eeaa
Commits

Reviewing files that changed from the base of the PR and between 98b8735 and 5c59bc6.

Files selected for processing: 4
  • .changelog/native-interface-links.md
  • components/table-of-contents.html.twig
  • tests/fixture/src/InterfaceExamples.php
  • tests/verify-output.php

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • Improved interface references in generated documentation. Documented interfaces now link to their generated API pages, while external interfaces without generated pages are displayed without a broken or misleading link.
    • Interface names in the table of contents are displayed as text rather than links. Classes without interfaces no longer show an empty interfaces section.

The table of contents now renders interface names as text instead of links. New fixtures and output checks cover documented interfaces, an unresolved external interface, and a class without interfaces.

Changes: Interface Rendering

Layer / File(s) Summary
Render interface names
components/table-of-contents.html.twig, .changelog/native-interface-links.md
The table of contents renders interface names as styled text instead of links. The changelog describes interface-link resolution through phpDocumentor’s native renderer.
Verify interface output
tests/fixture/src/InterfaceExamples.php, tests/verify-output.php
New fixtures and checks cover the documented local interface, the unresolved external interface, and a class without interfaces. The checks also require generated pages for each fixture.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · up to 5c59b

No actionable merge-blocking risk is established for this change.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title "fix: preserve native interface link resolution" matches the main change. The table-of-contents markup now keeps phpDocumentor's native class:short route as the only link renderer, and the r…
Description check Passed The description states the problem: an unresolved external interface gets a fabricated local-page link, and a documented local interface gets nested anchors. It explains the fix (native class:short re…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix: preserve native interface link resolution" matches the main change. The table-of-contents markup now keeps phpDocumentor's native class:short route as the only link renderer, and the redundant outer anchor becomes a neutral span. The title is specific, short, and follows a conventional commit style.

Full details: Description check

Explanation

The description states the problem: an unresolved external interface gets a fabricated local-page link, and a documented local interface gets nested anchors. It explains the fix (native class:short renderer kept, outer anchor replaced by a span), the new interface fixtures, and the validation performed. It matches the changeset closely.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files. (2 skipped: 2 unsupported.)

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the names in view,
A local link points to its page.
An outside name stays plain and true,
No-interface pages skip that stage.
The tests confirm each path and case,
Then hop away with code in place.

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Changelog

✅ Contribution check passed.

Head: 5c59bc6d90a9beb9ce3344da4af367031ed34c2d

Base: 98b87352583ce03c44a9c41ff3eacf7c75114a42

Contribution: 1 new valid fragment(s). Policy: ordinary.

  • native-interface-links.md — fixed, patch

    Resolve implemented interface links through phpDocumentor's native renderer so external interfaces without generated API pages remain visible without broken local links, and documented interfaces retain a single valid link.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T22:04:20.369329Z 5c59bc6 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-28T22:06:00.304790Z 5c59bc6 Draft marked ready
ℹ️ 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.

@coisa
coisa merged commit 183d40a into main Oct 29, 2026
43 checks passed
@coisa
coisa deleted the codex/2026-10-27-0410-interface-links branch October 29, 2026 23:57
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