Skip to content

Open PRs from the Issues view and chat #N links in the app's PR panel #40

Description

@lukemaj

Parent

#25 (follow-up after merge)

Outcome

Pull requests shown in the Issues view and PR references in chat open in the app's PR panel, like PRs everywhere else in Chromeria, instead of opening GitHub or doing nothing.

Problem

Acceptance criteria

  • Clicking a PR in the Issue side panel opens that PR in the in-app PR detail panel (the same one the Pull Requests list and thread panel use), on a server that supports PRs; an explicit "open on GitHub" stays available.
  • A chat link to /issues/N or #N that is actually a PR opens the in-app PR panel; one that is a real Issue opens the Issues side panel; unknown or unsupported hosts fall back to the browser. No per-link GitHub call on render; resolve on click.
  • Nothing ever silently does nothing: a failed resolution falls back to opening GitHub.

Non-goals

  • Changing how upstream renders PR links that already open in-app.

Blocked by

None

Required proof

  • Logic tests for link classification and fallback; targeted typecheck, lint, knip, fork-check; independent review of the exact head.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions