Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make omi personas on web smart and paid #1751 #1939

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

harshithsunku
Copy link
Contributor

@harshithsunku harshithsunku commented Mar 2, 2025

PR Description

Make omi personas on web smart and paid #1751

This pull request introduces significant enhancements and new features to the Omi project:

  • Stripe Integration: Added dependencies and functionality for Stripe payment processing and subscription management, including:
    • @stripe/stripe-js
    • firebase-admin
    • stripe
  • Session Management: Implemented session handling with Firebase, including obtaining ID tokens and creating session cookies.
  • Subscription Features: Added checks for user subscriptions and enabled access to premium features based on subscription status.
  • User Authentication: Enhanced the user authentication state management in the header component and improved the sign-in flow.
  • New API Routes: Introduced new API routes for creating checkout sessions, portal sessions, and handling webhooks.
  • UI Enhancements: Updated layout to include a subscription context provider and improved the header component with mobile menu functionality.

These changes collectively improve the user experience by enabling premium features, enhancing authentication, and integrating payment processing.

Fixes:

Fixes #1751

View Pull Request

Screen.Recording.2025-03-02.214620.1.mp4

@harshithsunku harshithsunku changed the title Initial commit V1 - web personas smart Make omi personas on web smart and paid #1751 Mar 2, 2025
@harshithsunku harshithsunku marked this pull request as ready for review March 2, 2025 17:16
@beastoin
Copy link
Collaborator

beastoin commented Mar 3, 2025

1/ it's functional btw, man could you clean your code before requesting for review ?

@harshithsunku

@harshithsunku
Copy link
Contributor Author

1/ it's functional btw, man could you clean your code before requesting for review ?

@harshithsunku

Hi @beastoin ,

Done, Kindle review.

@beastoin
Copy link
Collaborator

beastoin commented Mar 9, 2025

1/ ok
2/ can you use the same firebase db as the current one ?
3/ the UI looks boring but tbh i don't know how to improve it haha, any idea ?

please note the step to deploy(release) such as, setup the Stripe account, add new pricing, add new env vars, e.t.c

@harshithsunku ^

@mdmohsin7 man, could you help testing this ticket ?

@mdmohsin7
Copy link
Collaborator

@beastoin tested with our current db and stripe test credentials. It works very well 👍

CleanShot.2025-03-09.at.16.45.34.mp4

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.

Make omi personas on web smart and paid
3 participants