From 72f8c6815a1432f197d0a074ea7d963a531fb8e6 Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Thu, 10 Apr 2025 16:25:20 +0530 Subject: [PATCH] Remove outer layer for projects page --- apps/rowboat/app/globals.css | 5 - apps/rowboat/app/lib/feature_flags.ts | 2 +- apps/rowboat/app/projects/select/app.tsx | 398 +++++++++--------- .../select/components/search-projects.tsx | 2 +- 4 files changed, 193 insertions(+), 214 deletions(-) diff --git a/apps/rowboat/app/globals.css b/apps/rowboat/app/globals.css index d7b5d1bb..359e21ab 100644 --- a/apps/rowboat/app/globals.css +++ b/apps/rowboat/app/globals.css @@ -102,11 +102,6 @@ html, body { transition-all duration-200 ease-in-out; } - .card:hover { - @apply shadow-[0_4px_12px_rgba(0,0,0,0.06)] - transform translate-y-[-1px]; - } - /* Update input styles */ input, textarea, select { @apply rounded-lg border-[#E5E7EB] dark:border-[#2E2E30] diff --git a/apps/rowboat/app/lib/feature_flags.ts b/apps/rowboat/app/lib/feature_flags.ts index 346b1c75..7040874d 100644 --- a/apps/rowboat/app/lib/feature_flags.ts +++ b/apps/rowboat/app/lib/feature_flags.ts @@ -5,7 +5,7 @@ export const USE_CHAT_WIDGET = process.env.USE_CHAT_WIDGET === 'true'; export const USE_AUTH = process.env.USE_AUTH === 'true'; // Hardcoded flags -export const USE_MULTIPLE_PROJECTS = false; +export const USE_MULTIPLE_PROJECTS = true; export const USE_TESTING_FEATURE = false; export const USE_VOICE_FEATURE = false; export const USE_TRANSFER_CONTROL_OPTIONS = false; \ No newline at end of file diff --git a/apps/rowboat/app/projects/select/app.tsx b/apps/rowboat/app/projects/select/app.tsx index 59bcb9c1..8abf6721 100644 --- a/apps/rowboat/app/projects/select/app.tsx +++ b/apps/rowboat/app/projects/select/app.tsx @@ -11,7 +11,6 @@ import { templates, starting_copilot_prompts } from "@/app/lib/project_templates import { SectionHeading } from "@/components/ui/section-heading"; import { Textarea } from "@/components/ui/textarea"; import { SearchProjects } from "./components/search-projects"; -import { CustomPromptCard } from "./components/custom-prompt-card"; import { Submit } from "./components/submit-button"; import { PageHeading } from "@/components/ui/page-heading"; import { USE_MULTIPLE_PROJECTS } from "@/app/lib/feature_flags"; @@ -297,235 +296,220 @@ export default function App() { return (
- + {/* Left side: Project Selection */} + {USE_MULTIPLE_PROJECTS && isProjectPaneOpen && ( +
+ setIsProjectPaneOpen(false)} + /> +
+ )} + {/* Right side: Project Creation */}
- {/* Left side: Project Selection */} - {USE_MULTIPLE_PROJECTS && isProjectPaneOpen && ( -
- setIsProjectPaneOpen(false)} - /> -
- )} - - {/* Right side: Project Creation */} -
-
- {USE_MULTIPLE_PROJECTS && ( -
- - Create a new project + {USE_MULTIPLE_PROJECTS && ( +
+ + Create a new assistant + + {!isProjectPaneOpen && ( + + )} +
+ )} + +
{ + // Prevent default form submission + e.preventDefault(); + const formData = new FormData(e.currentTarget); + handleSubmit(formData); + }} + onKeyDown={handleKeyDown} + className="pt-6 pb-16 space-y-12" + > + {/* Tab Section */} +
+
+ + ✨ Get started - {!isProjectPaneOpen && ( - - )}
- )} - - { - // Prevent default form submission - e.preventDefault(); - const formData = new FormData(e.currentTarget); - handleSubmit(formData); - }} - onKeyDown={handleKeyDown} - className="pt-12 pb-16 space-y-12" - > - {/* Tab Section */} -
-
- - ✨ Get started - -
- {/* Tab Navigation */} -
+ {/* Tab Navigation */} +
+ + +
- -
- - - {isExamplesDropdownOpen && ( -
-
- {Object.entries(starting_copilot_prompts) - .filter(([name]) => name !== 'Blank Template') - .map(([name]) => ( - - )) - } -
+ + {isExamplesDropdownOpen && ( +
+
+ {Object.entries(starting_copilot_prompts) + .filter(([name]) => name !== 'Blank Template') + .map(([name]) => ( + + )) + }
+
+ )} +
+
+
+ + {/* Custom Prompt Section - Only show when needed */} + {(selectedTab === TabType.Describe || selectedTab === TabType.Example) && ( +
+
+ +
+