Skip to content

Streaming Tests#640

Merged
amadeus merged 7 commits into
amadeus/diffshub-api-improvementsfrom
amadeus/streaming-tests
May 6, 2026
Merged

Streaming Tests#640
amadeus merged 7 commits into
amadeus/diffshub-api-improvementsfrom
amadeus/streaming-tests

Conversation

@amadeus
Copy link
Copy Markdown
Member

@amadeus amadeus commented May 5, 2026

Testing out streaming data...

@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 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 6, 2026 10:15pm
pierre-docs-trees Ready Ready Preview May 6, 2026 10:15pm
pierrejs-diff-demo Ready Ready Preview May 6, 2026 10:15pm
pierrejs-docs Ready Ready Preview May 6, 2026 10:15pm

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: f094e95129

ℹ️ 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 packages/diffs/src/react/CodeView.tsx Outdated
Comment thread apps/docs/app/api/fetch-pr-patch/route.ts Outdated
@amadeus amadeus force-pushed the amadeus/streaming-tests branch from f094e95 to 4712a8b Compare May 6, 2026 00:01
@amadeus amadeus force-pushed the amadeus/streaming-tests branch from 4712a8b to 827127b Compare May 6, 2026 02:26
@amadeus amadeus force-pushed the amadeus/streaming-tests branch from 827127b to 04cd7a6 Compare May 6, 2026 05:26
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: 9a84dd4846

ℹ️ 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/api/fetch-pr-patch/route.ts
Comment thread apps/docs/app/gh/CodeViewHeader.tsx Outdated
@amadeus amadeus merged commit 08a9dbb into amadeus/diffshub-api-improvements May 6, 2026
12 checks passed
@amadeus amadeus deleted the amadeus/streaming-tests branch May 6, 2026 22:30
amadeus added a commit that referenced this pull request May 7, 2026
* Better support flattened changes

* Refactor API to use .diff (but maintain .patch compat)

* Add diff stats

* Rework fetching into an improve system

* Rename GHViewer to ReviewUI

* Fix diffIndicators triggering UI updates on change in CodeView

That's what i get for not testing all my features, :kek:

* Added a new proper export type for DiffIndicators
  * Updated areas in the codebase that used the inline stuff
* Refactored virtualization logic a bit for setOptions and how it it can
  manage updates
  * Hopefully more future proof and cleaner code to reason about

* Add support for setting diffIndicators in diffshub

* tweak styles for folders

* Improve error and fetching states

* Revamp stats and monitor

* new home faq for examples

* Smol mb tweak to diff stats?

