Skip to content

Conversation

@Cheerego7
Copy link
Collaborator

No description provided.

@coderabbitai
Copy link

coderabbitai bot commented Oct 10, 2025

Caution

Review failed

The pull request is closed.

Summary by CodeRabbit

  • 新功能

  • Bug 修复

    • 修复登录重定向逻辑:已登录用户将正确跳转至 chat.oomol.com,避免返回旧站点导致流程中断或重复登录。
    • 统一回调地址配置,减少异常跳转与白屏情况,提升登录与回访体验的一致性与稳定性。

Walkthrough

在导航栏组件中更新了登录回调常量,将 CALLBACK_URL 从 "https://hub.oomol.com" 改为 "https://chat.oomol.com/";登录处理逻辑在已登录情况下改为使用该常量;重定向 URL 的构造基于该常量。

Changes

Cohort / File(s) Summary
认证回调常量与使用更新
src/theme/Navbar/index.tsx
更新 CALLBACK_URL 常量到新域名;signin 处理在已登录时改为使用 CALLBACK_URL;重定向 URL 继续基于该常量构建。

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant U as User
  participant N as Navbar
  participant A as Auth Service
  participant B as Browser

  U->>N: 点击登录
  N->>A: 检查登录状态
  alt 未登录
    A-->>N: 未登录
    N->>B: 跳转至提供商登录页(使用 CALLBACK_URL)
  else 已登录
    A-->>N: 已登录
    N->>B: 直接重定向至 CALLBACK_URL
  end

  note over N,B: CALLBACK_URL 从 https://hub.oomol.com 更新为 https://chat.oomol.com/
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9177b79 and 23fa1b9.

📒 Files selected for processing (1)
  • src/theme/Navbar/index.tsx (1 hunks)

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

@Cheerego7 Cheerego7 merged commit 272bcf9 into main Oct 10, 2025
2 of 3 checks passed
@Cheerego7 Cheerego7 deleted the refactor-change-signin-entry branch October 10, 2025 06:08
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