Skip to content

Conversation

@aditya520
Copy link
Member

Summary

Rationale

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@vercel
Copy link

vercel bot commented Jan 6, 2026

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

Project Deployment Review Updated (UTC)
component-library Ready Ready Preview, Comment Jan 12, 2026 5:18pm
developer-hub Ready Ready Preview, Comment Jan 12, 2026 5:18pm
5 Skipped Deployments
Project Deployment Review Updated (UTC)
api-reference Skipped Skipped Jan 12, 2026 5:18pm
entropy-explorer Skipped Skipped Jan 12, 2026 5:18pm
insights Skipped Skipped Jan 12, 2026 5:18pm
proposals Skipped Skipped Jan 12, 2026 5:18pm
staking Skipped Skipped Jan 12, 2026 5:18pm

@benduran
Copy link
Contributor

benduran commented Jan 7, 2026

General Layout feedback. See image below 🙂
CleanShot 2026-01-07 at 14 51 19

variant="primary"
size="lg"
onPress={handleRunCode}
className={styles.runButton ?? ""}
Copy link
Contributor

Choose a reason for hiding this comment

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

this is rather annoying. we should allow for a nullish className to be set on our components (not something you need to fix, just thinking out loud 😅 )

@benduran
Copy link
Contributor

benduran commented Jan 7, 2026

Additional UX feedback about the left panel (see image):
CleanShot 2026-01-07 at 15 10 08

@vercel vercel bot temporarily deployed to Preview – entropy-explorer January 7, 2026 17:57 Inactive
@vercel vercel bot temporarily deployed to Preview – staking January 7, 2026 17:57 Inactive
@vercel vercel bot temporarily deployed to Preview – api-reference January 7, 2026 17:57 Inactive
@vercel vercel bot temporarily deployed to Preview – proposals January 7, 2026 17:57 Inactive
let timeoutId: ReturnType<typeof setTimeout> | undefined;
let isClosed = false;

const stream = new ReadableStream({
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 we may need to do a deeper dive on the usage of the EventStream API here. it's a good usage here in Next (since we cannot use server-side websockets in Next), but there is an opportunity to move this API out of developer hub and into the shared-lib, so we can standardize the API and also provide some React hooks that work easily with it, without needing to build something custom per-app (thinking out loud here, as this is 100% something that we will need in other places)

};
websocket = new WebSocket(wsUrl, wsOptions);

websocket.addEventListener("open", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is actually not going to work once deployed. it works locally, because you have a single, persistent instance that is always up. However, once deployed to Vercel, the app cluster will be scaled up and down dynamically, so the server that opened this websocket instance will likely be killed, which will cause problems that manifest as Pyth API slowness and instability (definitely not a thing to promote 😓 ).

Let's revisit this. We may need to have a bespoke server, written in Rust or Javascript, depending on which Pyth Client we want to use, that only handles streaming for the DevHub docsite and the upcoming Admin portal

@vercel vercel bot temporarily deployed to Preview – entropy-explorer January 9, 2026 17:13 Inactive
@vercel vercel bot temporarily deployed to Preview – api-reference January 9, 2026 17:13 Inactive
@vercel vercel bot temporarily deployed to Preview – staking January 9, 2026 17:13 Inactive
@vercel vercel bot temporarily deployed to Preview – proposals January 9, 2026 17:13 Inactive
@vercel vercel bot temporarily deployed to Preview – insights January 9, 2026 17:13 Inactive
@aditya520 aditya520 marked this pull request as ready for review January 9, 2026 17:13
@aditya520 aditya520 requested a review from a team as a code owner January 9, 2026 17:13
@aditya520 aditya520 requested a review from benduran January 9, 2026 17:14
@vercel vercel bot temporarily deployed to Preview – entropy-explorer January 12, 2026 17:14 Inactive
@vercel vercel bot temporarily deployed to Preview – insights January 12, 2026 17:14 Inactive
@vercel vercel bot temporarily deployed to Preview – proposals January 12, 2026 17:14 Inactive
@vercel vercel bot temporarily deployed to Preview – api-reference January 12, 2026 17:14 Inactive
@vercel vercel bot temporarily deployed to Preview – staking January 12, 2026 17:14 Inactive
@aditya520 aditya520 merged commit 5d17c11 into main Jan 12, 2026
10 of 11 checks passed
@aditya520 aditya520 deleted the feat(dev-hub)-pyth-pro-playground branch January 12, 2026 18:39
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.

4 participants