**Remove dead links and redundant comments; improve styling and clarity across multiple files**

- Removed outdated links and unused properties in Sidebar and Welcome Home Text files.
- Dropped extraneous comments and consolidated imports in server files for streamlined code.
- Enhanced MarkdownEditor visuals with a colorful border for better user experience.
This commit is contained in:
geoffsee
2025-06-24 15:23:34 -04:00
parent a367812fe7
commit bdbc8de6d5
6 changed files with 7 additions and 40 deletions

View File

@@ -8,7 +8,6 @@ export const MarkdownEditor = (props: {
}) => { }) => {
return ( return (
<Box> <Box>
<link rel="stylesheet" href="/packages/client/public" media="print" onLoad="this.media='all'" />
<Textarea <Textarea
value={props.markdown} value={props.markdown}
placeholder={props.placeholder} placeholder={props.placeholder}
@@ -17,6 +16,7 @@ export const MarkdownEditor = (props: {
minHeight="150px" minHeight="150px"
height="100%" height="100%"
resize="none" resize="none"
borderColor="text.accent"
/> />
</Box> </Box>
); );

View File

@@ -59,28 +59,6 @@ function RegulatoryItems({ isMobile }) {
return ( return (
<> <>
<VStack alignItems={isMobile ? "flex-start" : "flex-end"} spacing={1}> <VStack alignItems={isMobile ? "flex-start" : "flex-end"} spacing={1}>
<NavItem
color="text.tertiary"
as={"span"}
path=""
cursor={"pointer"}
onClick={() => {
window.open("https://geoff.seemueller.io");
}}
>
geoff.seemueller.io
</NavItem>
<NavItem
color="text.tertiary"
as={"span"}
path=""
cursor={"pointer"}
onClick={() => {
window.open("https://seemueller.ai");
}}
>
seemueller.ai
</NavItem>
<NavItem <NavItem
color="text.tertiary" color="text.tertiary"
as={"span"} as={"span"}

View File

@@ -1,10 +1,5 @@
// Top level control interface for navigation
export default { export default {
"/": { sidebarLabel: "Home", heroLabel: "open-gsio" }, "/": { sidebarLabel: "Home", heroLabel: "gsio" },
// "/about": { sidebarLabel: "About", heroLabel: "About Me" },
// "/resume": { sidebarLabel: "Resume", heroLabel: "resume" },
// "/demo": { sidebarLabel: "Demo", heroLabel: "Demos" },
// "/services": { sidebarLabel: "Services", heroLabel: "services" },
"/connect": { sidebarLabel: "Connect", heroLabel: "connect" }, "/connect": { sidebarLabel: "Connect", heroLabel: "connect" },
"/privacy-policy": { "/privacy-policy": {
sidebarLabel: "", sidebarLabel: "",

View File

@@ -3,9 +3,6 @@ export const welcome_home_text = `
--- ---
Please enjoy [responsibly](https://centerforresponsible.ai/the-center) Please enjoy [responsibly](https://centerforresponsible.ai/the-center)
<br/> <br/>
[My Resume](https://wellfound.com/u/geoff-seemueller)
<br/> <br/>
`; `;

View File

@@ -1,5 +1,5 @@
import { Utils } from "./utils.ts"; import { Utils } from "./utils";
import few_shots from "../prompts/few_shots.ts"; import few_shots from "../prompts/few_shots";
export class AssistantSdk { export class AssistantSdk {
static getAssistantPrompt(params: { static getAssistantPrompt(params: {
@@ -12,12 +12,10 @@ export class AssistantSdk {
userTimezone = "UTC", userTimezone = "UTC",
userLocation = "", userLocation = "",
} = params; } = params;
// Handle both nested and flat few_shots structures
// console.log('[DEBUG_LOG] few_shots:', JSON.stringify(few_shots)); // console.log('[DEBUG_LOG] few_shots:', JSON.stringify(few_shots));
let selectedFewshots = Utils.selectEquitably?.(few_shots); let selectedFewshots = Utils.selectEquitably?.(few_shots);
// console.log('[DEBUG_LOG] selectedFewshots after Utils.selectEquitably:', JSON.stringify(selectedFewshots)); // console.log('[DEBUG_LOG] selectedFewshots after Utils.selectEquitably:', JSON.stringify(selectedFewshots));
if (!selectedFewshots) { if (!selectedFewshots) {
// If Utils.selectEquitably returns undefined, use few_shots directly
selectedFewshots = few_shots; selectedFewshots = few_shots;
// console.log('[DEBUG_LOG] selectedFewshots after fallback:', JSON.stringify(selectedFewshots)); // console.log('[DEBUG_LOG] selectedFewshots after fallback:', JSON.stringify(selectedFewshots));
} }
@@ -30,7 +28,7 @@ export class AssistantSdk {
return `# Assistant Knowledge return `# Assistant Knowledge
## Current Context ## Current Context
- **Date**: ${currentDate} ${currentTime} - **Date**: ${currentDate} ${currentTime}
- **Web Host**: geoff.seemueller.io - Web Host open-gsio.seemueller.workers.dev
${maxTokens ? `- **Response Limit**: ${maxTokens} tokens (maximum)` : ""} ${maxTokens ? `- **Response Limit**: ${maxTokens} tokens (maximum)` : ""}
- **Lexicographical Format**: Commonmark marked.js with gfm enabled. - **Lexicographical Format**: Commonmark marked.js with gfm enabled.
- **User Location**: ${userLocation || "Unknown"} - **User Location**: ${userLocation || "Unknown"}

View File

@@ -4,8 +4,8 @@ const a = {
}; };
const b = { const b = {
"Calculate the number of unique ways to arrange the letters in the word SUCCESS.": ` "Calculate the number of unique ways to arrange the letters in the word SUCCESS.":
Alright, let's tackle 'SUCCESS' and see just how unique it can get! `Alright, let's tackle 'SUCCESS' and see just how unique it can get!
### Step 1: Count the Letters ### Step 1: Count the Letters
The word 'SUCCESS' has 7 letters, but its no free-for-all—there are repeats! The word 'SUCCESS' has 7 letters, but its no free-for-all—there are repeats!
- S: 3 times - S: 3 times
@@ -60,7 +60,6 @@ There are 34,650 unique arrangements of 'MISSISSIPPI'.`,
}; };
const c = { const c = {
// c remains unchanged as it contains image generation prompts
"Render a Greek statue with warm marble tones and realistic proportions.": "Render a Greek statue with warm marble tones and realistic proportions.":
"I don't have the ability to generate images right now. ", "I don't have the ability to generate images right now. ",
}; };