silent-rental

bySuresh Basnet

You are a senior full-stack engineer, product designer, and database architect. Build **Phase 1 only** of a production-quality multi-tenant SaaS web application called **RentalDesk**. RentalDesk is a mobile-first operating system for small equipment and party-rental businesses, such as bounce-house, table/chair, tent, AV, tool, photo-booth, and generator rental companies. In later phases, it will manage inventory availability, quotes, customer deposits, bookings, delivery/pickup jobs, check-in/check-out inspections, damage charges, late fees, refunds, and Stripe subscription billing. In this phase, build ONLY the foundation. # 1. Phase 1 goal By the end of Phase 1, a new user must be able to: 1. Sign up with email and password. 2. Log in, log out, and reset their password. 3. Create a rental business. 4. Become the owner of that business. 5. See a protected dashboard. 6. See the app navigation. 7. See empty-state screens for future modules. 8. Access only their own business data. 9. Never access another business’s data. Do not build any feature that is not explicitly listed below. # 2. Tech stack Use exactly this stack: - Next.js App Router - TypeScript - Tailwind CSS - shadcn/ui - Supabase for Postgres, Auth, Storage, and Row Level Security - @supabase/supabase-js - @supabase/ssr - Zod for validation - React Hook Form for forms - Vercel-ready deployment structure Use cookie-based Supabase Auth for Next.js App Router. Create separate Supabase clients for: - Browser/client components - Server components - Server actions / route handlers Never expose these values to the browser: - SUPABASE_SERVICE_ROLE_KEY - STRIPE_SECRET_KEY - STRIPE_WEBHOOK_SECRET - RESEND_API_KEY Use environment variables and provide a `.env.example` file. # 3. What to build in Phase 1 ## A. Project setup Create a clean, production-quality Next.js project with: - TypeScript strict mode - ESLint - Prettier - Tailwind CSS - shadcn/ui - Absolute imports using `@/` - A scalable folder structure - Reusable UI components - Consistent error and loading states - Mobile-first responsive layout Do not use unnecessary libraries. ## B. Authentication Implement Supabase Auth with email and password. Build these pages: 1. `/auth/sign-up` 2. `/auth/login` 3. `/auth/forgot-password` 4. `/auth/reset-password` 5. `/auth/callback` Requirements: - Email and password signup - Email confirmation flow if Supabase requires it - Login - Logout - Forgot password - Reset password - Redirect unauthenticated users away from protected routes - Redirect authenticated users away from login/signup pages - Show clear validation errors - Show loading states on all auth buttons - Disable submit buttons while submitting - Prevent duplicate form submission - Never reveal whether an email exists during password reset Use Supabase Auth’s built-in session handling. Do not build custom JWT handling. ## C. Business onboarding After signup, if the user does not have a business, redirect them to: ```text /onboarding/create-business

Landing/auth/sign-up
Landing

Comments (0)

No comments yet. Be the first!

Project Tasks

34 planning tasks
#1

Generate system requirement document

0m 56s0.05 cr used
Done
#2

Generate personas & user flows

0m 6s0.05 cr used
Done
#5

Architecture

0.05 cr needed
Paused
#6

Workspace task plan

0.05 cr needed
Paused
#7

Create flow for Rental business owner

0m 4sCredits in parent
Done
#8

Landing

2m 17sCredits in subtasks
Done
#9

/auth/sign-up

2m 13sCredits in subtasks
Done
#10

/auth/login

2m 15sCredits in subtasks
Paused
#11

/auth/forgot-password

2m 15sCredits in subtasks
Paused
#12

/auth/reset-password

2m 15sCredits in subtasks
Paused
#13

/auth/callback

2m 15sCredits in subtasks
Paused
#14

/onboarding/create-business

2m 15sCredits in subtasks
Paused
#15

Dashboard

2m 15sCredits in subtasks
Paused
#16

Landing / Hero Panel

0m 22s0.85 cr used
Done
#17

