Footer enhancements and performance optimizations #9

Merged
deco merged 10 commits from footer-enhancements into main 2025-07-22 23:01:23 +03:00
Showing only changes of commit c8a7b83fc4 - Show all commits

View file

@ -93,9 +93,9 @@ export default function Home() {
const handleSetActive = useCallback(async (screen: ScreenType, id: number | null) => { const handleSetActive = useCallback(async (screen: ScreenType, id: number | null) => {
const selectedStream = streams.find((stream) => stream.id === id); const selectedStream = streams.find((stream) => stream.id === id);
// Generate stream group name for optimistic updates // Generate stream group name for optimistic updates - must match obsClient.js format
const streamGroupName = selectedStream const streamGroupName = selectedStream
? `${selectedStream.name.toLowerCase().replace(/\s+/g, '_')}_stream` ? `${selectedStream.team_name?.toLowerCase().replace(/\s+/g, '_') || 'unknown'}_${selectedStream.name.toLowerCase().replace(/\s+/g, '_')}_stream`
: null; : null;
// Update local state immediately for optimistic updates // Update local state immediately for optimistic updates