* Streaming Tests (#640)

* Improve React/VanillaJS APIs for streaming scenarios

* First version of streaming diff system...

it's really sorta slopped in terms of how code is organized and used, a
lot of inline shit and a lot to wrap my head around.

The real fix would be a sort of class based imperative system for
managing state, that can expose apis and stuff for more performant mutations.

* Refactor streaming system into usePatchLoader

This at least organizes/hides some of the craziness

* Implement new imperative APIs for CodeView, and make it an option in React

Much better performance, a lot less fuckery

* Remove old max line check (it no longer matters)

* PR feedback that wasn't real, despite AI really wanted to `well actually` me

* Update docs for new imperative APIs for CodeView

* Add support for githubusercontent.com

* improve url examples

* Rewrite url to more reflect new API

* Fix potential bug with trailing slashes

* Fix WorkerPool rendering race condition

Don't allow the diffs to render if the worker pool is not initialized

* Fix staggered loading

* Fix loading state bug with new workerPool status

* Harden managing worker pool state

---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
mdo pushed a commit that referenced this pull request May 7, 2026
* Improve React/VanillaJS APIs for streaming scenarios

* First version of streaming diff system...

it's really sorta slopped in terms of how code is organized and used, a
lot of inline shit and a lot to wrap my head around.

The real fix would be a sort of class based imperative system for
managing state, that can expose apis and stuff for more performant mutations.

* Refactor streaming system into usePatchLoader

This at least organizes/hides some of the craziness

* Implement new imperative APIs for CodeView, and make it an option in React

Much better performance, a lot less fuckery

* Remove old max line check (it no longer matters)

* PR feedback that wasn't real, despite AI really wanted to `well actually` me

* Update docs for new imperative APIs for CodeView
amadeus added a commit that referenced this pull request May 7, 2026
* Better support flattened changes

* Refactor API to use .diff (but maintain .patch compat)

* Add diff stats

* Rework fetching into an improve system

* Rename GHViewer to ReviewUI

* Fix diffIndicators triggering UI updates on change in CodeView

That's what i get for not testing all my features, :kek:

* Added a new proper export type for DiffIndicators
  * Updated areas in the codebase that used the inline stuff
* Refactored virtualization logic a bit for setOptions and how it it can
  manage updates
  * Hopefully more future proof and cleaner code to reason about

* Add support for setting diffIndicators in diffshub

* tweak styles for folders

* Improve error and fetching states

* Revamp stats and monitor

* new home faq for examples

* Smol mb tweak to diff stats?

* Streaming Tests (#640)

* Improve React/VanillaJS APIs for streaming scenarios

* First version of streaming diff system...

it's really sorta slopped in terms of how code is organized and used, a
lot of inline shit and a lot to wrap my head around.

The real fix would be a sort of class based imperative system for
managing state, that can expose apis and stuff for more performant mutations.

* Refactor streaming system into usePatchLoader

This at least organizes/hides some of the craziness

* Implement new imperative APIs for CodeView, and make it an option in React

Much better performance, a lot less fuckery

* Remove old max line check (it no longer matters)

* PR feedback that wasn't real, despite AI really wanted to `well actually` me

* Update docs for new imperative APIs for CodeView

* Add support for githubusercontent.com

* improve url examples

* Rewrite url to more reflect new API

* Fix potential bug with trailing slashes

* Fix WorkerPool rendering race condition

Don't allow the diffs to render if the worker pool is not initialized

* Fix staggered loading

* Fix loading state bug with new workerPool status

* Harden managing worker pool state

---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
amadeus added a commit that referenced this pull request May 8, 2026
* Better support flattened changes

* Refactor API to use .diff (but maintain .patch compat)

* Add diff stats

* Rework fetching into an improve system

* Rename GHViewer to ReviewUI

* Fix diffIndicators triggering UI updates on change in CodeView

That's what i get for not testing all my features, :kek:

* Added a new proper export type for DiffIndicators
  * Updated areas in the codebase that used the inline stuff
* Refactored virtualization logic a bit for setOptions and how it it can
  manage updates
  * Hopefully more future proof and cleaner code to reason about

* Add support for setting diffIndicators in diffshub

* tweak styles for folders

* Improve error and fetching states

* Revamp stats and monitor

* new home faq for examples

* Smol mb tweak to diff stats?

* Streaming Tests (#640)

* Improve React/VanillaJS APIs for streaming scenarios

* First version of streaming diff system...

it's really sorta slopped in terms of how code is organized and used, a
lot of inline shit and a lot to wrap my head around.

The real fix would be a sort of class based imperative system for
managing state, that can expose apis and stuff for more performant mutations.

* Refactor streaming system into usePatchLoader

This at least organizes/hides some of the craziness

* Implement new imperative APIs for CodeView, and make it an option in React

Much better performance, a lot less fuckery

* Remove old max line check (it no longer matters)

* PR feedback that wasn't real, despite AI really wanted to `well actually` me

* Update docs for new imperative APIs for CodeView

* Add support for githubusercontent.com

* improve url examples

* Rewrite url to more reflect new API

* Fix potential bug with trailing slashes

* Fix WorkerPool rendering race condition

Don't allow the diffs to render if the worker pool is not initialized

* Fix staggered loading

* Fix loading state bug with new workerPool status

* Harden managing worker pool state

---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
amadeus added a commit that referenced this pull request May 8, 2026
* Better support flattened changes

* Refactor API to use .diff (but maintain .patch compat)

* Add diff stats

* Rework fetching into an improve system

* Rename GHViewer to ReviewUI

* Fix diffIndicators triggering UI updates on change in CodeView

That's what i get for not testing all my features, :kek:

* Added a new proper export type for DiffIndicators
  * Updated areas in the codebase that used the inline stuff
* Refactored virtualization logic a bit for setOptions and how it it can
  manage updates
  * Hopefully more future proof and cleaner code to reason about

* Add support for setting diffIndicators in diffshub

* tweak styles for folders

* Improve error and fetching states

* Revamp stats and monitor

* new home faq for examples

* Smol mb tweak to diff stats?

* Streaming Tests (#640)

* Improve React/VanillaJS APIs for streaming scenarios

* First version of streaming diff system...

it's really sorta slopped in terms of how code is organized and used, a
lot of inline shit and a lot to wrap my head around.

The real fix would be a sort of class based imperative system for
managing state, that can expose apis and stuff for more performant mutations.

* Refactor streaming system into usePatchLoader

This at least organizes/hides some of the craziness

* Implement new imperative APIs for CodeView, and make it an option in React

Much better performance, a lot less fuckery

* Remove old max line check (it no longer matters)

* PR feedback that wasn't real, despite AI really wanted to `well actually` me

* Update docs for new imperative APIs for CodeView

* Add support for githubusercontent.com

* improve url examples

* Rewrite url to more reflect new API

* Fix potential bug with trailing slashes

* Fix WorkerPool rendering race condition

Don't allow the diffs to render if the worker pool is not initialized

* Fix staggered loading

* Fix loading state bug with new workerPool status

* Harden managing worker pool state

---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
amadeus added a commit that referenced this pull request May 9, 2026
* Better support flattened changes

* Refactor API to use .diff (but maintain .patch compat)

* Add diff stats

* Rework fetching into an improve system

* Rename GHViewer to ReviewUI

* Fix diffIndicators triggering UI updates on change in CodeView

That's what i get for not testing all my features, :kek:

* Added a new proper export type for DiffIndicators
  * Updated areas in the codebase that used the inline stuff
* Refactored virtualization logic a bit for setOptions and how it it can
  manage updates
  * Hopefully more future proof and cleaner code to reason about

* Add support for setting diffIndicators in diffshub

* tweak styles for folders

* Improve error and fetching states

* Revamp stats and monitor

* new home faq for examples

* Smol mb tweak to diff stats?

* Streaming Tests (#640)

* Improve React/VanillaJS APIs for streaming scenarios

* First version of streaming diff system...

it's really sorta slopped in terms of how code is organized and used, a
lot of inline shit and a lot to wrap my head around.

The real fix would be a sort of class based imperative system for
managing state, that can expose apis and stuff for more performant mutations.

* Refactor streaming system into usePatchLoader

This at least organizes/hides some of the craziness

* Implement new imperative APIs for CodeView, and make it an option in React

Much better performance, a lot less fuckery

* Remove old max line check (it no longer matters)

* PR feedback that wasn't real, despite AI really wanted to `well actually` me

* Update docs for new imperative APIs for CodeView

* Add support for githubusercontent.com

* improve url examples

* Rewrite url to more reflect new API

* Fix potential bug with trailing slashes

* Fix WorkerPool rendering race condition

Don't allow the diffs to render if the worker pool is not initialized

* Fix staggered loading

* Fix loading state bug with new workerPool status

* Harden managing worker pool state

---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
amadeus added a commit that referenced this pull request May 9, 2026
* Better support flattened changes

* Refactor API to use .diff (but maintain .patch compat)

* Add diff stats

* Rework fetching into an improve system

* Rename GHViewer to ReviewUI

* Fix diffIndicators triggering UI updates on change in CodeView

That's what i get for not testing all my features, :kek:

* Added a new proper export type for DiffIndicators
  * Updated areas in the codebase that used the inline stuff
* Refactored virtualization logic a bit for setOptions and how it it can
  manage updates
  * Hopefully more future proof and cleaner code to reason about

* Add support for setting diffIndicators in diffshub

* tweak styles for folders

* Improve error and fetching states

* Revamp stats and monitor

* new home faq for examples

* Smol mb tweak to diff stats?

* Streaming Tests (#640)

* Improve React/VanillaJS APIs for streaming scenarios

* First version of streaming diff system...

it's really sorta slopped in terms of how code is organized and used, a
lot of inline shit and a lot to wrap my head around.

The real fix would be a sort of class based imperative system for
managing state, that can expose apis and stuff for more performant mutations.

* Refactor streaming system into usePatchLoader

This at least organizes/hides some of the craziness

* Implement new imperative APIs for CodeView, and make it an option in React

Much better performance, a lot less fuckery

* Remove old max line check (it no longer matters)

* PR feedback that wasn't real, despite AI really wanted to `well actually` me

* Update docs for new imperative APIs for CodeView

* Add support for githubusercontent.com

* improve url examples

* Rewrite url to more reflect new API

* Fix potential bug with trailing slashes

* Fix WorkerPool rendering race condition

Don't allow the diffs to render if the worker pool is not initialized

* Fix staggered loading

* Fix loading state bug with new workerPool status

* Harden managing worker pool state

---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
amadeus added a commit that referenced this pull request May 9, 2026
* Better support flattened changes

* Refactor API to use .diff (but maintain .patch compat)

* Add diff stats

* Rework fetching into an improve system

* Rename GHViewer to ReviewUI

* Fix diffIndicators triggering UI updates on change in CodeView

That's what i get for not testing all my features, :kek:

* Added a new proper export type for DiffIndicators
  * Updated areas in the codebase that used the inline stuff
* Refactored virtualization logic a bit for setOptions and how it it can
  manage updates
  * Hopefully more future proof and cleaner code to reason about

* Add support for setting diffIndicators in diffshub

* tweak styles for folders

* Improve error and fetching states

* Revamp stats and monitor

* new home faq for examples

* Smol mb tweak to diff stats?

* Streaming Tests (#640)

* Improve React/VanillaJS APIs for streaming scenarios

* First version of streaming diff system...

it's really sorta slopped in terms of how code is organized and used, a
lot of inline shit and a lot to wrap my head around.

The real fix would be a sort of class based imperative system for
managing state, that can expose apis and stuff for more performant mutations.

* Refactor streaming system into usePatchLoader

This at least organizes/hides some of the craziness

* Implement new imperative APIs for CodeView, and make it an option in React

Much better performance, a lot less fuckery

* Remove old max line check (it no longer matters)

* PR feedback that wasn't real, despite AI really wanted to `well actually` me

* Update docs for new imperative APIs for CodeView

* Add support for githubusercontent.com

* improve url examples

* Rewrite url to more reflect new API

* Fix potential bug with trailing slashes

* Fix WorkerPool rendering race condition

Don't allow the diffs to render if the worker pool is not initialized

* Fix staggered loading

* Fix loading state bug with new workerPool status

* Harden managing worker pool state

---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
amadeus added a commit that referenced this pull request May 12, 2026
* Better support flattened changes

* Refactor API to use .diff (but maintain .patch compat)

* Add diff stats

* Rework fetching into an improve system

* Rename GHViewer to ReviewUI

* Fix diffIndicators triggering UI updates on change in CodeView

That's what i get for not testing all my features, :kek:

* Added a new proper export type for DiffIndicators
  * Updated areas in the codebase that used the inline stuff
* Refactored virtualization logic a bit for setOptions and how it it can
  manage updates
  * Hopefully more future proof and cleaner code to reason about

* Add support for setting diffIndicators in diffshub

* tweak styles for folders

* Improve error and fetching states

* Revamp stats and monitor

* new home faq for examples

* Smol mb tweak to diff stats?

* Streaming Tests (#640)

* Improve React/VanillaJS APIs for streaming scenarios

* First version of streaming diff system...

it's really sorta slopped in terms of how code is organized and used, a
lot of inline shit and a lot to wrap my head around.

The real fix would be a sort of class based imperative system for
managing state, that can expose apis and stuff for more performant mutations.

* Refactor streaming system into usePatchLoader

This at least organizes/hides some of the craziness

* Implement new imperative APIs for CodeView, and make it an option in React

Much better performance, a lot less fuckery

* Remove old max line check (it no longer matters)

* PR feedback that wasn't real, despite AI really wanted to `well actually` me

* Update docs for new imperative APIs for CodeView

* Add support for githubusercontent.com

* improve url examples

* Rewrite url to more reflect new API

* Fix potential bug with trailing slashes

* Fix WorkerPool rendering race condition

Don't allow the diffs to render if the worker pool is not initialized

* Fix staggered loading

* Fix loading state bug with new workerPool status

* Harden managing worker pool state

---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
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