Skip to content

feat: Add AI Avatar Generator, User Authentication & Subscription System, and Multi-language Support - #50

Merged
Mayandev merged 32 commits into
mainfrom
feat/ai
Dec 29, 2025
Merged

feat: Add AI Avatar Generator, User Authentication & Subscription System, and Multi-language Support#50
Mayandev merged 32 commits into
mainfrom
feat/ai

Conversation

@Mayandev

Copy link
Copy Markdown
Owner

🎯 Major Features

✨ AI Avatar Generator

  • Support for both photo-to-avatar and text-to-avatar generation modes
  • Integrated Google Gemini API
  • Daily free usage limit

🔐 User Authentication & Subscriptions

  • Supabase user authentication system
  • Stripe payment integration (subscriptions and credits)
  • Complete subscription lifecycle management

🛒 Resource Store

  • Resource pack purchase and download functionality
  • Purchased resource management

🌍 Multi-language Support

  • Added support for 9 languages
  • Complete internationalization configuration

📝 Blog Functionality

  • Blog listing and detail pages

📊 Change Statistics

  • 110 files changed
  • +13,036 / -2,202 lines of code

Mayandev added 28 commits July 9, 2025 23:36
Add new AI-powered avatar generation feature that converts photos to Notion Avatar style:
- Add Gemini API integration with @google/genai dependency
- Create new /ai-generator page with image upload and generation UI
- Implement daily free usage limit (1 free generation per day)
- Add workflow automation files for commit and planning
- Add comprehensive planning documentation
- Update environment variables to include GEMINI_API_KEY
…ock API

Update planning document to reflect dual-mode implementation (Photo2Avatar + Text2Avatar):
- Add detailed Notion Avatar style characteristics based on reference images
- Switch to gemini-2.0-flash-exp model
- Add Mock API design for development phase
- Add comprehensive prompt engineering for both modes
- Add ModeSelector, TextInput components to architecture
- Update file structure with mock assets
- Add Tab button styling
…ode cleanup

- Increase FREE_DAILY_LIMIT to 1000 in development mode for easier testing
- Remove unused Image import from ImageUploader component
- Move eslint-disable comment to correct location in ImageUploader
- Remove unused index parameter in WhosUsing testimonials map
…ription management

- Add Supabase client setup for user authentication and session management
- Implement user sign-in, sign-up, and sign-out API routes
- Create subscription management with Stripe for monthly plans and credit purchases
- Add middleware for session updates and API usage tracking
- Introduce new components for user authentication and subscription UI
- Update environment variables for Supabase and Stripe configurations
- Enhance account and pricing pages with subscription details and upgrade options
- Add ResourceStore component for managing resource packs
- Integrate user authentication for purchasing and downloading packs
- Implement API routes for fetching purchased packs and handling downloads
- Enhance user experience with loading states and error handling
- Create new Resources page to display purchased packs and download options
- Implement blog listing page to display all blog posts
- Create individual blog post pages with SEO metadata
- Add markdown support for blog content using gray-matter and remark
- Enhance header and footer components for blog layout
- Introduce new blog-related API functions for fetching posts and slugs
…er component

- Introduce @tanstack/react-query version 5.90.14 for improved data fetching and state management
- Update DailyLimitBanner to display paid credits alongside remaining free generations
- Modify AIGeneratorPage to pass new props for freeRemaining and paidCredits
- Enhance EmbedModal to conditionally display embed codes based on subscription status
- Improve error handling in sign-in API for better user feedback
- Update subscription management logic to handle expired subscriptions correctly
- Remove trailing newline at the end of the SVG file for consistency
- Maintain existing SVG structure and attributes
- Add localePath to specify the directory for translation files
- Include path module to construct the locale path dynamically
- Change AI generator titles in English and Chinese locales to include "Notion"
- Remove hover scaling effect from ExamplesShowcase component buttons for a smoother interaction
- Adjust UserMenu z-index for better visibility
- Refactor Header component layout for improved structure
- Update EmbedModal styling for consistency
- Modify PricingPlans component border styling for better visual distinction
- Clean up unused UseCases import in AIGeneratorPage
- Enhance subscription check logic in API routes for better handling of active subscriptions
…age support

- Add canonical and hreflang links for better SEO optimization
- Update page metadata including title, description, and keywords based on current locale
- Introduce structured data for improved search engine visibility
- Enhance user experience with dynamic URL generation for different languages
- Update sitemap.xml to include new AI generator URLs for better indexing
- Replace "KI" with "AI" in multiple language files for consistency
- Improve loading state in UserMenu component with a disabled button
- Add wave decoration to Header component for visual enhancement
- Introduce WaveLine component for better UI representation
- Update global CSS for wave decoration animations
- Clean up unused imports and improve code structure
- Add menu translations for multiple languages in common.json files
- Introduce LanguageSwitcher component for language selection
- Update UserMenu and Header components to utilize new translations
- Improve mobile menu functionality and accessibility
- Refactor ExamplesShowcase component for better layout and visuals
…mplesShowcase component

- Simplify Image component usage by removing redundant class names
- Update image sources for photo examples to point to new URLs
- Adjust class names for consistency in styling across components
@vercel

vercel Bot commented Dec 29, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
notion-avatar Ready Ready Preview, Comment Dec 29, 2025 6:16pm

- Introduce FAQ section with common questions and answers in various languages
- Add account settings translations including profile, subscription, and billing management terms
- Enhance user experience by providing localized content for account management features
- Implement locale-based redirection in AuthProvider and callback handling
- Prevent redirection to login page from various authentication routes
- Update login page to handle locale-specific home paths and improve redirect logic
- Ensure session storage is used correctly for redirect URLs after OAuth login
@Mayandev
Mayandev merged commit f05f66c into main Dec 29, 2025
2 of 3 checks passed
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