Guest Preview Generation Flow with One-Time Free Access & Improved Onboarding UX#225
Open
PranshuPujara wants to merge 1 commit into
Open
Guest Preview Generation Flow with One-Time Free Access & Improved Onboarding UX#225PranshuPujara wants to merge 1 commit into
PranshuPujara wants to merge 1 commit into
Conversation
- Add guest UI: one free generation limit, GuestSignupPrompt modal, and lock UI. - Allow guest access to top-level /generate while protecting deeper routes. - Update client hook to permit guest generation calls and avoid refetching history for anonymous users. - Update server `/api/generate` to accept guest requests, guard DB writes, and only apply user-specific rate-limits/metrics to authenticated users.
👷 Deploy request for arcmind-ai pending review.Visit the deploys page to approve it
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #148
Implemented a Guest Preview Generation flow that allows anonymous users to try the platform once before signing in, creating a smoother onboarding experience while keeping the existing authenticated workflow unchanged.
The implementation mainly focuses on frontend UX improvements with lightweight guest tracking and minimal backend adjustments.
What Changed
Frontend — Guest UI
app/(protected)/generate/components/GeneratePage.tsxisGuestLockedstate handlingGuestSignupPromptmodal flowhandleGenerateflow to:app/(protected)/generate/components/GuestSignupPrompt.tsx(New)app/(protected)/generate/components/index.tsGuestSignupPromptcomponentFrontend — Hooks & Layout Updates
app/(protected)/generate/hooks/useGenerateSystem.tsapp/(protected)/generate/layout.tsxapp/(protected)/layout.tsxBackend — API Updates
app/api/generate/route.tsAdded guest-aware generation support:
Detects guest/authenticated users from server session
Guests:
Authenticated users retain existing behavior
Preserved:
Added support for:
so guest requests can still use the system key when available.
Sanity Checks Performed
Notes
Demo
Trying to make second generation
Pop up by clicking "View benefits"
By clicking "Create New Account"
Thank you!
Pranshu Pujara🕵️♂️