Skip to content

DiffsHub API Improvements#636

Merged
amadeus merged 21 commits into
beta-1.2from
amadeus/diffshub-api-improvements
May 7, 2026
Merged

DiffsHub API Improvements#636
amadeus merged 21 commits into
beta-1.2from
amadeus/diffshub-api-improvements

Conversation

@amadeus
Copy link
Copy Markdown
Member

@amadeus amadeus commented May 4, 2026

Reworking the API to use .diff over .patch (this will enable you to view any /compare or /commit urls as well.

Also it'll make the trees interface a lot cleaner since it won't always need to show separate commits.

Reworked diff/patch loading to be streamed so stuff can start showing earlier. This also inspired a new React API that's more imperative which will work a lot better in situations where we are rendering a ton of data.

I also vibe-slopped a stats item for the PR that will need some love from @mdo

NOTE: converted the larg.patch file to be a .diff style file so it doesn't include a bunch of commits

CleanShot 2026-05-04 at 16 53 36

@vercel
Copy link
Copy Markdown

vercel Bot commented May 4, 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 1:32am
pierre-docs-trees Ready Ready Preview May 7, 2026 1:32am
pierrejs-diff-demo Ready Ready Preview May 7, 2026 1:32am
pierrejs-docs Ready Ready Preview May 7, 2026 1:32am

Request Review

@amadeus amadeus changed the base branch from main to beta-1.2 May 4, 2026 23:46
@amadeus amadeus requested a review from mdo May 4, 2026 23:51
@amadeus amadeus force-pushed the amadeus/diffshub-api-improvements branch from 53a82ab to e115f67 Compare May 4, 2026 23:56
@amadeus amadeus force-pushed the amadeus/diffshub-api-improvements branch from f6631d6 to 1bd19f1 Compare May 5, 2026 01:31
@amadeus amadeus force-pushed the amadeus/diffshub-api-improvements branch from 1bd19f1 to 3b6a8f3 Compare May 5, 2026 01:36
@amadeus amadeus force-pushed the amadeus/diffshub-api-improvements branch from a43810e to 7477a29 Compare May 5, 2026 19:29
@amadeus
Copy link
Copy Markdown
Member Author

amadeus commented May 6, 2026

@codex

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: 11f23380da

ℹ️ 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 thread apps/docs/app/(diffshub)/(view)/_components/usePatchLoader.ts
Comment thread apps/docs/app/api/gh/diff/route.ts
Don't allow the diffs to render if the worker pool is not initialized
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