Skip to content

✨ Add enhanced loading animations for leaf questions - #11

Open
oolongwater wants to merge 1 commit into
Timothyng28:mainfrom
oolongwater:feature/enhanced-leaf-question-loading
Open

✨ Add enhanced loading animations for leaf questions#11
oolongwater wants to merge 1 commit into
Timothyng28:mainfrom
oolongwater:feature/enhanced-leaf-question-loading

Conversation

@oolongwater

Copy link
Copy Markdown
Contributor

🎨 Overview

This PR enhances the loading animations for leaf questions with beautiful, multi-layer spinner effects and animated backgrounds.

✨ What's New

Enhanced Loading States

  1. Loading State (Yellow/Amber) - When generating questions at leaf nodes

    • Multi-layer counter-rotating spinners
    • Animated background orbs with pulsing effects
    • Gradient center dot with shadow
    • Bouncing progress dots
  2. Evaluating State (Purple/Fuchsia) - When checking user answers

    • Purple and fuchsia gradient animations
    • Same beautiful multi-layer spinner design
    • "Evaluating Answer" messaging with progress indicators
  3. Generating Follow-up State (Blue/Cyan) - When creating new follow-up lessons

    • Larger, more prominent spinner (28px vs 24px)
    • Blue and cyan gradient effects
    • Enhanced text with gradient color animation
    • Detailed messaging for better UX

🎯 Key Improvements

  • Visual Consistency: All three states follow the same design pattern with different color schemes
  • Better UX: Clear messaging and visual feedback for each loading state
  • Modern Design: Gradient effects, shadows, and smooth animations
  • Proper Layering: z-index management for clean visual hierarchy
  • Responsive Layout: Works seamlessly within the overlay component

📝 Technical Details

  • Enhanced spinner with 3 layers (outer ring, middle counter-rotating ring, inner glow)
  • Animated background orbs using blur and pulse effects
  • Gradient text effects for modern look
  • Staggered animation delays for bouncing dots
  • All animations use Tailwind's built-in utilities

🧪 Testing

Tested across all three loading scenarios:

  • ✅ Question generation at leaf nodes
  • ✅ Answer evaluation
  • ✅ Follow-up video generation

📸 Preview

The animations feature:

  • Smooth transitions between states
  • Consistent color schemes matching the action type
  • Non-intrusive but informative visual feedback

Created with 💅 and lots of attention to detail!

- Upgraded loading state with multi-layer spinners and animated background orbs
- Enhanced evaluating state with purple/fuchsia gradient animations
- Improved generating follow-up state with blue/cyan gradient effects
- Added animated progress dots and pulsing text for better UX
- Consistent visual design across all three loading states
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.

1 participant