Skip to content

✨ Enhance Codex UI components and implement ChatHeader auto-hide functionality - #35

Closed
narensen with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-47ba17a9-7443-4431-a652-2c830dbfbdae
Closed

✨ Enhance Codex UI components and implement ChatHeader auto-hide functionality#35
narensen with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-47ba17a9-7443-4431-a652-2c830dbfbdae

Conversation

Copilot AI commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

This PR implements comprehensive UI improvements for the Codex main page and adds auto-hide functionality to the ChatHeader component in the message interface.

🎨 UI Improvements for Codex Components

RoadmapGridWithMission Enhancements

  • Enhanced gradient backgrounds with improved theme consistency using from-slate-900/95 via-slate-800/95 to-slate-900/95
  • Interactive hover effects with smooth color transitions and group hover states
  • Improved mission panels with enhanced visual hierarchy and better spacing
  • Animated status indicators with pulsing effects and enhanced shadows

RoadmapGrid Component Polish

  • Mission cards redesign with enhanced gradients, backdrop blur, and subtle glow effects
  • Hover animations including scale transforms (hover:scale-103) and vertical translation
  • Staggered entrance animations using Framer Motion for better user experience
  • Enhanced modal design with improved gradients, rounded corners, and better content layout
  • Consistent theme integration replacing hardcoded colors with amber/orange palette from globals.css

⚡ ChatHeader Auto-Hide Functionality

Implemented smart auto-hide behavior for the chat header:

// Auto-hide after 5 seconds of inactivity
const resetTimer = () => {
  if (!isHovered && window.scrollY > 50) {
    timerRef.current = setTimeout(() => {
      setIsVisible(false);
    }, 5000);
  }
};

// Show header on upward scroll
const handleScroll = () => {
  const scrollingUp = currentScrollY < lastScrollY.current;
  if (scrollingUp || currentScrollY < 50) {
    setIsVisible(true);
    resetTimer();
  }
};

Key Features:

  • 5-second auto-hide timer that activates when user stops interacting
  • Scroll detection to show header immediately when scrolling up
  • Hover protection prevents auto-hide when user is interacting with header
  • Smooth transitions with duration-500 ease-in-out for professional feel
  • Enhanced styling with improved colors, hover effects, and visual feedback

🔧 Technical Improvements

  • Performance optimized with proper cleanup of event listeners and timers
  • Accessibility enhanced with better keyboard navigation and visual feedback
  • Responsive design maintained with mobile-first approach and improved spacing
  • Code quality following minimal changes principle with no breaking modifications
  • Theme consistency using CSS variables from globals.css throughout

📱 Visual Enhancements

  • Consistent amber/orange gradient palette across all components
  • Enhanced shadow effects and backdrop blur for modern glass-morphism look
  • Improved button states with scale feedback (active:scale-95)
  • Better visual hierarchy with proper typography and spacing
  • Subtle animations that enhance UX without being distracting

All changes maintain full responsiveness and accessibility while providing a more polished and interactive user experience.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@vercel

vercel Bot commented Aug 13, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Comments Updated (UTC)
bepro Ready Preview Comment Aug 13, 2025 9:34am

@narensen narensen closed this Aug 13, 2025
Copilot AI changed the title [WIP] Improve Codex Main Page UI and add auto-hide to chat header ✨ Enhance Codex UI components and implement ChatHeader auto-hide functionality Aug 13, 2025
Copilot AI requested a review from narensen August 13, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants