11import React , { useState } from 'react' ;
2- import { DocumentArrowDownIcon , DocumentArrowUpIcon } from '@heroicons/react/20/solid' ;
2+ import {
3+ DocumentArrowDownIcon ,
4+ DocumentArrowUpIcon ,
5+ SparklesIcon ,
6+ DocumentTextIcon ,
7+ } from '@heroicons/react/24/outline' ;
38import Tippy from '@tippyjs/react' ;
49import 'tippy.js/dist/tippy.css' ;
510import SaveFlowModal from '../modals/SaveFlowModal' ;
@@ -17,31 +22,56 @@ const TabPanelHeader = () => {
1722 const [ generateFlowTestModalOpen , setGenerateFlowTestModalOpen ] = useState ( false ) ;
1823
1924 return (
20- < div className = 'flex items-center justify-between gap-4 border-b border-neutral-300 px-6 py-2 ' >
25+ < div className = 'flex items-center justify-between gap-4 px-6 py-2 border-b border-neutral-300' >
2126 { focusTab ? (
2227 < >
2328 < div className = 'text-base tracking-[0.15em]' > { focusTab . name } </ div >
24- < div className = 'flex items-center justify-between gap-x-4 border-l border-neutral-300' >
25- < div className = 'flex items-center justify-between gap-x-4 pl -4' >
29+ < div className = 'flex items-center justify-between border-l gap-x-4 border-neutral-300' >
30+ < div className = 'flex items-center justify-between pl-4 gap-x -4' >
2631 < SaveFlowModal tab = { focusTab } />
32+ { /* ToDo: Create our own side sheet component */ }
33+ < div className = 'drawer drawer-end' >
34+ < input id = 'graph-logs-side-sheet' type = 'checkbox' className = 'drawer-toggle' />
35+ < div className = 'cursor-pointer drawer-content' >
36+ < Tippy content = 'Logs' placement = 'top' >
37+ < label htmlFor = 'graph-logs-side-sheet' >
38+ < DocumentTextIcon className = 'w-5 h-5' />
39+ </ label >
40+ </ Tippy >
41+ </ div >
42+
43+ < div className = 'z-50 drawer-side' >
44+ < label htmlFor = 'graph-logs-side-sheet' aria-label = 'close sidebar' className = 'drawer-overlay' > </ label >
45+ < ul className = 'min-h-full p-4 menu w-80 bg-base-200 text-base-content' >
46+ < li >
47+ < a > Sidebar Item 1</ a >
48+ </ li >
49+ < li >
50+ < a > Sidebar Item 2</ a >
51+ </ li >
52+ </ ul >
53+ </ div >
54+ </ div >
2755 < button >
2856 < Tippy content = 'Coming Soon!' placement = 'top' >
29- < DocumentArrowDownIcon className = 'h -5 w-5 ' />
57+ < DocumentArrowDownIcon className = 'w -5 h-5 fill-neutral-200 text-neutral-400 ' />
3058 </ Tippy >
3159 </ button >
3260 < button >
3361 < Tippy content = 'Coming Soon!' placement = 'top' >
34- < DocumentArrowUpIcon className = 'h -5 w-5 ' />
62+ < DocumentArrowUpIcon className = 'w -5 h-5 fill-neutral-200 text-neutral-400 ' />
3563 </ Tippy >
3664 </ button >
3765 </ div >
38- < div className = 'gen_ai_button border-l border-neutral-300 pl-4 ' >
66+ < div className = 'pl-4 border-l gen_ai_button border-neutral-300' >
3967 < Button
4068 btnType = { BUTTON_TYPES . tertiary }
4169 isDisabled = { false }
4270 onClickHandle = { ( ) => setGenerateFlowTestModalOpen ( true ) }
4371 fullWidth = { true }
72+ className = 'flex items-center justify-between gap-x-4'
4473 >
74+ < SparklesIcon className = 'w-5 h-5' />
4575 Generate
4676 </ Button >
4777 < GenerateFlowTestModal
@@ -52,7 +82,7 @@ const TabPanelHeader = () => {
5282 </ div >
5383 </ >
5484 ) : (
55- < div className = 'text-base tracking-[0.15em]' > </ div >
85+ < div className = 'text-base tracking-[0.15em]' > Please select a flow test from the sidebar </ div >
5686 ) }
5787 </ div >
5888 ) ;
0 commit comments