Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Nov 30, 2024
1 parent 586a30a commit bb51755
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 116 deletions.
11 changes: 0 additions & 11 deletions webapp/chat-app/src/components/MessageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,17 +303,6 @@ const MessageList: React.FC<MessageListProps> = ({messages: propMessages}) => {
};
}, []);


const processMessageContent = useCallback((content: string) => {
logger.debug('Processing message content', {contentLength: content.length});
const processed = expandMessageReferences(content, messages);
// Re-highlight code blocks after theme change
requestAnimationFrame(() => {
Prism.highlightAll();
});
return processed;
}, [messages]);

React.useEffect(() => {
logger.debug('MessageList - Messages updated', {
messageCount: messages.length,
Expand Down
13 changes: 0 additions & 13 deletions webapp/chat-app/src/styles/GlobalStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,6 @@ const logStyleChange = (component: string, property: string, value: any) => {
console.log(`[${timestamp}] GlobalStyles: ${component} - ${property}:`, value);
};

// Log when global styles are being applied
const logThemeChange = (theme: DefaultTheme) => {
const timestamp = new Date().toISOString();
console.group(`[${timestamp}] GlobalStyles: Theme Application`);
console.log('Theme configuration:', {
background: theme.colors.background,
textColor: theme.colors.text.primary,
fontFamily: theme.typography.fontFamily,
fontSize: theme.typography.fontSize.md
});
console.groupEnd();
};

export const GlobalStyles = createGlobalStyle<{ theme: DefaultTheme }>`
/* Theme CSS variables */
:root {
Expand Down
2 changes: 0 additions & 2 deletions webapp/chat-app/src/themes/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,5 +399,3 @@ export const logThemeChange = (from: ThemeName, to: ThemeName) => {
timestamp: new Date().toISOString()
});
};
// Export logger for use in other components
export const themeLogger = logger;
11 changes: 0 additions & 11 deletions webapp/chat-app/src/types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,4 @@ declare global {
}
}

interface AppConfig {
singleInput: boolean;
stickyInput: boolean;
loadImages: boolean;
showMenubar: boolean;
applicationName: string;
websocket: WebSocketConfig;
appInfo: any | null;
// ... other existing properties
}

export type {AppConfig};
75 changes: 0 additions & 75 deletions webapp/chat-app/src/utils/storage.ts

This file was deleted.

4 changes: 0 additions & 4 deletions webapp/chat-app/src/utils/tabHandling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export interface TabContainer extends HTMLElement {
contentObservers?: Map<string, MutationObserver>;
}

// Track active tab observers
export const tabObservers = new Map<string, Map<string, MutationObserver>>();
// Add diagnostic counters
const diagnostics = {
saveCount: 0,
Expand Down Expand Up @@ -405,8 +403,6 @@ export const updateTabs = debounce(() => {
return;
}
isMutating = true;
// Capture current versions before update
const previousVersions = new Map(tabStateVersions);

// Get current tab states
const currentStates = getAllTabStates();
Expand Down

0 comments on commit bb51755

Please sign in to comment.