feat: Repo level management (#1828)
* move dev server scripts onto project repos * wip: move scripts onto Repo structs * wip: repo settings page * i18n and fixes * fix refresh * i18n * nits * clickable repo cards * view logs for all dev servers * updates to workspaces * Let's make some changes to the way applications are tested: (vibe-kanban 4592de6c) - When the user starts a dev server, we should automatically open the `PreviewPanel.tsx` - In the preview panel, if no dev server script is set for any of the repos in the workspace show a message along these lines: Vibe Kanban can run dev servers to help you test your changes. You can set this up in the repo settings area. You can learn more about testing applications here: https://www.vibekanban.com/docs/core-features/testing-your-application - We should also not show the `PreviewControlsContainer.tsx` if none of the repos have a dev server script `vibe-kanban/frontend/src/components/panels/PreviewPanel.tsx` `vibe-kanban/frontend/src/components/ui-new/actions/index.ts` `vibe-kanban/frontend/src/components/ui-new/containers/PreviewControlsContainer.tsx` --------- Co-authored-by: Louis Knight-Webb <louis@bloop.ai>
This commit is contained in:
committed by
GitHub
parent
4e20df9823
commit
c5554610a9
@@ -12,11 +12,11 @@ export type SharedTask = { id: string, organization_id: string, project_id: stri
|
||||
|
||||
export type UserData = { user_id: string, first_name: string | null, last_name: string | null, username: string | null, };
|
||||
|
||||
export type Project = { id: string, name: string, dev_script: string | null, dev_script_working_dir: string | null, default_agent_working_dir: string | null, remote_project_id: string | null, created_at: Date, updated_at: Date, };
|
||||
export type Project = { id: string, name: string, default_agent_working_dir: string | null, remote_project_id: string | null, created_at: Date, updated_at: Date, };
|
||||
|
||||
export type CreateProject = { name: string, repositories: Array<CreateProjectRepo>, };
|
||||
|
||||
export type UpdateProject = { name: string | null, dev_script: string | null, dev_script_working_dir: string | null, default_agent_working_dir: string | null, };
|
||||
export type UpdateProject = { name: string | null, default_agent_working_dir: string | null, };
|
||||
|
||||
export type SearchResult = { path: string, is_file: boolean, match_type: SearchMatchType,
|
||||
/**
|
||||
@@ -26,19 +26,19 @@ score: bigint, };
|
||||
|
||||
export type SearchMatchType = "FileName" | "DirectoryName" | "FullPath";
|
||||
|
||||
export type Repo = { id: string, path: string, name: string, display_name: string, created_at: Date, updated_at: Date, };
|
||||
export type Repo = { id: string, path: string, name: string, display_name: string, setup_script: string | null, cleanup_script: string | null, copy_files: string | null, parallel_setup_script: boolean, dev_server_script: string | null, created_at: Date, updated_at: Date, };
|
||||
|
||||
export type ProjectRepo = { id: string, project_id: string, repo_id: string, setup_script: string | null, cleanup_script: string | null, copy_files: string | null, parallel_setup_script: boolean, };
|
||||
export type UpdateRepo = { display_name: string | null, setup_script: string | null, cleanup_script: string | null, copy_files: string | null, parallel_setup_script: boolean | null, dev_server_script: string | null, };
|
||||
|
||||
export type ProjectRepo = { id: string, project_id: string, repo_id: string, };
|
||||
|
||||
export type CreateProjectRepo = { display_name: string, git_repo_path: string, };
|
||||
|
||||
export type UpdateProjectRepo = { setup_script: string | null, cleanup_script: string | null, copy_files: string | null, parallel_setup_script: boolean | null, };
|
||||
|
||||
export type WorkspaceRepo = { id: string, workspace_id: string, repo_id: string, target_branch: string, created_at: Date, updated_at: Date, };
|
||||
|
||||
export type CreateWorkspaceRepo = { repo_id: string, target_branch: string, };
|
||||
|
||||
export type RepoWithTargetBranch = { target_branch: string, id: string, path: string, name: string, display_name: string, created_at: Date, updated_at: Date, };
|
||||
export type RepoWithTargetBranch = { target_branch: string, id: string, path: string, name: string, display_name: string, setup_script: string | null, cleanup_script: string | null, copy_files: string | null, parallel_setup_script: boolean, dev_server_script: string | null, created_at: Date, updated_at: Date, };
|
||||
|
||||
export type Tag = { id: string, tag_name: string, content: string, created_at: string, updated_at: string, };
|
||||
|
||||
@@ -284,8 +284,6 @@ conflicted_files: Array<string>, };
|
||||
|
||||
export type RunScriptError = { "type": "no_script_configured" } | { "type": "process_already_running" };
|
||||
|
||||
export type DeleteWorkspaceError = { "type": "has_running_processes" };
|
||||
|
||||
export type AttachPrResponse = { pr_attached: boolean, pr_url: string | null, pr_number: bigint | null, pr_status: MergeStatus | null, };
|
||||
|
||||
export type AttachExistingPrRequest = { repo_id: string, };
|
||||
|
||||
Reference in New Issue
Block a user