Skip to content

Conversation

@ewalid
Copy link
Owner

@ewalid ewalid commented Jan 12, 2026

Frontend UI/UX Refactoring & Backend Enhancements

🎨 Overview

This PR refactors the frontend UI/UX for improved usability, aesthetics, and professional presentation. It also adds new backend capabilities for cost estimation and progress tracking infrastructure.

🚀 Frontend Changes

Home Page Improvements

  • Removed Sticky Card: Cleaned up the layout by removing the side sticky card component
  • Centered Translation Form: Translation form is now properly centered for better visual balance
  • Updated Feature Icons: Replaced icons in the feature bar to match figma design:
    • Fast Translation: ZapSparkles
    • Format Preserved: FileCheckFileSpreadsheet
  • Personalized Feature Descriptions: Updated all 6 feature boxes with unique, uniform-length descriptions for better visual consistency

Progress Indicator Redesign

  • Replaced the previous stone tablet design with a classic, elegant progress indicator
  • Features smooth gradient progress bar with shimmer animation
  • Shows percentage counter with smooth transitions
  • Circular stage indicators with icons that pulse when active
  • Fully responsive for mobile and desktop

Advanced Options Refactoring

  • Enhanced Advanced Options Section:
    • Improved styling with gradient background and better visual hierarchy
    • Smooth expand/collapse animations
  • Sheet Selector Improvements:
    • Replaced custom checkboxes with Lucide icons (CheckSquare/Square)
    • Added indeterminate state for "Select All" when some sheets are selected
    • Enhanced hover effects and animations
    • More visible borders with emerald accent color
    • Smooth transitions and visual feedback

About Page Redesign

  • Hero Section: Shortened subtitle to fit on one line: "Translating Excel files without breaking them"
  • Feature Cards: Made all feature cards (including second row) use consistent container styling with borders and shadows
  • Meet the Builder Section:
    • Redesigned ProfileHeader with gradient border card style (inspired by figma designs)
    • Enhanced profile image with gradient border
    • Added company logos to timeline cards instead of generic icons
    • Updated contact buttons with brand colors:
      • LinkedIn: Brand blue (#0077b5)
      • Contact: Slate outlined button
      • GitHub: Dark button with proper brand styling
    • Improved visibility and clickability of all buttons with enhanced hover states

Other Improvements

  • Updated favicon to use rosetta-icon.svg
  • Improved responsive design across all components

🔧 Backend Enhancements

Cost Estimation API

  • Added /estimate endpoint that returns:
    • Cell count
    • Estimated API cost (USD)
    • Estimated processing time
  • Uses the same cost calculation as MCP endpoint (COST_PER_1000_CELLS_USD = 0.05)

Progress Tracking Infrastructure

  • Added progress_callback parameter to translate_file() function
  • Progress callback receives: (translated_count, total_count, stage)
  • Tracks multiple stages:
    • "extracting" - When extracting cells
    • "translating" - During batch translation
    • "rich_text" - When translating rich text runs
    • "dropdowns" - When translating dropdowns
    • "writing" - When writing output file
    • "complete" - When translation is complete
  • Note: Infrastructure is ready for streaming/progress endpoints (can be implemented with SSE or polling)

🎯 Key Improvements

  1. Better UX: More intuitive and visually appealing interface
  2. Professional Design: Matches figma design specifications
  3. Responsive: All changes work seamlessly on mobile and desktop
  4. Accessibility: Enhanced button visibility and clickability
  5. Backend Ready: Infrastructure for future cost estimation and progress tracking features

📸 Visual Changes

  • Progress indicator now shows elegant percentage-based progress
  • Feature cards have consistent styling throughout
  • Profile section uses gradient border card design
  • Company logos displayed in timeline instead of generic icons
  • Contact buttons use brand colors for better recognition
  • Sheet selector has more visible, clickable borders

✅ Testing

  • All components tested visually across screen sizes
  • No linting errors
  • Backward compatible (existing functionality preserved)

🔮 Future Work

  • Integrate /estimate endpoint in frontend to show cost estimates before translation
  • Implement streaming progress updates using Server-Sent Events (SSE)
  • Add real-time progress percentage display during translation

ewalid and others added 11 commits January 12, 2026 13:12
- Install Radix UI components and design system dependencies
- Upgrade to Tailwind CSS 4.1 with @tailwindcss/vite plugin
- Add class-variance-authority, tailwind-merge, next-themes
- Copy theme.css with CSS variables from Figma designs
- Update vite.config.ts to use new Tailwind plugin
- Replace Button and Card with shadcn/ui versions
- Add utils.ts for safe class merging

This is the foundation for migrating to the Figma design system
while preserving all existing functionality.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Replace with fixed backdrop-blur navigation
- Add gradient emerald logo icon
- Add active link indicators with gradient underline
- Use Tailwind classes instead of CSS modules
- Keep all existing functionality (dark mode, GitHub link)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Install @tailwindcss/postcss package
- Update postcss.config.js to use new plugin
- Footer: Migrate to Tailwind with dark background design
  - Keep all existing text content and functionality
  - Add emerald hover effects on links
  - Use responsive flex layout
- Container: Replace CSS modules with Tailwind utilities
  - Map size props to Tailwind max-width classes
  - Use responsive padding (px-4 sm:px-6 lg:px-8)
- Add animated gradient grid background
- Update hero with larger typography (text-5xl to text-7xl)
- Add 'Powered by Claude AI' badge with Sparkles icon
- Use gradient text for 'Without Breaking It!'
- Replace emoji icons with Lucide icons (Shield, Zap, FileCheck)
- Migrate from CSS modules to Tailwind utility classes
- Keep all existing text content exactly as is
- Add animated gradient grid background to hero
- Update page layout with Tailwind classes
- Add gradient 'Rosetta' text in headline
- Improve section spacing and typography
- Keep all existing text content
- Create StickyCard with smooth scroll-based positioning
- Add animated blob background effect
- Include GitHub, PyPI, and Feedback links
- Integrate with feedback modal
- Add parallax float and wiggle animations
- Show only on desktop (hidden lg:block)
- Add data-upload-section attribute for StickyCard positioning
- Add 'primary' variant (alias for 'default')
- Add isLoading prop with spinner
- Add leftIcon and rightIcon props
- Maintain backward compatibility with existing code
- Remove 'Powered by Claude AI' badge (already in hero)
- Remove 'Translate Your Excel Files' title (already in hero)
- Remove subtitle text
- Clean form now shows only the controls
- Add 'What Makes Rosetta Different?' features grid section
- Add emerald CTA section with 'Get Started Now' button
- Add 6 feature cards: formulas, formatting, dropdowns, structure, data loss, speed
- Use Check icons in emerald circles
- Add smooth scroll to top on CTA click
@ewalid ewalid self-assigned this Jan 12, 2026
@ewalid ewalid merged commit 2521ee2 into master Jan 12, 2026
2 checks passed
@ewalid ewalid deleted the refactor/figma-design branch January 12, 2026 22:57
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