mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
simplify landing page for my peace
This commit is contained in:

committed by
Geoff Seemueller

parent
c26d2467f4
commit
a7ad06093a
@@ -23,7 +23,7 @@ export class AssistantSdk {
|
|||||||
|
|
||||||
return `# Assistant Knowledge
|
return `# Assistant Knowledge
|
||||||
## Assistant Name
|
## Assistant Name
|
||||||
### yachtpit-ai
|
### open-gsio
|
||||||
## Current Context
|
## Current Context
|
||||||
### Date: ${currentDate} ${currentTime}
|
### Date: ${currentDate} ${currentTime}
|
||||||
${maxTokens ? `### Max Response Length: ${maxTokens} tokens (maximum)` : ''}
|
${maxTokens ? `### Max Response Length: ${maxTokens} tokens (maximum)` : ''}
|
||||||
|
@@ -49,7 +49,7 @@ const InputTextArea: React.FC<InputTextAreaProps> = observer(
|
|||||||
color="text.primary"
|
color="text.primary"
|
||||||
borderRadius="20px"
|
borderRadius="20px"
|
||||||
border="none"
|
border="none"
|
||||||
placeholder="To Gilligan's island!"
|
placeholder="Free my mind..."
|
||||||
_placeholder={{
|
_placeholder={{
|
||||||
color: 'gray.400',
|
color: 'gray.400',
|
||||||
textWrap: 'nowrap',
|
textWrap: 'nowrap',
|
||||||
|
@@ -9,7 +9,7 @@ export function formatConversationMarkdown(messages: Instance<typeof IMessage>[]
|
|||||||
if (message.role === 'user') {
|
if (message.role === 'user') {
|
||||||
return `**You**: ${message.content}`;
|
return `**You**: ${message.content}`;
|
||||||
} else if (message.role === 'assistant') {
|
} else if (message.role === 'assistant') {
|
||||||
return `**yachtpit-ai**: ${message.content}`;
|
return `**open-gsio**: ${message.content}`;
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
})
|
})
|
||||||
|
@@ -51,7 +51,7 @@ const MessageBubble = observer(({ msg, scrollRef }) => {
|
|||||||
const [isEditing, setIsEditing] = useState(false);
|
const [isEditing, setIsEditing] = useState(false);
|
||||||
const [isHovered, setIsHovered] = useState(false);
|
const [isHovered, setIsHovered] = useState(false);
|
||||||
const isUser = msg.role === 'user';
|
const isUser = msg.role === 'user';
|
||||||
const senderName = isUser ? 'You' : 'yachtpit-ai';
|
const senderName = isUser ? 'You' : 'open-gsio';
|
||||||
const isLoading = !msg.content || !(msg.content.trim().length > 0);
|
const isLoading = !msg.content || !(msg.content.trim().length > 0);
|
||||||
const messageRef = useRef();
|
const messageRef = useRef();
|
||||||
|
|
||||||
|
@@ -104,7 +104,7 @@ describe('MessageBubble', () => {
|
|||||||
it('should render assistant message correctly', () => {
|
it('should render assistant message correctly', () => {
|
||||||
render(<MessageBubble msg={mockAssistantMessage} scrollRef={mockScrollRef} />);
|
render(<MessageBubble msg={mockAssistantMessage} scrollRef={mockScrollRef} />);
|
||||||
|
|
||||||
expect(screen.getByText('yachtpit-ai')).toBeInTheDocument();
|
expect(screen.getByText('open-gsio')).toBeInTheDocument();
|
||||||
expect(screen.getByTestId('message-content')).toHaveTextContent('Assistant response');
|
expect(screen.getByTestId('message-content')).toHaveTextContent('Assistant response');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -27,22 +27,8 @@ export const LandingComponent: React.FC = () => {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box as="section" bg="background.primary" overflow="hidden" position="relative">
|
||||||
as="section"
|
<Box position="fixed" right={0} maxWidth="300px" minWidth="200px" zIndex={1000}>
|
||||||
bg="background.primary"
|
|
||||||
w="100%"
|
|
||||||
h="100vh"
|
|
||||||
overflow="hidden"
|
|
||||||
position="relative"
|
|
||||||
>
|
|
||||||
<Box
|
|
||||||
position="fixed"
|
|
||||||
bottom="100x"
|
|
||||||
right="12px"
|
|
||||||
maxWidth="300px"
|
|
||||||
minWidth="200px"
|
|
||||||
zIndex={1000}
|
|
||||||
>
|
|
||||||
<Tweakbox
|
<Tweakbox
|
||||||
sliders={{
|
sliders={{
|
||||||
intensity: {
|
intensity: {
|
||||||
@@ -56,13 +42,6 @@ export const LandingComponent: React.FC = () => {
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
switches={{
|
switches={{
|
||||||
bevyScene: {
|
|
||||||
value: bevyScene,
|
|
||||||
onChange(enabled) {
|
|
||||||
setBevyScene(enabled);
|
|
||||||
},
|
|
||||||
label: 'Instruments',
|
|
||||||
},
|
|
||||||
GpsMap: {
|
GpsMap: {
|
||||||
value: mapActive,
|
value: mapActive,
|
||||||
onChange(enabled) {
|
onChange(enabled) {
|
||||||
@@ -74,7 +53,7 @@ export const LandingComponent: React.FC = () => {
|
|||||||
}
|
}
|
||||||
setMapActive(enabled);
|
setMapActive(enabled);
|
||||||
},
|
},
|
||||||
label: 'Map',
|
label: 'GPS',
|
||||||
},
|
},
|
||||||
AI: {
|
AI: {
|
||||||
value: aiActive,
|
value: aiActive,
|
||||||
@@ -92,7 +71,7 @@ export const LandingComponent: React.FC = () => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<BevyScene speed={speed} intensity={intensity} glow={glow} visible={bevyScene} />
|
{/*<BevyScene speed={speed} intensity={intensity} glow={glow} visible={bevyScene} />*/}
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@@ -22,11 +22,10 @@ export default function IndexPage() {
|
|||||||
const component = useComponent();
|
const component = useComponent();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Grid templateColumns="repeat(2, 1fr)" height="100%" width="100%" gap={0}>
|
<Grid templateColumns="1" height="100%" width="100%" gap={0}>
|
||||||
<GridItem>
|
<GridItem>
|
||||||
<LandingComponent />
|
<LandingComponent />
|
||||||
</GridItem>
|
|
||||||
<GridItem p={2}>
|
|
||||||
<Box
|
<Box
|
||||||
display={component.enabledComponent === 'ai' ? undefined : 'none'}
|
display={component.enabledComponent === 'ai' ? undefined : 'none'}
|
||||||
width="100%"
|
width="100%"
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
export const welcome_home_text = `
|
export const welcome_home_text = `
|
||||||
# yachtpit-ai
|
# open-gsio
|
||||||
---
|
---
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
@@ -22,10 +22,6 @@ const prebuildPlugin = () => ({
|
|||||||
console.log('Generated robots.txt -> public/robots.txt');
|
console.log('Generated robots.txt -> public/robots.txt');
|
||||||
child_process.execSync('bun run generate:fonts');
|
child_process.execSync('bun run generate:fonts');
|
||||||
console.log('Copied fonts -> public/static/fonts');
|
console.log('Copied fonts -> public/static/fonts');
|
||||||
child_process.execSync('bun run generate:bevy:bundle', {
|
|
||||||
stdio: 'inherit',
|
|
||||||
});
|
|
||||||
console.log('Bundled bevy app -> public/yachtpit.html');
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user