Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions changelog/unreleased/caiai-softlink-home.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### English

- CaiAI empty-state soft link now opens the homepage (`https://caiaiu.com`) instead of the affiliate register URL.
- Add Account picker dialog is slightly narrower (`max-w-5xl`) while keeping the 3-column tile grid.

### 中文

- 空态 CaiAI 软链改为打开首页 `https://caiaiu.com`,去掉注册页 affiliate 参数。
- 添加账号选择弹窗略收窄为 `max-w-5xl`,仍保持三列磁贴布局。
4 changes: 2 additions & 2 deletions frontend/src/components/AddAccountModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,9 @@ export function AddAccountModal({ isOpen, onClose, onAdded }: Props) {
<Modal.Container
size="lg"
scroll="inside"
className={step === 'method' ? 'sm:max-w-6xl' : 'sm:max-w-5xl'}
className="sm:max-w-5xl"
>
<Modal.Dialog className={step === 'method' ? 'w-full max-w-6xl' : 'w-full max-w-5xl'}>
<Modal.Dialog className="w-full max-w-5xl">
<Modal.Header className="relative items-center justify-center px-12 pt-5 text-center">
<div className="min-w-0">
<Modal.Heading className="text-section font-semibold">{t('addAccountTitle')}</Modal.Heading>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/CaiaiSoftLink.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { useI18n } from '@/hooks/useI18n'

const CAIAI_REGISTER_URL = 'https://caiaiu.com/register?aff=cli2api'
const CAIAI_HOME_URL = 'https://caiaiu.com'

/** Skipable hosted-gateway soft link for empty account states. Not a provider tile. */
export function CaiaiSoftLink({ className = '' }: { className?: string }) {
const { t } = useI18n()
return (
<p className={`text-caption leading-5 text-muted ${className}`.trim()}>
<a
href={CAIAI_REGISTER_URL}
href={CAIAI_HOME_URL}
target="_blank"
rel="noopener noreferrer"
className="underline-offset-2 transition-colors hover:text-foreground hover:underline"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Loading
Loading