Skip to content

Feature: Add an onboarding page and redirect users to that page if the user is not logged in. Have 3 sample latest question an... - #77

Open
lazydev-issue-resolver[bot] wants to merge 1 commit into
mainfrom
lazydev/feat-76-add-an-onboarding-page-and-redirect-user
Open

Feature: Add an onboarding page and redirect users to that page if the user is not logged in. Have 3 sample latest question an...#77
lazydev-issue-resolver[bot] wants to merge 1 commit into
mainfrom
lazydev/feat-76-add-an-onboarding-page-and-redirect-user

Conversation

@lazydev-issue-resolver

Copy link
Copy Markdown

Resolves #76

Generated autonomously by LazyDev.

Implementation Plan

SUMMARY: Add a new /onboarding route/page that displays greeting messages and 3 sample latest approved questions/answers. Fetch those samples from the existing /api/questions endpoint by extending it to support ?sort=latest (sort by createdAt) and requesting limit=3&scope=public. Protect the main home page (app/page.tsx) by redirecting unauthenticated users to /onboarding. To avoid redirecting logged-in users during the initial client render, update AuthProvider to expose an isLoading/auth-initialized flag. Also update the login flow so the login page honors a redirect query param (e.g., /login?redirect=/) and routes the user back to the intended page after sign-in, while preserving the admin page’s inline login redirect to /admin.

SEARCH TERMS: onboarding page, redirect unauthenticated, AuthProvider isLoading, latest questions API
LIKELY DIRECTORIES: app, components, app/api/questions

Generated autonomously by LazyDev.
@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
v0-aws-developer-questions Error Error Aug 23, 2026 10:32am

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.

Feature: Add an onboarding page and redirect users to that page if the user is not logged in. Have 3 sample latest question an...

1 participant