-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* toggle navbar by thread-btn * remove navbar padding on close * moved assistant-selector to header * add simple intro text if no thread is selected * adjusted roundedness of corners * added favicon * added logo to header * updated assistant-builder test since no longer contains Create Assistant btn
- Loading branch information
Showing
13 changed files
with
56 additions
and
40 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
ui/src/components/features/build-panel/components/assistant-builder.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
ui/src/components/features/chat-panel/components/thread-btn.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Button } from "@/components/ui/button" | ||
import { threadAtom } from "@/store" | ||
import { useAtom } from "jotai" | ||
|
||
export const ThreadBtn = () => { | ||
const [_, setIsNavbarOpen] = useAtom(threadAtom) | ||
|
||
const openNavbar = () => setIsNavbarOpen(isOpen => !isOpen); | ||
|
||
return <Button variant="outline" className="w-1/4 m-2" onClick={openNavbar}>Threads</Button> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
'use client' | ||
import { Button } from "@/components/ui/button"; | ||
import { AssistantSelector } from "../../build-panel/components/assistant-selector"; | ||
import { useRouter } from "next/navigation"; | ||
import { Plus } from "lucide-react"; | ||
import PersonaFlowIcon from '../../../../../assets/PersonaFlowIcon-512.png' | ||
import Image from "next/image"; | ||
|
||
export default function Header() { | ||
const router = useRouter() | ||
return ( | ||
<div className="flex gap-2"> | ||
<h1>[ personaflow ]</h1> | ||
<div className="flex gap-2 m-2 justify-between"> | ||
<div className="flex gap-4 items-center"> | ||
<Image className="rounded" src={PersonaFlowIcon} alt="PersonaFlow logo" width={40} height={40}/> | ||
<h1>[ personaflow ]</h1> | ||
</div> | ||
<div className="flex gap-2"> | ||
<AssistantSelector /> | ||
<Button | ||
className="flex gap-2" | ||
onClick={() => router.push('/')} | ||
> | ||
<Plus /> | ||
Create Assistant | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { atom } from 'jotai' | ||
import { TMessage } from './data-provider/types' | ||
|
||
export const messagesAtom = atom<TMessage[]>([]); | ||
export const messagesAtom = atom<TMessage[]>([]); | ||
export const threadAtom = atom<boolean>(false); |