+
Skip to content

Conversation

marcusljf
Copy link
Collaborator

@marcusljf marcusljf commented Jul 23, 2025

  • Added the back to sign in button to show only on the onboarding/workspace page
CleanShot 2025-07-23 at 15 16 40@2x

Summary by CodeRabbit

  • New Features

    • Added a "Sign in as a different user" button on the onboarding workspace page, enabling easy sign-out and return to the login screen.
  • Style

    • Updated descriptive text in the onboarding workspace step for improved clarity.
    • Changed workspace creation form labels to lowercase for a more consistent interface.

Grouped a couple of changes here:
- Updated the workspace language to cut down on the word usage of workspace
- Added the back to sign in button to show only on the onboarding/workspace page
Copy link
Contributor

vercel bot commented Jul 23, 2025

@marcusljf is attempting to deploy a commit to the Dub Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

coderabbitai bot commented Jul 23, 2025

Warning

Rate limit exceeded

@steven-tey has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 42 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 5728593 and 983307c.

📒 Files selected for processing (2)
  • apps/web/app/app.dub.co/(onboarding)/layout.tsx (1 hunks)
  • apps/web/app/app.dub.co/(onboarding)/signed-in-hint.tsx (1 hunks)

Walkthrough

The updates consist of UI text changes and a conditional button addition. The onboarding layout now runs in client mode, displays a "Sign in as a different user" button on the workspace onboarding page that triggers sign out and redirects to login. Minor label and description text adjustments were made in the onboarding step and workspace form components.

Changes

File(s) Change Summary
apps/web/app/app.dub.co/(onboarding)/layout.tsx Added "use client";, imported navigation/auth hooks, and conditionally rendered a sign-out button with loading.
apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/workspace/page.tsx Updated onboarding step description text.
apps/web/ui/workspaces/create-workspace-form.tsx Lowercased the first letter of workspace form labels (name, slug, logo).

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant OnboardingLayout
    participant Auth

    User->>OnboardingLayout: Visit /onboarding/workspace
    OnboardingLayout->>OnboardingLayout: Render "Sign in as a different user" button with user email
    User->>OnboardingLayout: Click "Sign in as a different user"
    OnboardingLayout->>Auth: signOut(callbackUrl="/login")
    Auth->>User: Redirect to /login
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Suggested reviewers

  • steven-tey

Poem

A button appears, a gentle guide,
To sign you out and turn the tide.
Labels polished, words refined,
Onboarding now is more aligned.
With every tweak, our warren grows—
Hopping forward, UI glows!
🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
apps/web/app/app.dub.co/(onboarding)/layout.tsx (1)

17-33: Fix redundant button text declaration.

The button implementation is solid, but you're declaring the text twice - once in the text prop and once as children.

         <Button
           variant="secondary"
-          text="Back to sign in"
           size="sm"
           onClick={() =>
             signOut({
               callbackUrl: "/login",
             })
           }
           className="h-8 text-xs rounded-lg px-3 shadow-sm"
         >
           Back to sign in
         </Button>
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 666e481 and 6ff6cd2.

📒 Files selected for processing (3)
  • apps/web/app/app.dub.co/(onboarding)/layout.tsx (1 hunks)
  • apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/workspace/page.tsx (1 hunks)
  • apps/web/ui/workspaces/create-workspace-form.tsx (2 hunks)
🧰 Additional context used
🧠 Learnings (1)
apps/web/app/app.dub.co/(onboarding)/layout.tsx (1)

Learnt from: TWilson023
PR: #2484
File: apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/layout.tsx:9-44
Timestamp: 2025-06-25T18:07:53.860Z
Learning: In the dub codebase onboarding layouts, avoid suggesting premature abstraction of shared background components when the implementations are still dynamic and might diverge. The team prefers to wait until patterns stabilize before creating shared components.

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build
🔇 Additional comments (6)
apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/workspace/page.tsx (1)

10-10: LGTM! Improved terminology for better user understanding.

The change from "common space" to "shared space" is more intuitive and user-friendly, making the workspace concept clearer to new users.

apps/web/ui/workspaces/create-workspace-form.tsx (2)

141-141: LGTM! Cleaner label without redundant context.

Removing "Workspace" from "Workspace Slug" makes sense since users are already in the workspace creation context.


207-207: LGTM! Simplified label improves readability.

Shortening "Workspace Logo" to "Logo" reduces redundancy and creates a cleaner interface.

apps/web/app/app.dub.co/(onboarding)/layout.tsx (3)

1-1: LGTM! Client directive necessary for hooks and event handlers.

The "use client" directive is required for the usePathname hook and onClick handler.


5-7: LGTM! Appropriate imports for the new functionality.

All imports are necessary for the conditional button implementation.


10-11: LGTM! Clean pathname-based conditional logic.

The pathname check correctly targets the workspace onboarding page.

marcusljf and others added 3 commits July 23, 2025 15:17
Enhanced the onboarding workspace layout to show the signed-in user's email and improved the sign-out button with loading state and updated text. Updated labels in the create workspace form for clarity and consistency.
@steven-tey steven-tey merged commit d87529a into dubinc:main Jul 23, 2025
4 of 6 checks passed
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.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载