-
Notifications
You must be signed in to change notification settings - Fork 0
Add blueprint API route and client page #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Deployment failed with the following error: Learn More: https://vercel.com/docs/concepts/projects/project-configuration |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a blueprint viewing system for CHIBot by adding an API endpoint and a client-side page to display blueprint data.
- Adds a GET API route at
/api/blueprintthat serves the CHIBot blueprint data as JSON - Creates a client-side blueprint page that fetches and displays all blueprint sections (pages, data layers, profiles, bots, rituals, and actions)
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| app/api/blueprint/route.ts | Simple GET endpoint that returns the blueprint data as JSON |
| app/blueprint/page.tsx | Client-side page with data fetching and UI rendering for all blueprint sections |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| fetchBlueprint() | ||
| }, []) | ||
|
|
||
| if (error) return <div className="p-6">Error loading blueprint.</div> |
Copilot
AI
Nov 20, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message displayed to users is generic and doesn't include the actual error details. Consider displaying the error message from the error state variable to help users and developers understand what went wrong. For example: Error loading blueprint: {error}
| if (error) return <div className="p-6">Error loading blueprint.</div> | |
| if (error) return <div className="p-6">Error loading blueprint: {error}</div> |
| <h3 className="font-semibold text-lg">{profile.name}</h3> | ||
| <p className="text-xs text-gray-500 uppercase tracking-wide">{profile.archetype}</p> | ||
| <p className="text-sm text-gray-700">{profile.focus}</p> | ||
| <p className="text-xs text-gray-500">Rituale: {profile.rituals.join(', ')}</p> |
Copilot
AI
Nov 20, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spelling of 'Rituale' to 'Rituals' to match the English label used in line 120.
| <p className="text-xs text-gray-500">Rituale: {profile.rituals.join(', ')}</p> | |
| <p className="text-xs text-gray-500">Rituals: {profile.rituals.join(', ')}</p> |
Summary
Testing
Codex Task