Skip to content

fix(issues): correct similar issue links - #509

Merged
pulkitxm merged 1 commit into
mainfrom
fix/duplicate-issue-link
Sep 30, 2026
Merged

pulkitxm merged 1 commit into
mainfrom
fix/duplicate-issue-link

Conversation

@pulkitxm

@pulkitxm pulkitxm commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

What this changes

Use the shared issueHref helper for the links in the "Similar existing issues" panel, so they open /issue/<identifier>.

Why

The panel currently opens /issues/<identifier>, which does not match Orbit's issue detail route. For example, selecting AI-25 should open https://orbit.noveum.ai/issue/AI-25.

How you know it works

  • Updated the existing component test to assert the singular route for both suggested issues, plus the new-tab target and link relationship.
  • Confirmed the updated test fails against the old link and passes with the fix: 3 tests passed.
  • Repository lint, comment policy, source-byte policy, runtime import policy, dependency deduplication, and all workspace type checks passed locally.
  • Full local verification completed with 11 services failures from unavailable object storage at localhost:9010 and backup tests selecting a PostgreSQL container without the Orbit database role. The web suite passed 2,988 tests, with one unrelated password-auth configuration test failure. The duplicate-suggestions regression tests passed in the full suite.
  • GitHub CI has passed lint/types, build, schema migration compatibility, and inbox end-to-end tests. Unit/integration and the main Playwright suite are still running.

Checklist

  • Tests updated, and they fail without the change
  • No comments added to code, and no em-dash characters added
  • No any, no non-null assertions

Anything reviewers should know

Requested review from @imshashank.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@github-actions github-actions Bot added tests Test coverage and test infrastructure area: web The Next.js app and its UI area: issues Issues, lists and boards labels Sep 30, 2026
@github-actions

Copy link
Copy Markdown

Thanks for your first pull request to Orbit.

Two things that will save you a review round: bun run verify runs the
same four checks CI does, and the repo has no comments in code by policy,
so bun run check-comments will flag any you added out of habit.

A maintainer will review this shortly. Ask anything on the thread.

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: Noveum/orbit/.coderabbit.yaml

Review profile: CHILL

Plan: Essentials

Run ID: 320b21c0-ffbc-4efb-b766-90d5608292b2

📥 Commits

Reviewing files that changed from the base of the PR and between 5c1fa05 and 91efbff.

📒 Files selected for processing (2)
  • apps/web/src/features/issues/duplicate-suggestions.tsx
  • apps/web/tests/features/issues/duplicate-suggestions.test.tsx

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.


📝 Walkthrough

Walkthrough

Duplicate issue links now use issueHref instead of a directly constructed path. The test checks the singular issue paths and verifies that the first link opens in a new tab.

Changes

Duplicate suggestion links

Layer / File(s) Summary
Generate and validate duplicate issue links
apps/web/src/features/issues/duplicate-suggestions.tsx, apps/web/tests/features/issues/duplicate-suggestions.test.tsx
The component uses issueHref to generate duplicate issue links. The test checks the /issue/ paths and verifies that the first link opens in a new tab. Existing noopener noreferrer coverage remains.

Priority: ⬇️ Low

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 91efb

The change uses the canonical issue-link helper, and the summarized test checks both suggested links and their link behavior. No merge-blocking risk is evident.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: correcting similar issue links.
Description check ✅ Passed The description explains the route correction, the shared helper, and the updated tests. It is directly related to the changeset.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

@pulkitxm
pulkitxm merged commit d133153 into main Sep 30, 2026
14 checks passed
@pulkitxm
pulkitxm deleted the fix/duplicate-issue-link branch September 30, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: issues Issues, lists and boards area: web The Next.js app and its UI tests Test coverage and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants