From a6c5f1db928a22350bd124b72796921fd945359d Mon Sep 17 00:00:00 2001
From: Thomas Petersen
- Ask about this page -
-- Start a conversation with the project agent. -
-+ {homeChannel + ? "Explain what this project should be" + : "Ask about this page"} +
++ {homeChannel + ? "The project agent will build it out from this channel." + : "Start a conversation with the project agent."} +
++ This project's channel could not be found. +
++ Attach a repository to browse the file tree beside this channel. +
+
+
None yet
+ )} + +#{intro.channelName}
-- This is the beginning of the{" "} - - {intro.channelKindLabel} - - . -
+ {intro.hideBeginning ? null : ( ++ This is the beginning of the{" "} + + {intro.channelKindLabel} + + . +
+ )} {intro.description ? (
{intro.description}
diff --git a/desktop/src/features/projects/createProject.ts b/desktop/src/features/projects/createProject.ts
index f11a7905303..8adfe777a96 100644
--- a/desktop/src/features/projects/createProject.ts
+++ b/desktop/src/features/projects/createProject.ts
@@ -33,6 +33,7 @@ export type CreateProjectInput = {
channelVisibility?: ChannelVisibility;
projectVisibility?: ProjectListingVisibility;
agents?: readonly CreateChannelManagedAgentInput[];
+ templateId?: string;
};
export type CreateProjectResult = {
diff --git a/desktop/src/features/projects/hooks.ts b/desktop/src/features/projects/hooks.ts
index 4e26287f65e..1e397c7141e 100644
--- a/desktop/src/features/projects/hooks.ts
+++ b/desktop/src/features/projects/hooks.ts
@@ -78,11 +78,9 @@ export type {
ProjectPullRequestCommentAnchor,
Repository,
};
-
export type ProjectPullRequestCommentDecision = "request-changes";
const HIDDEN_PROJECT_CARDS_KEY = "buzz.projects.hidden-cards.v1";
-
export type RepoState = {
branches: Array<{ name: string; commit: string }>;
tags: Array<{ name: string; commit: string }>;
@@ -213,8 +211,10 @@ function eventToRepoState(event: RelayEvent): RepoState {
updatedAt: event.created_at,
};
}
-
-async function fetchRepoState(project: Repository): Promise