Files
supervisor-ui/components/layout/Navbar.tsx

143 lines
4.3 KiB
TypeScript
Raw Normal View History

'use client';
import { useState, useEffect } from 'react';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
import { Moon, Sun, Activity, Menu, X } from 'lucide-react';
import { useTheme } from '@/components/providers/ThemeProvider';
import { Button } from '@/components/ui/button';
import { cn } from '@/lib/utils/cn';
const navItems = [
{ href: '/', label: 'Dashboard' },
{ href: '/processes', label: 'Processes' },
{ href: '/groups', label: 'Groups' },
{ href: '/logs', label: 'Logs' },
{ href: '/config', label: 'Configuration' },
];
export function Navbar() {
const pathname = usePathname();
const [mounted, setMounted] = useState(false);
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
const themeContext = useTheme();
useEffect(() => {
setMounted(true);
}, []);
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
useEffect(() => {
// Close mobile menu when route changes
setMobileMenuOpen(false);
}, [pathname]);
useEffect(() => {
// Prevent scroll when mobile menu is open
if (mobileMenuOpen) {
document.body.style.overflow = 'hidden';
} else {
document.body.style.overflow = 'unset';
}
return () => {
document.body.style.overflow = 'unset';
};
}, [mobileMenuOpen]);
const toggleTheme = () => {
if (themeContext) {
themeContext.setTheme(themeContext.resolvedTheme === 'dark' ? 'light' : 'dark');
}
};
return (
<nav className="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
<div className="container flex h-16 items-center px-4 md:px-6">
{/* Logo */}
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
<Link href="/" className="flex items-center gap-2 mr-4 md:mr-8">
<Activity className="h-6 w-6 text-primary" />
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
<span className="font-bold text-lg md:text-xl bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent">
Supervisor
</span>
</Link>
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
{/* Desktop Navigation Links */}
<div className="hidden md:flex gap-1 flex-1">
{navItems.map((item) => (
<Link key={item.href} href={item.href}>
<Button
variant="ghost"
size="sm"
className={cn(
'transition-colors',
pathname === item.href && 'bg-accent text-accent-foreground'
)}
>
{item.label}
</Button>
</Link>
))}
</div>
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
{/* Right side buttons */}
<div className="flex items-center gap-2 ml-auto">
{/* Theme Toggle */}
{mounted && themeContext && (
<Button
variant="ghost"
size="icon"
onClick={toggleTheme}
aria-label="Toggle theme"
className="h-10 w-10"
>
{themeContext.resolvedTheme === 'dark' ? (
<Sun className="h-5 w-5" />
) : (
<Moon className="h-5 w-5" />
)}
</Button>
)}
{/* Mobile Menu Button */}
<Button
variant="ghost"
size="icon"
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
aria-label="Toggle menu"
className="md:hidden h-10 w-10"
>
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
{mobileMenuOpen ? (
<X className="h-6 w-6" />
) : (
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
<Menu className="h-6 w-6" />
)}
</Button>
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
</div>
</div>
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
{/* Mobile Menu Drawer */}
{mobileMenuOpen && (
<div className="md:hidden fixed inset-0 top-16 z-50">
<div className="container">
<nav className="flex flex-col gap-2 bg-background/95 backdrop-blur-md rounded-lg p-4">
feat: comprehensive responsive design implementation for mobile devices This commit implements a complete responsive design overhaul making the Supervisor UI fully mobile-friendly and beautiful across all devices (320px phones to 4K displays). ## Phase 1: Mobile Navigation - Add hamburger menu to Navbar with slide-out drawer - Auto-close on navigation with body scroll lock - Responsive logo sizing ## Phase 2: Touch-Friendly Buttons - Increase touch targets to 44px on mobile (36px for small buttons) - Add responsive button layouts in ProcessCard - Flex-wrap prevents cramped button rows ## Phase 3: Responsive Spacing & Typography - Add responsive padding to Card components (p-4 md:p-6) - Scale typography across breakpoints (text-xl md:text-2xl) - Responsive spacing in AppLayout and all pages ## Phase 4: Mobile-Friendly Tables - Dual layout for ConfigTable: table on desktop, cards on mobile - Preserve all data with proper formatting and wrapping - Hide table on mobile, show card-based layout ## Phase 5: Modal Improvements - Add horizontal padding (p-4) to all modals - Prevent edge-touching on mobile devices - Fixed SignalSender, KeyboardShortcutsHelp, StdinInput modals ## Phase 6: Page-Specific Layouts - Processes page: responsive header, controls, and grid spacing - BatchActions bar: full-width on mobile, centered on desktop - Logs page: responsive controls and height calculations - Config page: responsive header and error states ## Phase 7: Polish & Final Touches - Add viewport meta tag to layout - Responsive empty states and loading skeletons - Consistent responsive sizing across all error messages - Mobile-first typography scaling 🎉 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:21:22 +01:00
{navItems.map((item) => (
<Link key={item.href} href={item.href}>
<Button
variant="ghost"
size="lg"
className={cn(
'w-full justify-start text-lg transition-colors',
pathname === item.href && 'bg-accent text-accent-foreground'
)}
>
{item.label}
</Button>
</Link>
))}
</nav>
</div>
</div>
)}
</nav>
);
}