Skip to content

12-changes - #11

Merged
simplygarvit merged 1 commit into
masterfrom
12-changes
Jul 25, 2026
Merged

simplygarvit merged 1 commit into
masterfrom
12-changes

Conversation

@simplygarvit

@simplygarvit simplygarvit commented Jul 25, 2026 •

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features
    • Added an AI Assist button to the playground header.
    • Updated sign-in options for Google and GitHub accounts.
  • Bug Fixes
    • Favorite/starred playground changes now refresh sidebar content more reliably.
    • Improved WebContainer startup behavior for smoother playground loading and recovery.
  • Improvements
    • Refined playground file and folder controls, including dropdown and settings interactions.
    • Simplified dashboard handling for starred and recent playgrounds.

@simplygarvit
simplygarvit merged commit c615aa9 into master Jul 25, 2026
1 check was pending
@coderabbitai

coderabbitai Bot commented Jul 25, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6db754ac-8fa6-48f7-89a8-b30d0b1f475c

📥 Commits

Reviewing files that changed from the base of the PR and between 386b7d1 and 063b91f.

📒 Files selected for processing (12)
  • app/playground/[id]/page.tsx
  • auth.config.ts
  • auth.ts
  • lib/user.ts
  • modules/auth/actions/index.ts
  • modules/auth/components/sign-in-form-client.tsx
  • modules/dashboard/components/add-new-button.tsx
  • modules/dashboard/components/dashboard-sidebar.tsx
  • modules/dashboard/components/marked-toggle.tsx
  • modules/home/header.tsx
  • modules/playground/components/playground-explorer.tsx
  • modules/webcontainers/hooks/useWebContainer.ts

📝 Walkthrough

Walkthrough

The pull request updates OAuth authentication, client sign-in handling, playground controls, dashboard state refresh behavior, WebContainer boot caching, and several stale imports or commented integrations.

Changes

Authentication flow

Layer / File(s) Summary
OAuth configuration and user access
auth.config.ts, auth.ts, lib/user.ts
NextAuth now separates provider configuration, registers GitHub and Google providers, supports a fallback secret, and adds database helpers for users and accounts.
Sign-in entry points
modules/auth/actions/index.ts, modules/auth/components/sign-in-form-client.tsx
OAuth sign-in actions are simplified, and the client form now starts Google and GitHub authentication through client-side NextAuth buttons.

Playground experience

Layer / File(s) Summary
Playground header and explorer controls
app/playground/[id]/page.tsx, modules/playground/components/playground-explorer.tsx
The playground adds an AI Assist toast action and uses render-based trigger composition for header, dropdown, tooltip, and collapsible controls.
WebContainer boot and teardown
modules/webcontainers/hooks/useWebContainer.ts
WebContainer boot promises are shared across hook instances and cleared after failures or destruction. Teardown also clears instance and server URL state.

Dashboard state updates

Layer / File(s) Summary
Dashboard list and marked refresh
modules/dashboard/components/dashboard-sidebar.tsx, modules/dashboard/components/marked-toggle.tsx
Playground lists are derived from initial data, while successful marked-item updates refresh the route and failed optimistic updates revert state.
Stale import cleanup
modules/dashboard/components/add-new-button.tsx, modules/home/header.tsx
Commented-out imports were removed without changing active component behavior.

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

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant SignInFormClient
  participant NextAuth
  participant OAuthProvider
  participant Dashboard
  User->>SignInFormClient: click Google or GitHub
  SignInFormClient->>NextAuth: signIn(provider, callbackUrl)
  NextAuth->>OAuthProvider: authenticate
  OAuthProvider-->>NextAuth: return OAuth result
  NextAuth-->>Dashboard: redirect to /dashboard
Loading

Possibly related PRs

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 12-changes

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

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