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

View File

@@ -59,28 +59,6 @@ function RegulatoryItems({ isMobile }) {
return (
<>
<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
color="text.tertiary"
as={"span"}

View File

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

View File

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

View File

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

View File

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