From f2276ba39b3c50ee20b11c53fb437731fa33fcd3 Mon Sep 17 00:00:00 2001
From: Armaan Jain <84474476+Developing-Gamer@users.noreply.github.com>
Date: Sun, 5 Jul 2026 21:17:51 -0700
Subject: [PATCH] Onboarding auth page preview interactivity fix (#1721)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
## Summary by cubic
Restores full interactivity in the hosted auth preview across onboarding
and project settings, replaces Radix tabs with lightweight
`HostedPreviewTabs` with ARIA and keyboard support, and enables
Enter‑to‑submit in the create‑project dialog. Also keeps onboarding
progress dots centered on a fixed rail.
- **New Features**
- Replaced Radix tabs with custom `HostedPreviewTabs` (animated
indicator, ARIA roles/ids for tabs and panels, Arrow keys/Home/End
navigation).
- Hosted-style inputs and links are now interactive; typing and tab
switching work.
- Wrapped the create-project dialog in a form with a shared submit
handler; Enter in the name field submits, the primary button is
`type="submit"`, and IME composition is guarded.
- **Bug Fixes**
- Removed `pointer-events-none`, `inert`, and overlay divs that blocked
the auth preview in onboarding and the project auth-methods page.
- Centered onboarding progress dots with a fixed-width rail
(`w-[150px]`) and a left-offset back arrow; dots keep accessible labels
and `aria-current="step"`.
Written for commit 7a7f1d27e0f96521c3218bc77dad91c951569fe2.
Summary will update on new commits.
## Summary by CodeRabbit
* **New Features**
* Enhanced the “Create Project” dialog with native form submit behavior
and Enter-key handling, including safer concurrent creation and clear
post-create navigation.
* Refreshed hosted authentication previews to support fully interactive
tab switching.
* **Bug Fixes**
* Improved onboarding bottom step navigation layout for more consistent
back-button and progress positioning.
* Removed interaction-blocking styling/attributes in hosted preview
screens so users can click and type normally.
* **Tests**
* Added UI-focused assertions to verify interactive preview behavior and
form submission semantics.
---------
Co-authored-by: Cursor
Co-authored-by: armaan
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
---
.../page-client-parts/components.tsx | 54 +++--
.../new-project/page-client-parts/content.tsx | 223 ++++++++++--------
.../project-onboarding-wizard.test.tsx | 16 ++
.../project-onboarding-wizard.tsx | 3 +-
.../new-project/page-client.test.tsx | 43 ++++
.../auth-methods/page-client.test.ts | 19 ++
.../[projectId]/auth-methods/page-client.tsx | 3 +-
.../components/hosted-auth-preview.test.tsx | 46 ++++
.../src/components/hosted-auth-preview.tsx | 220 ++++++++++++++---
9 files changed, 471 insertions(+), 156 deletions(-)
create mode 100644 apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/auth-methods/page-client.test.ts
create mode 100644 apps/dashboard/src/components/hosted-auth-preview.test.tsx
diff --git a/apps/dashboard/src/app/(main)/(protected)/(outside-dashboard)/new-project/page-client-parts/components.tsx b/apps/dashboard/src/app/(main)/(protected)/(outside-dashboard)/new-project/page-client-parts/components.tsx
index c4b25be94..d5551f2ac 100644
--- a/apps/dashboard/src/app/(main)/(protected)/(outside-dashboard)/new-project/page-client-parts/components.tsx
+++ b/apps/dashboard/src/app/(main)/(protected)/(outside-dashboard)/new-project/page-client-parts/components.tsx
@@ -93,43 +93,45 @@ export function OnboardingPage(props: OnboardingPageProps) {