Skip to content

Revamp comments#645

Merged
mdo merged 6 commits intobeta-1.2from
mdo/diffshub-comments
May 7, 2026
Merged

Revamp comments#645
mdo merged 6 commits intobeta-1.2from
mdo/diffshub-comments

Conversation

@mdo
Copy link
Copy Markdown
Contributor

@mdo mdo commented May 7, 2026

  • New sidebar comment list
  • New form and comment design

@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierre-docs-diffshub Ready Ready Preview May 7, 2026 10:29pm
pierre-docs-trees Ready Ready Preview May 7, 2026 10:29pm
pierrejs-diff-demo Ready Ready Preview May 7, 2026 10:29pm
pierrejs-docs Ready Ready Preview May 7, 2026 10:29pm

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a64f15761a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +58 to +61
if (parsedURL.pathname === '/') {
return undefined;
}

return `/${owner}/${repo}/pull/${pullFile}`;
return parsedURL.pathname;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject unsupported GitHub paths before navigation

getGitHubPath now accepts any non-root GitHub pathname, but the viewer route only exists at /{owner}/{repo}/{...githubPath}. Inputs like https://github.com/nodejs or https://github.com/nodejs/node therefore pass validation and trigger router.push(...), which lands users on a Next.js 404 instead of showing the in-app diff error state. Tighten validation to require at least owner/repo plus a trailing diff target segment before returning a path.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

@amadeus amadeus left a comment

Choose a reason for hiding this comment

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

Lookin sharp! Mostly just a types question that doesn't really matter but is just me on my bullshit, can ignore if you want

Comment thread apps/docs/app/(diffshub)/(view)/_components/annotation-shared.tsx Outdated
Copy link
Copy Markdown
Member

@amadeus amadeus left a comment

Choose a reason for hiding this comment

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

lfg

@mdo mdo merged commit 9d93f70 into beta-1.2 May 7, 2026
12 checks passed
@mdo mdo deleted the mdo/diffshub-comments branch May 7, 2026 22:32
amadeus pushed a commit that referenced this pull request May 8, 2026
* Restyle comment form and comment

* better comments and comment lists

* border tweak

* Avatars coming at you

* Review feedback

* update apple icons while here
amadeus pushed a commit that referenced this pull request May 8, 2026
* Restyle comment form and comment

* better comments and comment lists

* border tweak

* Avatars coming at you

* Review feedback

* update apple icons while here
amadeus pushed a commit that referenced this pull request May 9, 2026
* Restyle comment form and comment

* better comments and comment lists

* border tweak

* Avatars coming at you

* Review feedback

* update apple icons while here
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.

2 participants