simplify landing page for my peace

This commit is contained in:
geoffsee
2025-07-16 20:54:25 -04:00
committed by Geoff Seemueller
parent c26d2467f4
commit a7ad06093a
9 changed files with 12 additions and 38 deletions

View File

@@ -23,7 +23,7 @@ export class AssistantSdk {
return `# Assistant Knowledge
## Assistant Name
### yachtpit-ai
### open-gsio
## Current Context
### Date: ${currentDate} ${currentTime}
${maxTokens ? `### Max Response Length: ${maxTokens} tokens (maximum)` : ''}

View File

@@ -49,7 +49,7 @@ const InputTextArea: React.FC<InputTextAreaProps> = observer(
color="text.primary"
borderRadius="20px"
border="none"
placeholder="To Gilligan's island!"
placeholder="Free my mind..."
_placeholder={{
color: 'gray.400',
textWrap: 'nowrap',

View File

@@ -9,7 +9,7 @@ export function formatConversationMarkdown(messages: Instance<typeof IMessage>[]
if (message.role === 'user') {
return `**You**: ${message.content}`;
} else if (message.role === 'assistant') {
return `**yachtpit-ai**: ${message.content}`;
return `**open-gsio**: ${message.content}`;
}
return '';
})

View File

@@ -51,7 +51,7 @@ const MessageBubble = observer(({ msg, scrollRef }) => {
const [isEditing, setIsEditing] = useState(false);
const [isHovered, setIsHovered] = useState(false);
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 messageRef = useRef();

View File

@@ -104,7 +104,7 @@ describe('MessageBubble', () => {
it('should render assistant message correctly', () => {
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');
});

View File

@@ -27,22 +27,8 @@ export const LandingComponent: React.FC = () => {
}, []);
return (
<Box
as="section"
bg="background.primary"
w="100%"
h="100vh"
overflow="hidden"
position="relative"
>
<Box
position="fixed"
bottom="100x"
right="12px"
maxWidth="300px"
minWidth="200px"
zIndex={1000}
>
<Box as="section" bg="background.primary" overflow="hidden" position="relative">
<Box position="fixed" right={0} maxWidth="300px" minWidth="200px" zIndex={1000}>
<Tweakbox
sliders={{
intensity: {
@@ -56,13 +42,6 @@ export const LandingComponent: React.FC = () => {
},
}}
switches={{
bevyScene: {
value: bevyScene,
onChange(enabled) {
setBevyScene(enabled);
},
label: 'Instruments',
},
GpsMap: {
value: mapActive,
onChange(enabled) {
@@ -74,7 +53,7 @@ export const LandingComponent: React.FC = () => {
}
setMapActive(enabled);
},
label: 'Map',
label: 'GPS',
},
AI: {
value: aiActive,
@@ -92,7 +71,7 @@ export const LandingComponent: React.FC = () => {
}}
/>
</Box>
<BevyScene speed={speed} intensity={intensity} glow={glow} visible={bevyScene} />
{/*<BevyScene speed={speed} intensity={intensity} glow={glow} visible={bevyScene} />*/}
</Box>
);
};

View File

@@ -22,11 +22,10 @@ export default function IndexPage() {
const component = useComponent();
return (
<Grid templateColumns="repeat(2, 1fr)" height="100%" width="100%" gap={0}>
<Grid templateColumns="1" height="100%" width="100%" gap={0}>
<GridItem>
<LandingComponent />
</GridItem>
<GridItem p={2}>
<Box
display={component.enabledComponent === 'ai' ? undefined : 'none'}
width="100%"

View File

@@ -1,5 +1,5 @@
export const welcome_home_text = `
# yachtpit-ai
# open-gsio
---
<br/>

View File

@@ -22,10 +22,6 @@ const prebuildPlugin = () => ({
console.log('Generated robots.txt -> public/robots.txt');
child_process.execSync('bun run generate: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');
}
},
});