Project modals (#190)

* added the project create and select modals

* Added logo and link to home page

* minor changes to side bar

* added import json and blank template options

* added website like home page

* change homepage to be more like website

* fixed landing page text box

* minor size changes to the home page

* added prebuilt agents section

* Minor changes to the prebuilt agent card

* removed the project selection and new project options from side bar

* fixed prebuilt agents

* fixed import json

* my assistants has pagination

* add dark mode support to home page

* addressed review comments

* increase build agents textbox lines

* fixed PR comments

* move prebuilt assistant under build view

* minor changes to home page

* minor changes to home page

* removed my assistants from side bar

* removed sidebar items

* fixed review comments

* fixed review comments

* Add "use client" directive to project-creation-utils.ts

This file uses localStorage and calls server actions directly, requiring client-side execution.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix import of pipeline agents

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
arkml 2025-08-11 23:46:30 +05:30 committed by GitHub
parent 10045c742d
commit 9a980f2f9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 1092 additions and 164 deletions

View file

@ -20,6 +20,17 @@ const KLAVIS_API_KEY = process.env.KLAVIS_API_KEY || '';
const projectActionAuthorizationPolicy = container.resolve<IProjectActionAuthorizationPolicy>('projectActionAuthorizationPolicy');
export async function listTemplates() {
const templatesArray = Object.entries(templates)
.filter(([key]) => key !== 'default') // Exclude the default template
.map(([key, template]) => ({
id: key,
...template
}));
return templatesArray;
}
export async function projectAuthCheck(projectId: string) {
if (!USE_AUTH) {
return;
@ -115,11 +126,12 @@ export async function createProjectFromWorkflowJson(formData: FormData): Promise
const name = formData.get('name') as string | null;
const workflowJson = formData.get('workflowJson') as string;
const { agents, prompts, tools, startAgent } = Workflow.parse(workflowJson);
const { agents, prompts, tools, pipelines, startAgent } = Workflow.parse(JSON.parse(workflowJson));
const response = await createBaseProject(name || 'Imported project', user, {
agents,
prompts,
tools,
pipelines,
startAgent,
lastUpdatedAt: (new Date()).toISOString(),
});