Skip to content

Add legal/support pages and remove dead nav links - #26

Merged
builtbyrishabh merged 1 commit into
mainfrom
launch/legal-and-honest-nav
Jul 17, 2026
Merged

builtbyrishabh merged 1 commit into
mainfrom
launch/legal-and-honest-nav

Conversation

@builtbyrishabh

Copy link
Copy Markdown
Owner

Summary

Not in scope (flagging, not fixing here)

Test plan

  • pnpm typecheck / pnpm lint / pnpm format:check / pnpm test / pnpm build all pass locally with CI-equivalent env vars
  • Vercel preview deploy check

Terms, Privacy, and Refund policy reflect actual product behavior
(private-by-default videos, one-time Stripe credit packs, automatic
refund-on-failed-generation). Sidebar no longer links to /characters,
/themes, /deleted, /about, /settings, none of which have a route.
Sidebar identity now reads from Clerk instead of a hard-coded name.
@vercel

vercel Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
anime-room Ready Ready Preview, Comment Jul 17, 2026 5:41pm

@coderabbitai

coderabbitai Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

Review Change Stack

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Free

Run ID: 01ad1d1c-e84f-4080-bd07-de24708af0d0

📥 Commits

Reviewing files that changed from the base of the PR and between 0c1b72a and bcaf98e.

📒 Files selected for processing (9)
  • src/app/(dashboard)/billing/page.tsx
  • src/app/(public)/legal/layout.tsx
  • src/app/(public)/legal/privacy/page.tsx
  • src/app/(public)/legal/refund/page.tsx
  • src/app/(public)/legal/terms/page.tsx
  • src/app/(public)/page.tsx
  • src/app/(public)/support/page.tsx
  • src/app/_components/sidebar.tsx
  • src/middleware.ts

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added Terms of Service, Privacy Policy, and Refund Policy pages with shared navigation.
    • Added a dedicated Support page with contact options and quick links.
    • Added footer links for legal information, refunds, and support.
    • Legal and support pages are accessible without signing in.
  • Improvements
    • Billing disclosures now include direct links to the Terms and Refund Policy.
    • Sidebar now displays the signed-in user’s name dynamically.

Walkthrough

The change adds public legal and support pages, shared legal navigation, policy links from billing and home, public-route middleware rules, and dynamic user naming in the dashboard sidebar.

Changes

Public legal and support surfaces

Layer / File(s) Summary
Public route protection and legal shell
src/middleware.ts, src/app/(public)/legal/layout.tsx
Legal and support routes bypass authentication, and legal pages share navigation and article styling.
Legal policy content
src/app/(public)/legal/...
Terms, privacy, and refund pages render static policy content with page metadata and relevant links.
Support and policy entry points
src/app/(public)/support/page.tsx, src/app/(public)/page.tsx, src/app/(dashboard)/billing/page.tsx
Support content, quick links, public footer links, and billing links to legal policies are added.

Dashboard sidebar identity

Layer / File(s) Summary
Sidebar user identity and navigation
src/app/_components/sidebar.tsx
The sidebar displays a Clerk-derived user name, adds secondary menu data, and removes the remaining primary navigation block.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Visitor
  participant Middleware
  participant LegalLayout
  participant PolicyPage
  Visitor->>Middleware: Request legal route
  Middleware->>LegalLayout: Allow public access
  LegalLayout->>PolicyPage: Render selected policy
Loading

Poem

A bunny hops through links so neat,
To terms and refunds down the street.
Privacy blooms, support replies,
While names appear beneath the skies.
The sidebar twinkles—what a treat!


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands.

@builtbyrishabh
builtbyrishabh merged commit dfed364 into main Jul 17, 2026
4 checks passed
@builtbyrishabh
builtbyrishabh deleted the launch/legal-and-honest-nav branch July 17, 2026 17:47

This branch was successfully deployed

1 active deployment
Preview — bcaf98ef Deployed Jul 17, 2026 by vercel[bot]
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