Fix colors, title on create agent card

This commit is contained in:
Debanjum
2024-12-23 19:46:37 -08:00
parent 0b91383deb
commit 0d5fc70aa3
4 changed files with 12 additions and 7 deletions

View File

@@ -33,6 +33,7 @@ import { SidebarInset, SidebarProvider, SidebarTrigger } from "@/components/ui/s
import { AppSidebar } from "../components/appSidebar/appSidebar"; import { AppSidebar } from "../components/appSidebar/appSidebar";
import { Separator } from "@/components/ui/separator"; import { Separator } from "@/components/ui/separator";
import { KhojLogoType } from "../components/logo/khojLogo"; import { KhojLogoType } from "../components/logo/khojLogo";
import { DialogTitle } from "@radix-ui/react-dialog";
export interface AgentData { export interface AgentData {
slug: string; slug: string;
@@ -145,7 +146,9 @@ function CreateAgentCard(props: CreateAgentCardProps) {
"lg:max-w-screen-lg py-4 overflow-y-scroll h-full md:h-4/6 rounded-lg flex flex-col" "lg:max-w-screen-lg py-4 overflow-y-scroll h-full md:h-4/6 rounded-lg flex flex-col"
} }
> >
<DialogHeader>Create Agent</DialogHeader> <DialogHeader>
<DialogTitle>Create Agent</DialogTitle>
</DialogHeader>
{!props.userProfile && showLoginPrompt && ( {!props.userProfile && showLoginPrompt && (
<LoginPrompt <LoginPrompt
onOpenChange={setShowLoginPrompt} onOpenChange={setShowLoginPrompt}

View File

@@ -454,7 +454,9 @@ export function AgentCard(props: AgentCardProps) {
<DialogHeader> <DialogHeader>
<div className="flex items-center"> <div className="flex items-center">
{getIconFromIconName(props.data.icon, props.data.color)} {getIconFromIconName(props.data.icon, props.data.color)}
<p className="font-bold text-lg">{props.data.name}</p> <p className="font-bold text-lg">
<DialogTitle>{props.data.name}</DialogTitle>
</p>
</div> </div>
</DialogHeader> </DialogHeader>
<div className="max-h-[60vh] overflow-y-scroll text-neutral-500 dark:text-white"> <div className="max-h-[60vh] overflow-y-scroll text-neutral-500 dark:text-white">
@@ -938,7 +940,7 @@ export function AgentModificationForm(props: AgentModificationFormProps) {
</FormDescription> </FormDescription>
<FormControl> <FormControl>
<Textarea <Textarea
className="dark:bg-muted" className="dark:bg-muted focus:outline-none focus-visible:border-orange-500 focus-visible:border-2"
placeholder="You are an excellent biologist, at the top of your field in marine biology." placeholder="You are an excellent biologist, at the top of your field in marine biology."
{...field} {...field}
/> />
@@ -1262,7 +1264,7 @@ export function AgentModificationForm(props: AgentModificationFormProps) {
<ScrollArea className="h-full"> <ScrollArea className="h-full">
<form <form
onSubmit={props.form.handleSubmit(handleSubmit)} onSubmit={props.form.handleSubmit(handleSubmit)}
className="space-y-6 pb-4 h-full flex flex-col justify-between" className="space-y-6 pb-4 px-4 h-full flex flex-col justify-between"
> >
<Tabs defaultValue="basic" value={formGroups[currentStep].tabName}> <Tabs defaultValue="basic" value={formGroups[currentStep].tabName}>
<TabsList className="grid grid-cols-2 md:grid-cols-4 gap-2 h-fit"> <TabsList className="grid grid-cols-2 md:grid-cols-4 gap-2 h-fit">
@@ -1304,7 +1306,7 @@ export function AgentModificationForm(props: AgentModificationFormProps) {
)} )}
</form> </form>
</ScrollArea> </ScrollArea>
<div className="flex justify-between mt-1 left-0 right-0 bg-white p-1"> <div className="flex justify-between mt-1 left-0 right-0 bg-background p-1">
<Button <Button
type="button" type="button"
variant={"outline"} variant={"outline"}

View File

@@ -104,7 +104,7 @@ export default function FooterMenu({ sideBarIsOpen }: NavMenuProps) {
<Avatar <Avatar
className={`${sideBarIsOpen ? "h-8 w-8" : "h-6 w-6"} border-2 ${userData.is_active ? "border-yellow-500" : "border-stone-700 dark:border-stone-300"}`} className={`${sideBarIsOpen ? "h-8 w-8" : "h-6 w-6"} border-2 ${userData.is_active ? "border-yellow-500" : "border-stone-700 dark:border-stone-300"}`}
> >
<AvatarImage src={userData?.photo} alt="user profile" /> <AvatarImage src={userData.photo} alt="user profile" />
<AvatarFallback className="bg-transparent hover:bg-muted"> <AvatarFallback className="bg-transparent hover:bg-muted">
{userData.username[0].toUpperCase()} {userData.username[0].toUpperCase()}
</AvatarFallback> </AvatarFallback>

View File

@@ -3,7 +3,7 @@ import { Card, CardContent, CardDescription } from "@/components/ui/card";
import styles from "./suggestions.module.css"; import styles from "./suggestions.module.css";
import { convertSuggestionTitleToIconClass } from "./suggestionsData"; import { convertSuggestionTitleToIconClass } from "./suggestionsData";
import { ArrowLeft, ArrowRight, MagicWand, XCircle } from "@phosphor-icons/react"; import { MagicWand, XCircle } from "@phosphor-icons/react";
interface StepOneSuggestionCardProps { interface StepOneSuggestionCardProps {
title: string; title: string;