Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Summary

Integrates the Cookbook AI chat assistant from the old documentation repo into the new developer-hub. This adds a floating chat widget that allows users to ask questions about Pyth documentation.

Rationale

The old documentation site had a Cookbook chat feature that provided AI-powered assistance to users. This PR ports that functionality to the new developer-hub to maintain feature parity.

How has this been tested?

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

Verified that:

  • ESLint passes on the new/modified files
  • TypeScript compilation succeeds for the AskCookbook component

Note: The dev-hub was not run locally as no testing instructions were available. The component uses dynamic import with SSR disabled, following the same pattern as the original implementation.

Human Review Checklist

  • Verify the Cookbook API key is correct for the new dev-hub (currently using the same key from the old documentation repo)
  • Test the chat widget renders and functions correctly in the deployed preview
  • Confirm the custom TypeScript declaration for @cookbookdev/docsbot/react is acceptable

Link to Devin run: https://app.devin.ai/sessions/44b781e67d204054a75ce33dc41b6ed3
Requested by: [email protected]

Add AskCookbook component from the old documentation repo to the new
developer-hub. This provides an AI-powered chat assistant for users
to ask questions about Pyth documentation.

Changes:
- Add @cookbookdev/docsbot dependency
- Create AskCookbook component with dynamic import (SSR disabled)
- Add TypeScript type declarations for the cookbook module
- Integrate AskCookbook into the Root component

Co-Authored-By: [email protected] <[email protected]>
@devin-ai-integration devin-ai-integration bot requested a review from a team as a code owner December 10, 2025 16:47
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link

vercel bot commented Dec 10, 2025

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

Project Deployment Preview Comments Updated (UTC)
api-reference Ready Ready Preview Comment Dec 10, 2025 4:51pm
component-library Ready Ready Preview Comment Dec 10, 2025 4:51pm
developer-hub Error Error Dec 10, 2025 4:51pm
entropy-explorer Ready Ready Preview Comment Dec 10, 2025 4:51pm
insights Ready Ready Preview Comment Dec 10, 2025 4:51pm
proposals Ready Ready Preview Comment Dec 10, 2025 4:51pm
staking Ready Ready Preview Comment Dec 10, 2025 4:51pm

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