Skip to content

Commit b054b29

Browse files
authored
Merge pull request #66 from FlowTestAI/ui-logo-v1
Adding multiple logos for version 1
2 parents b131e46 + 0fcf91c commit b054b29

File tree

12 files changed

+63
-11
lines changed

12 files changed

+63
-11
lines changed
23.7 KB
Loading
26.4 KB
Loading

src/assets/icons/flow-GPU.png

22.8 KB
Loading

src/assets/icons/flow-triangle.png

23 KB
Loading

src/components/atoms/Tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const Tabs = () => {
4848
};
4949

5050
return (
51-
<div role='tablist' className='overflow-scroll tabs tabs-lg'>
51+
<div role='tablist' className='tabs tabs-lg'>
5252
{tabs
5353
// tabs belonging to one collection will be shown at a time
5454
//.reverse()
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
import FlowGPU from 'assets/icons/Flow-GPU-text-no-background-white.png';
4+
5+
const HomeLoadingScreen = (props) => {
6+
return (
7+
<div className='absolute z-50 flex flex-col items-center justify-center w-full h-full p-4 bg-slate-500/50'>
8+
<div className='h-72 w-72'>
9+
<img src={FlowGPU} alt='FlowTestAI app logo' />
10+
</div>
11+
<span className='mt-8 text-white loading loading-spinner loading-lg'></span>
12+
</div>
13+
);
14+
};
15+
16+
HomeLoadingScreen.propTypes = {};
17+
18+
export default HomeLoadingScreen;

src/components/molecules/headers/MainHeader.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
import React from 'react';
22
import ThemeController from 'components/atoms/ThemeController';
33
import AppLogo from 'components/atoms/Logo';
4+
import FlowGPU from 'assets/icons/flow-GPU.png';
5+
import FlowTriangle from 'assets/icons/flow-triangle.png';
46

57
const MainHeader = () => {
68
return (
79
<header className='flex items-center justify-between px-4 py-2 font-semibold tracking-widest border-b border-neutral-300'>
8-
<div className='flex items-center gap-2'>
10+
<div className='flex items-center gap-4'>
911
<AppLogo styleClasses='w-6 h-6' />
12+
<div className='w-6 h-6'>
13+
<img src={FlowGPU} alt='FlowTestAI app logo' />
14+
</div>
15+
<div className='w-6 h-6'>
16+
<img src={FlowTriangle} alt='FlowTestAI app logo' />
17+
</div>
1018
<h2>FlowTestAI</h2>
1119
</div>
1220
<ThemeController />

src/components/molecules/headers/WorkspaceHeader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const WorkspaceHeader = () => {
1515

1616
return (
1717
<div className='flex items-center justify-between gap-8 pr-4 border-b border-neutral-300 bg-slate-100'>
18-
<div className='flex items-center overflow-scroll'>
18+
<div className='flex items-center overflow-x-auto'>
1919
<Tabs />
2020
<button className='flex cursor-not-allowed flex-col items-center bg-slate-100 p-3.5 text-center text-slate-400'>
2121
<Tippy content='Coming Soon!' placement='right'>

src/components/molecules/modals/GenerateFlowTestModal.js

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const GenerateFlowTestModal = ({ closeFn = () => null, open = false, collectionI
4646
leaveFrom='opacity-100 scale-100'
4747
leaveTo='opacity-0 scale-95'
4848
>
49-
<Dialog.Panel className='w-full max-w-md p-6 overflow-hidden text-left align-middle transition-all transform bg-white shadow-xl rounded-2xl'>
49+
<Dialog.Panel className='w-full max-w-2xl p-6 overflow-hidden text-left align-middle transition-all transform bg-white shadow-xl rounded-2xl'>
5050
<Dialog.Title
5151
as='h3'
5252
className='pb-4 text-lg font-semibold text-center text-gray-900 border-b border-neutral-300'
@@ -56,7 +56,7 @@ const GenerateFlowTestModal = ({ closeFn = () => null, open = false, collectionI
5656
<div className='mt-6'>
5757
<Listbox value={selectedModel} onChange={setSelectedModel}>
5858
<div className='relative flex w-full h-full'>
59-
<Listbox.Button className='flex items-center justify-between w-full gap-4 py-4 border rounded cursor-default border-neutral-300'>
59+
<Listbox.Button className='flex items-center justify-between w-full gap-4 px-2 py-4 border rounded cursor-default border-neutral-300'>
6060
<div className='pl-2 text-left min-w-32'>{selectedModel ? selectedModel : 'Select model'}</div>
6161
<ChevronUpDownIcon className='w-5 h-5' aria-hidden='true' />
6262
</Listbox.Button>
@@ -66,7 +66,7 @@ const GenerateFlowTestModal = ({ closeFn = () => null, open = false, collectionI
6666
leaveFrom='opacity-100'
6767
leaveTo='opacity-0'
6868
>
69-
<Listbox.Options className='absolute right-0 z-10 w-full py-1 mt-1 overflow-auto text-base bg-white rounded shadow-lg top-6 max-h-60 ring-1 ring-black/5'>
69+
<Listbox.Options className='absolute right-0 z-10 w-full py-1 mt-1 overflow-auto text-base bg-white rounded shadow-lg top-12 max-h-60 ring-1 ring-black/5'>
7070
{Object.values(GENAI_MODELS).map((modelType) => (
7171
<Listbox.Option
7272
key={modelType}
@@ -95,10 +95,30 @@ const GenerateFlowTestModal = ({ closeFn = () => null, open = false, collectionI
9595
</Transition>
9696
</div>
9797
</Listbox>
98-
<div className='mt-4'>
98+
{selectedModel === GENAI_MODELS.openai ? (
99+
<div className='flex items-center justify-center w-full h-12 mt-8 text-sm border rounded-md border-neutral-500 text-neutral-500 outline-0 focus:ring-0'>
100+
<label
101+
className='flex items-center w-32 h-full px-4 border-r border-r-neutral-500'
102+
htmlFor='openAIkey'
103+
>
104+
OpenAI Key
105+
</label>
106+
<input
107+
id='openAIkey'
108+
type='text'
109+
className='nodrag nowheel block w-full p-2.5'
110+
name='keyName'
111+
placeholder='Enter your Open AI key'
112+
onChange={(e) => console.log(e.target.value)}
113+
/>
114+
</div>
115+
) : (
116+
''
117+
)}
118+
<div className='mt-8'>
99119
<textarea
100120
id='gen-ai-text'
101-
className='block w-full rounded border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 outline-blue-300 focus:border-blue-100 focus:ring-blue-100'
121+
className='block w-full p-4 text-sm text-gray-900 border border-gray-300 rounded min-h-80 bg-gray-50 outline-blue-300 focus:border-blue-100 focus:ring-blue-100'
102122
placeholder='Describe your flow step by step'
103123
onChange={(event) => setTextareaValue(event.target.value)}
104124
/>

src/components/molecules/sidebar/content/Collections.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const Collections = ({ collections }) => {
5959

6060
return (
6161
<div
62-
className='h-[87vh] overflow-y-scroll'
62+
className='h-[87vh] overflow-y-auto'
6363
onClick={(event) => {
6464
const clickFromElementDataSet = event.target.dataset;
6565
const clickFrom = clickFromElementDataSet?.clickFrom;

0 commit comments

Comments
 (0)