Landing / Navigation

0m 0s0.85 cr used
Done
#18

Landing / Footer

0m 0s0.85 cr used
Done
#19

Navigation

0m 16sCredits in parent
Done
#20

Footer

0m 16sCredits in parent
Done
#21

Fix Landing: Landing actions use non-requested auth paths in (, ), so the primary and sign-in links…

0m 52sCredits unavailable
Error
#22

Fix Landing: The hero adds an unauthorized wordmark alongside the required Rental Desk identity…

0m 34sCredits unavailable
Done
#23

Fix Landing: The required primary action is labeled but links, while the accepted page binding for is…

0m 33sCredits unavailable
Done
#24

Fix Landing review findings: Landing actions use non-requested auth paths in… (+2 more)

0m 15s0 cr used
Done
#25

Fix Landing review finding: Landing actions use non-requested auth paths in…

0m 4s0 cr used
Error
#26

/auth/sign-up / Sign Up Navigation Slot

0m 0s0.85 cr used
Done
#27

/auth/sign-up / Sign Up Form Panel

0m 28s0.85 cr used
Done
#28

/auth/sign-up / Sign Up Footer Slot

0m 0s0.85 cr used
Done
#29

/auth/login / Auth Login Navigation

0.85 cr needed
Paused
#30

/auth/login / Auth Login Form Panel

0.85 cr needed
Paused
#31

/auth/login / Auth Login Footer

0.85 cr needed
Paused
#32

Fix /auth/sign-up: Sign-up is unavailable: the primary “Create account” action is disabled at desktop…

0m 31sCredits unavailable
Error
#33

Fix /auth/sign-up review finding: Sign-up is unavailable: the primary “Create account”…

0m 45s0 cr used
Paused
#34

/auth/forgot-password / Forgot Password Header

0.85 cr needed
Paused
#35

/auth/forgot-password / Forgot Password Recovery Panel

0.85 cr needed
Paused
#36

/auth/forgot-password / Forgot Password Footer

0.85 cr needed
Paused
Live
Landing design preview
Landing: Read headline and subline
/auth/sign-up: 1. Enter email and password
/auth/sign-up: 2. Correct validation error and resubmit
/auth/sign-up: See confirmation-sent state
/auth/callback: Open confirmation link
/auth/login: Retry after expired link
/onboarding/create-business: 1. Enter business name
/onboarding/create-business: 2. Fix creation error and retry
Dashboard: 3. View business identity and navigation
Dashboard: 1. Open future-module empty state
Dashboard: 2. Return to dashboard overview
Dashboard: 4. Sign out
/auth/login: 5. Sign in with credentials
/auth/login: 6. Retry after invalid credentials
/auth/forgot-password: 7. Request password reset email
/auth/forgot-password: 8. Read neutral confirmation
/auth/callback: 9. Open recovery link
/auth/reset-password: 10. Set and confirm new password
/auth/reset-password: 11. Fix password error and resubmit
/auth/login: 12. Sign in with new password
Live
Landing design preview
Landing: Read headline and subline
/auth/sign-up: 1. Enter email and password
/auth/sign-up: 2. Correct validation error and resubmit
/auth/sign-up: See confirmation-sent state
/auth/callback: Open confirmation link
/auth/login: Retry after expired link
/onboarding/create-business: 1. Enter business name
/onboarding/create-business: 2. Fix creation error and retry
Dashboard: 3. View business identity and navigation
Dashboard: 1. Open future-module empty state
Dashboard: 2. Return to dashboard overview
Dashboard: 4. Sign out
/auth/login: 5. Sign in with credentials
/auth/login: 6. Retry after invalid credentials
/auth/forgot-password: 7. Request password reset email
/auth/forgot-password: 8. Read neutral confirmation
/auth/callback: 9. Open recovery link
/auth/reset-password: 10. Set and confirm new password
/auth/reset-password: 11. Fix password error and resubmit
/auth/login: 12. Sign in with new password