-
Notifications
You must be signed in to change notification settings - Fork 6
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
Release playground v2 #247
Release playground v2 #247
Conversation
Updates the main agents page with the V2 implementation featuring: - Enhanced card-based grid layout - Last updated timestamp display - Improved visual styling with gradients - Direct links to canary view Removes the separate agents-v2 route and consolidates the functionality into the main /agents path for a more streamlined experience.
Removes the playgroundV2 feature flag requirement from the canary view, making it accessible by default. This change indicates the canary version is now considered stable enough for general use. Note that the developer mode flag check is still maintained for restricted functionality.
Adds authorization check to ensure users can only access canary views for agents within their teams. This improves security by: - Verifying user team membership before showing agent data - Returning 404 for unauthorized access attempts - Handling both missing agents and insufficient permissions consistently The change enforces proper access control while maintaining a clean user experience by using notFound() instead of throwing errors.
Simplifies the playground routing by: - Removing playgroundV2 and view feature flags - Setting viewFlag permanently to true - Removing redirect to canary view - Hardcoding playgroundV2Flag to false for legacy components This cleanup indicates the V2/canary features are now part of the main user experience path rather than being feature-flagged.
Relocates the beta-proto implementation to a prev/ directory to clearly separate it as legacy code while maintaining backwards compatibility. Changes include: - Move beta-proto directory to prev/beta-proto - Update all import paths to reflect new location - Preserve functionality while better organizing codebase - Maintain existing database migrations and server actions This change prepares for the full transition to the new implementation while safely preserving the old one for reference and compatibility.
Moves canary implementation to be the primary playground experience by: - Moving all canary components/logic to main playground directory - Removing mock data files - Updating import paths across codebase - Preserving prev/ directory for legacy code This change completes the graduation of the canary features to production, making them the default experience while maintaining a clean directory structure.
@toyamarinyon is attempting to deploy a commit to the Edge Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@toyamarinyon Could you fix the deployment errors? |
app/(main)/agents/page.tsx
Outdated
<CreateAgentButton createAgentAction={createAgentAction} /> | ||
<div className="grid gap-[16px] grid-cols-3"> | ||
{dbAgents.map((agent) => ( | ||
<Link href={`/p/${agent.id}/canary`} key={agent.id}> |
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.
<Link href={`/p/${agent.id}/canary`} key={agent.id}> | |
<Link href={`/p/${agent.id}`} key={agent.id}> |
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.
@toyamarinyon I cannot open the agent page in /agents
. Please check it and try your OAT.
## Changes - Update agent card links to point to `/p/${agent.id}` instead of `/p/${agent.id}/canary` - Remove deprecated canary path from navigation
@shige Sorry. I didn't check move to the playground of the agent clicked on the agent list page. I fix and check the following scenarios: Create agent
Move to the playground of the agent 🆕
Execute a node on the playground
Execute a flow on the playground
|
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.
LGTM! 🎉
Co-authored-by: Tadashi Shigeoka <[email protected]>
Note
This pull request will be conflict with #241.
Changes
Testing
Create agent
/agents
Move to the playground of the agent
/agents
Execute a node on the playground
/p/:agentId
Execute a flow on the playground
/p/:agentId