Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(apps): redesign /apps as a bento grid and surface it on desktop (#18562)

Innei2efe582157ca
diff --git a/locales/en-US/setting.json b/locales/en-US/setting.json
index 35d6f80961c..cdd2ef065fe 100644
--- a/locales/en-US/setting.json
+++ b/locales/en-US/setting.json
@@ -225,22 +225,27 @@
"analytics.telemetry.title": "Send Anonymous Usage Data",
"analytics.title": "Analytics",
"apps.cli.copied": "Copied",
- "apps.cli.copy": "Copy install command",
- "apps.cli.desc": "Scripts, devices, and headless work from the command line.",
+ "apps.cli.copy": "Copy",
+ "apps.cli.desc": "Scripts, cron jobs, and headless agents — the same LobeHub, from any terminal.",
"apps.cli.title": "CLI",
"apps.desktop.cta": "Get desktop app",
- "apps.desktop.desc": "Local files, system tools, and focused work on this machine.",
+ "apps.desktop.desc": "Chat, build, and automate in one app, with full access to this machine:",
+ "apps.desktop.features.files.desc": "read, write, and organize your folders",
+ "apps.desktop.features.files.label": "Local files",
+ "apps.desktop.features.focus.desc": "a dedicated window, away from browser tabs",
+ "apps.desktop.features.focus.label": "Focused work",
+ "apps.desktop.features.tools.desc": "screenshots, notifications, shell",
+ "apps.desktop.features.tools.label": "System tools",
"apps.desktop.inUse": "In use",
"apps.desktop.inUseDesc": "You're already in the desktop app.",
"apps.desktop.title": "Desktop",
- "apps.kicker": "Ways",
- "apps.messenger.cta": "Set up Messenger",
- "apps.messenger.desc": "Talk to LobeHub in Discord, Feishu, Slack, and the rest.",
+ "apps.messenger.desc": "Talk to your agents where your team already is — replies land back in LobeHub.",
+ "apps.messenger.setup": "Set up",
"apps.messenger.title": "Messenger",
"apps.mobile.cta": "Get mobile app",
- "apps.mobile.desc": "Start conversations from your phone when you leave the computer.",
+ "apps.mobile.desc": "Pick up where you left off — your chats, agents, and files travel with you.",
"apps.mobile.title": "Mobile",
- "apps.title": "Discover more ways to use LobeHub",
+ "apps.title": "Do more with LobeHub, everywhere you work",
"artworkStudio.cancel": "Cancel generation",
"artworkStudio.composition.avatar": "Avatar",
"artworkStudio.composition.fullBody": "Full body",
diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.json
index 8f2029ea51d..3c64cd7697a 100644
--- a/locales/zh-CN/setting.json
+++ b/locales/zh-CN/setting.json
@@ -225,22 +225,27 @@
"analytics.telemetry.title": "发送匿名使用数据",
"analytics.title": "数据统计",
"apps.cli.copied": "已复制",
- "apps.cli.copy": "复制安装命令",
- "apps.cli.desc": "在终端里做脚本、设备和无界面的工作。",
+ "apps.cli.copy": "复制",
+ "apps.cli.desc": "脚本、定时任务和无界面智能体——在任何终端使用同一个 LobeHub。",
"apps.cli.title": "CLI",
"apps.desktop.cta": "获取桌面应用",
- "apps.desktop.desc": "处理本机文件、系统工具,以及更专注的电脑端工作。",
+ "apps.desktop.desc": "聊天、构建、自动化都在一个应用里,还能使用这台电脑的完整能力:",
+ "apps.desktop.features.files.desc": "读取、写入、整理你的文件夹",
+ "apps.desktop.features.files.label": "本地文件",
+ "apps.desktop.features.focus.desc": "独立窗口,远离浏览器标签页",
+ "apps.desktop.features.focus.label": "专注工作",
+ "apps.desktop.features.tools.desc": "截图、通知、Shell 命令",
+ "apps.desktop.features.tools.label": "系统工具",
"apps.desktop.inUse": "使用中",
"apps.desktop.inUseDesc": "你已经在桌面应用里。",
"apps.desktop.title": "桌面",
- "apps.kicker": "用法",
- "apps.messenger.cta": "设置 Messenger",
- "apps.messenger.desc": "在 Discord、飞书、Slack 等你已经在用的聊天软件里使用 LobeHub。",
+ "apps.messenger.desc": "在团队已经在用的聊天软件里和你的智能体对话——回复会同步回 LobeHub。",
+ "apps.messenger.setup": "去设置",
"apps.messenger.title": "Messenger",
"apps.mobile.cta": "获取移动应用",
- "apps.mobile.desc": "离开电脑时,用手机继续对话。",
+ "apps.mobile.desc": "从上次停下的地方继续——你的会话、智能体和文件都随身携带。",
"apps.mobile.title": "移动端",
- "apps.title": "探索 LobeHub 的更多使用方式",
+ "apps.title": "在你工作的每个地方,用 LobeHub 做更多",
"artworkStudio.cancel": "取消生成",
"artworkStudio.composition.avatar": "头像",
"artworkStudio.composition.fullBody": "全身形象",
diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.ts
index 7ec87d5ee9b..13945776c11 100644
--- a/packages/locales/src/default/setting.ts
+++ b/packages/locales/src/default/setting.ts
@@ -651,22 +651,28 @@ export default {
'devices.visibilityTabs.workspace': 'Workspace',
'devices.workingDirectory': 'Working dir: {{path}}',
'apps.cli.copied': 'Copied',
- 'apps.cli.copy': 'Copy install command',
- 'apps.cli.desc': 'Scripts, devices, and headless work from the command line.',
+ 'apps.cli.copy': 'Copy',
+ 'apps.cli.desc': 'Scripts, cron jobs, and headless agents — the same LobeHub, from any terminal.',
'apps.cli.title': 'CLI',
'apps.desktop.cta': 'Get desktop app',
- 'apps.desktop.desc': 'Local files, system tools, and focused work on this machine.',
+ 'apps.desktop.desc': 'Chat, build, and automate in one app, with full access to this machine:',
+ 'apps.desktop.features.files.desc': 'read, write, and organize your folders',
+ 'apps.desktop.features.files.label': 'Local files',
+ 'apps.desktop.features.focus.desc': 'a dedicated window, away from browser tabs',
+ 'apps.desktop.features.focus.label': 'Focused work',
+ 'apps.desktop.features.tools.desc': 'screenshots, notifications, shell',
+ 'apps.desktop.features.tools.label': 'System tools',
'apps.desktop.inUse': 'In use',
'apps.desktop.inUseDesc': "You're already in the desktop app.",
'apps.desktop.title': 'Desktop',
- 'apps.kicker': 'Ways',
- 'apps.messenger.cta': 'Set up Messenger',
- 'apps.messenger.desc': 'Talk to LobeHub in Discord, Feishu, Slack, and the rest.',
+ 'apps.messenger.desc':
+ 'Talk to your agents where your team already is — replies land back in LobeHub.',
+ 'apps.messenger.setup': 'Set up',
'apps.messenger.title': 'Messenger',
'apps.mobile.cta': 'Get mobile app',
- 'apps.mobile.desc': 'Start conversations from your phone when you leave the computer.',
+ 'apps.mobile.desc': 'Pick up where you left off — your chats, agents, and files travel with you.',
'apps.mobile.title': 'Mobile',
- 'apps.title': 'Discover more ways to use LobeHub',
+ 'apps.title': 'Do more with LobeHub, everywhere you work',
'checkingPermissions': 'Checking permissions...',
'danger.reset.action': 'Reset Now',
'danger.reset.confirm': 'Reset all settings?',
diff --git a/src/features/Apps/const.ts b/src/features/Apps/const.ts
new file mode 100644
index 00000000000..76ca045c8bc
--- /dev/null
+++ b/src/features/Apps/const.ts
@@ -0,0 +1,10 @@
+export const CLI_INSTALL_COMMAND = 'npm install -g @lobehub/cli';
+
+const LANDING_CDN = 'https://hub-apac-1.lobeobjects.space/images';
+
+export const APP_SHOTS = {
+ cli: `${LANDING_CDN}/cli/hero.webp`,
+ desktopDark: `${LANDING_CDN}/home/overview-cao-dark.webp`,
+ desktopLight: `${LANDING_CDN}/home/overview-cao-light.webp`,
+ mobile: 'https://lobehub.com/images/mobile/chat.png',
+};
diff --git a/src/features/Apps/index.tsx b/src/features/Apps/index.tsx
index 513b179500a..1cf0a1c82da 100644
--- a/src/features/Apps/index.tsx
+++ b/src/features/Apps/index.tsx
@@ -1,59 +1,25 @@
'use client';
import { DOWNLOAD_URL, isDesktop } from '@lobechat/const';
-import { Icon, Tag, Text } from '@lobehub/ui';
+import { Tag, Text } from '@lobehub/ui';
import { Button } from '@lobehub/ui/base-ui';
-import type { LucideIcon } from 'lucide-react';
-import { Check, Copy, MessageCircle, Monitor, Smartphone, Terminal } from 'lucide-react';
+import { ArrowUpRight, Check, Copy } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router';
-import { styles } from './style';
-
-const CLI_INSTALL_COMMAND = 'npm install -g @lobehub/cli';
+import { PlatformAvatar, SUPPORTED_MESSENGER_PLATFORMS } from '@/features/Messenger/constants';
-const WAYS = [
- {
- ctaKey: 'apps.desktop.cta',
- descKey: 'apps.desktop.desc',
- icon: Monitor,
- id: 'desktop',
- titleKey: 'apps.desktop.title',
- },
- {
- ctaKey: 'apps.mobile.cta',
- descKey: 'apps.mobile.desc',
- icon: Smartphone,
- id: 'mobile',
- titleKey: 'apps.mobile.title',
- },
- {
- ctaKey: 'apps.messenger.cta',
- descKey: 'apps.messenger.desc',
- icon: MessageCircle,
- id: 'messenger',
- titleKey: 'apps.messenger.title',
- },
- {
- ctaKey: 'apps.cli.copy',
- descKey: 'apps.cli.desc',
- icon: Terminal,
- id: 'cli',
- titleKey: 'apps.cli.title',
- },
-] as const satisfies ReadonlyArray<{
- ctaKey: string;
- descKey: string;
- icon: LucideIcon;
- id: string;
- titleKey: string;
-}>;
+import { CLI_INSTALL_COMMAND } from './const';
+import { CliScene, DesktopScene, MobileScene } from './scenes';
+import { styles } from './style';
const openExternal = (url: string) => {
window.open(url, '_blank', 'noopener,noreferrer');
};
+const DESKTOP_FEATURES = ['files', 'tools', 'focus'] as const;
+
const AppsPage = () => {
const { t } = useTranslation('setting');
const navigate = useNavigate();
@@ -70,69 +36,104 @@ const AppsPage = () => {
}
};
- const onAct = (id: (typeof WAYS)[number]['id']) => {
- if (id === 'desktop') {
- openExternal(DOWNLOAD_URL.default);
- return;
- }
- if (id === 'mobile') {
- openExternal(DOWNLOAD_URL.mobile);
- return;
- }
- if (id === 'messenger') {
- navigate('/settings/messenger');
- return;
- }
- void copyInstallCommand();
- };
-
return (
<div className={styles.page}>
<main className={styles.content}>
- <div className={styles.grid}>
- <header className={styles.header}>
- <div className={styles.headerTop}>
- <span className={styles.index}>00</span>
- <span className={styles.kicker}>{t('apps.kicker')}</span>
- </div>
- <h1 className={styles.pageTitle}>{t('apps.title')}</h1>
- </header>
-
- {WAYS.map((way, index) => {
- const inUse = way.id === 'desktop' && isDesktop;
+ <h1 className={styles.headline}>{t('apps.title')}</h1>
- return (
- <article className={styles.cell} key={way.id}>
- <div className={styles.cellMeta}>
- <span className={styles.index}>{String(index + 1).padStart(2, '0')}</span>
- <span className={styles.iconBox}>
- <Icon icon={way.icon} size={18} />
- </span>
- </div>
- <div className={styles.cellBody}>
- <h2 className={styles.cellTitle}>{t(way.titleKey)}</h2>
- <Text type="secondary">{t(inUse ? 'apps.desktop.inUseDesc' : way.descKey)}</Text>
- </div>
- <div className={styles.actionSlot}>
- {way.id === 'cli' && (
- <code className={styles.command}>{CLI_INSTALL_COMMAND}</code>
- )}
- {inUse ? (
+ <div className={styles.grid}>
+ <article className={`${styles.card} ${styles.spanFull}`}>
+ <div className={styles.heroInner}>
+ <div className={styles.cardBody}>
+ <div style={{ alignItems: 'center', display: 'flex', gap: 10 }}>
+ <h2 className={styles.cardTitle}>{t('apps.desktop.title')}</h2>
+ {isDesktop && (
<Tag icon={<Check size={12} />} size="small">
{t('apps.desktop.inUse')}
</Tag>
- ) : (
- <Button
- icon={way.id === 'cli' ? (copied ? Check : Copy) : undefined}
- onClick={() => onAct(way.id)}
- >
- {way.id === 'cli' && copied ? t('apps.cli.copied') : t(way.ctaKey)}
- </Button>
)}
</div>
- </article>
- );
- })}
+ <Text style={{ marginTop: 8 }} type="secondary">
+ {t(isDesktop ? 'apps.desktop.inUseDesc' : 'apps.desktop.desc')}
+ </Text>
+ <ul className={styles.bullets}>
+ {DESKTOP_FEATURES.map((feature) => (
+ <li key={feature}>
+ <strong>{t(`apps.desktop.features.${feature}.label`)}</strong>
+ {' — '}
+ {t(`apps.desktop.features.${feature}.desc`)}
+ </li>
+ ))}
+ </ul>
+ {!isDesktop && (
+ <div className={styles.ctaRow}>
+ <Button type="primary" onClick={() => openExternal(DOWNLOAD_URL.default)}>
+ {t('apps.desktop.cta')}
+ </Button>
+ </div>
+ )}
+ </div>
+ <DesktopScene />
+ </div>
+ </article>
+
+ <article className={styles.card}>
+ <div className={styles.cardBody}>
+ <h2 className={styles.cardTitle}>{t('apps.mobile.title')}</h2>
+ <Text style={{ marginTop: 8 }} type="secondary">
+ {t('apps.mobile.desc')}
+ </Text>
+ <div className={styles.ctaRow}>
+ <Button onClick={() => openExternal(DOWNLOAD_URL.mobile)}>
+ {t('apps.mobile.cta')}
+ </Button>
+ </div>
+ </div>
+ <MobileScene />
+ </article>
+
+ <article className={styles.card}>
+ <div className={styles.cardBody} style={{ paddingBottom: 20 }}>
+ <h2 className={styles.cardTitle}>{t('apps.messenger.title')}</h2>
+ <Text style={{ marginTop: 8 }} type="secondary">
+ {t('apps.messenger.desc')}
+ </Text>
+ </div>
+ {SUPPORTED_MESSENGER_PLATFORMS.map((platform) => (
+ <div className={styles.channelRow} key={platform.id}>
+ <PlatformAvatar platform={platform.id} size={32} />
+ <Text style={{ flex: 1 }} weight={500}>
+ {platform.name}
+ </Text>
+ <Button
+ icon={ArrowUpRight}
+ iconPosition="end"
+ size="small"
+ onClick={() => navigate('/settings/messenger')}
+ >
+ {t('apps.messenger.setup')}
+ </Button>
+ </div>
+ ))}
+ </article>
+
+ <article className={`${styles.card} ${styles.spanFull}`}>
+ <div className={styles.cliInner}>
+ <div className={styles.cardBody}>
+ <h2 className={styles.cardTitle}>{t('apps.cli.title')}</h2>
+ <Text style={{ marginTop: 8 }} type="secondary">
+ {t('apps.cli.desc')}
+ </Text>
+ <div className={styles.command}>
+ {CLI_INSTALL_COMMAND}
+ <Button icon={copied ? Check : Copy} size="small" onClick={copyInstallCommand}>
+ {copied ? t('apps.cli.copied') : t('apps.cli.copy')}
+ </Button>
+ </div>
+ </div>
+ <CliScene />
+ </div>
+ </article>
</div>
</main>
</div>
diff --git a/src/features/Apps/scenes.tsx b/src/features/Apps/scenes.tsx
new file mode 100644
index 00000000000..6186376c9e0
--- /dev/null
+++ b/src/features/Apps/scenes.tsx
@@ -0,0 +1,31 @@
+'use client';
+
+import { APP_SHOTS } from './const';
+import { styles } from './style';
+
+export const DesktopScene = () => (
+ <div className={styles.stage}>
+ <img
+ alt=""
+ className={`${styles.desktopShot} ${styles.lightOnly}`}
+ src={APP_SHOTS.desktopLight}
+ />
+ <img
+ alt=""
+ className={`${styles.desktopShot} ${styles.darkOnly}`}
+ src={APP_SHOTS.desktopDark}
+ />
+ </div>
+);
+
+export const MobileScene = () => (
+ <div className={styles.mobileStage}>
+ <div className={styles.phone}>
+ <img alt="" className={styles.phoneShot} loading="lazy" src={APP_SHOTS.mobile} />
+ </div>
+ </div>
+);
+
+export const CliScene = () => (
+ <img alt="" className={styles.cliShot} loading="lazy" src={APP_SHOTS.cli} />
+);
diff --git a/src/features/Apps/style.ts b/src/features/Apps/style.ts
index bd1c9d9bded..1aeae20db18 100644
--- a/src/features/Apps/style.ts
+++ b/src/features/Apps/style.ts
@@ -1,144 +1,257 @@
import { createStaticStyles } from 'antd-style';
export const styles = createStaticStyles(({ css, cssVar }) => ({
- actionSlot: css`
+ bullets: css`
display: flex;
- flex-wrap: wrap;
- gap: 8px;
- align-items: center;
+ flex-direction: column;
+ gap: 10px;
- margin-block-start: auto;
+ margin: 0;
+ margin-block-start: 20px;
+ padding: 0;
+
+ list-style: none;
+
+ li {
+ position: relative;
+
+ padding-inline-start: 18px;
+
+ font-size: ${cssVar.fontSize};
+ line-height: 1.55;
+ color: ${cssVar.colorTextSecondary};
+
+ &::before {
+ content: '';
+
+ position: absolute;
+ inset-block-start: 9px;
+ inset-inline-start: 2px;
+
+ width: 5px;
+ height: 5px;
+ border-radius: 50%;
+
+ background: ${cssVar.colorTextQuaternary};
+ }
+
+ strong {
+ font-weight: ${cssVar.fontWeightStrong};
+ color: ${cssVar.colorText};
+ }
+ }
`,
- cell: css`
+ card: css`
+ position: relative;
+
+ overflow: hidden;
display: flex;
flex-direction: column;
- gap: 16px;
- min-height: 280px;
+ background: ${cssVar.colorBgContainer};
+ `,
+ cardBody: css`
padding: 32px;
-
background: ${cssVar.colorBgContainer};
- transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
- transition-duration: 160ms;
- transition-property: background-color;
-
- &:hover {
- background: ${cssVar.colorFillQuaternary};
+ @media (width <= 860px) {
+ padding: 24px;
}
+ `,
+ cardTitle: css`
+ margin: 0;
+ font-size: ${cssVar.fontSizeXL};
+ font-weight: ${cssVar.fontWeightStrong};
+ line-height: 1.3;
+ `,
+ actionSlot: css`
+ display: flex;
+ flex-wrap: wrap;
+ gap: 12px;
+ align-items: center;
+
+ margin-block-start: auto;
+ `,
+ cell: css`
+ min-height: 260px;
+ padding: 28px;
+ background: ${cssVar.colorBgContainer};
- @media (width <= 760px) {
+ @media (width <= 860px) {
min-height: 220px;
padding: 24px;
}
`,
cellBody: css`
display: flex;
- flex: 1;
flex-direction: column;
- gap: 8px;
+ gap: 12px;
+ margin-block: 34px 28px;
`,
cellMeta: css`
display: flex;
align-items: center;
justify-content: space-between;
`,
- cellTitle: css`
- margin: 0;
- font-size: ${cssVar.fontSizeXL};
- font-weight: ${cssVar.fontWeightStrong};
- line-height: 1.3;
+ channelRow: css`
+ display: flex;
+ gap: 12px;
+ align-items: center;
+
+ padding-block: 12px;
+ padding-inline: 32px;
+ border-block-start: 1px solid ${cssVar.colorBorderSecondary};
+
+ @media (width <= 860px) {
+ padding-inline: 24px;
+ }
+ `,
+ cliInner: css`
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 1px;
+ align-items: stretch;
+
+ background: ${cssVar.colorBorder};
+
+ @media (width <= 860px) {
+ grid-template-columns: 1fr;
+ }
`,
command: css`
- overflow: hidden;
+ display: inline-flex;
+ gap: 10px;
+ align-items: center;
- min-width: 0;
- padding-block: 8px;
- padding-inline: 12px;
- border-radius: ${cssVar.borderRadiusSM};
+ margin-block-start: 20px;
+ padding-block: 6px;
+ padding-inline: 14px 6px;
+ border: 1px solid ${cssVar.colorBorderSecondary};
font-family: ${cssVar.fontFamilyCode};
font-size: ${cssVar.fontSizeSM};
color: ${cssVar.colorText};
- text-overflow: ellipsis;
- white-space: nowrap;
- background: ${cssVar.colorFillTertiary};
+ background: ${cssVar.colorFillQuaternary};
`,
content: css`
- width: min(100%, 1040px);
- margin-block: 0;
+ width: min(100%, 1080px);
margin-inline: auto;
- padding-block: 32px 96px;
+ padding-block: 32px 64px;
padding-inline: 24px;
- @media (width <= 760px) {
- padding-block: 16px 64px;
+ @media (width <= 860px) {
+ padding-block: 20px 48px;
padding-inline: 16px;
}
`,
+ ctaRow: css`
+ margin-block-start: 24px;
+ `,
+ cliShot: css`
+ display: block;
+
+ width: 100%;
+ height: 100%;
+ min-height: 240px;
+
+ object-fit: cover;
+ background: #101014;
+ `,
+ darkOnly: css`
+ display: none;
+
+ html[data-theme='dark'] & {
+ display: block;
+ }
+ `,
+ desktopShot: css`
+ position: absolute;
+ inset-block-end: -40px;
+ inset-inline-end: -48px;
+
+ width: 540px;
+ border-radius: 8px;
+
+ box-shadow: ${cssVar.boxShadow};
+ `,
+ lightOnly: css`
+ html[data-theme='dark'] & {
+ display: none;
+ }
+ `,
grid: css`
- overflow: hidden;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1px;
border: 1px solid ${cssVar.colorBorder};
- border-radius: ${cssVar.borderRadiusLG};
background: ${cssVar.colorBorder};
- @media (width <= 760px) {
+ @media (width <= 860px) {
grid-template-columns: 1fr;
}
`,
header: css`
- display: flex;
grid-column: 1 / -1;
- flex-direction: column;
- gap: 16px;
- justify-content: end;
-
- min-height: 168px;
+ min-height: 180px;
padding: 32px;
-
background: ${cssVar.colorBgContainer};
- @media (width <= 760px) {
- min-height: 132px;
+ @media (width <= 860px) {
+ min-height: 150px;
padding: 24px;
}
`,
headerTop: css`
display: flex;
+ gap: 12px;
align-items: center;
- justify-content: space-between;
+ margin-block-end: 28px;
`,
- kicker: css`
- font-size: ${cssVar.fontSizeSM};
- color: ${cssVar.colorTextSecondary};
+ headline: css`
+ margin-block: 8px 28px;
+
+ font-size: clamp(24px, 3.2vw, 32px);
+ font-weight: ${cssVar.fontWeightStrong};
+ line-height: 1.2;
+ color: ${cssVar.colorText};
+ text-wrap: balance;
+ letter-spacing: -0.01em;
+ `,
+ heroInner: css`
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ flex: 1;
+ gap: 1px;
+
+ min-height: 320px;
+
+ background: ${cssVar.colorBorder};
+
+ @media (width <= 860px) {
+ grid-template-columns: 1fr;
+ }
`,
iconBox: css`
- display: flex;
- flex-shrink: 0;
- align-items: center;
- justify-content: center;
+ display: block;
width: 40px;
height: 40px;
- border: 1px solid ${cssVar.colorBorderSecondary};
- border-radius: ${cssVar.borderRadiusLG};
-
- color: ${cssVar.colorText};
+ border-radius: 8px;
background: ${cssVar.colorFillQuaternary};
`,
- index: css`
- font-family: ${cssVar.fontFamilyCode};
- font-size: ${cssVar.fontSizeSM};
- font-variant-numeric: tabular-nums;
- line-height: 1;
- color: ${cssVar.colorTextTertiary};
+ mobileStage: css`
+ position: relative;
+ height: 200px;
+ margin-block-start: auto;
+ background: #f3f0ea;
+
+ html[data-theme='dark'] & {
+ background: ${cssVar.colorFillQuaternary};
+ }
`,
page: css`
overflow-y: auto;
@@ -146,12 +259,43 @@ export const styles = createStaticStyles(({ css, cssVar }) => ({
min-height: 100%;
background: ${cssVar.colorBgLayout};
`,
- pageTitle: css`
- margin: 0;
+ phone: css`
+ position: absolute;
+ inset-block-end: -64px;
+ inset-inline-start: 50%;
+ transform: translateX(-50%);
- font-size: ${cssVar.fontSizeHeading2};
- font-weight: ${cssVar.fontWeightStrong};
- line-height: 1.2;
- text-wrap: balance;
+ overflow: hidden;
+
+ width: 216px;
+ height: 260px;
+ border: 6px solid #1c1c1e;
+ border-block-end: none;
+ border-start-start-radius: 32px;
+ border-start-end-radius: 32px;
+
+ background: ${cssVar.colorBgElevated};
+ box-shadow: ${cssVar.boxShadow};
+
+ html[data-theme='dark'] & {
+ border-color: #3a3a40;
+ }
+ `,
+ phoneShot: css`
+ display: block;
+ width: 100%;
+ `,
+ spanFull: css`
+ grid-column: 1 / -1;
+ `,
+ stage: css`
+ position: relative;
+ overflow: hidden;
+ min-height: 300px;
+ background: #f3f0ea;
+
+ html[data-theme='dark'] & {
+ background: ${cssVar.colorFillQuaternary};
+ }
`,
}));
diff --git a/src/features/Electron/titlebar/TabBar/scope.test.ts b/src/features/Electron/titlebar/TabBar/scope.test.ts
index 49061be2e6d..623d49862fa 100644
--- a/src/features/Electron/titlebar/TabBar/scope.test.ts
+++ b/src/features/Electron/titlebar/TabBar/scope.test.ts
@@ -5,6 +5,7 @@ import { isSameTabTarget, normalizeTabScope, resolveTabScope, tabTargetId } from
describe('desktop tab scope', () => {
it('marks known top-level desktop routes as personal scope', () => {
expect(resolveTabScope('/agent/personal-agent')).toEqual({ type: 'personal' });
+ expect(resolveTabScope('/apps')).toEqual({ type: 'personal' });
expect(resolveTabScope('/settings/profile')).toEqual({ type: 'personal' });
expect(resolveTabScope('/verify/run_1')).toEqual({ type: 'personal' });
expect(resolveTabScope('/invite/abc')).toEqual({ type: 'personal' });
diff --git a/src/features/Electron/titlebar/TabBar/scope.ts b/src/features/Electron/titlebar/TabBar/scope.ts
index db692472372..6bc6291d444 100644
--- a/src/features/Electron/titlebar/TabBar/scope.ts
+++ b/src/features/Electron/titlebar/TabBar/scope.ts
@@ -18,6 +18,7 @@ const FIRST_SEGMENT_REGEX = /^\/([^/?#]+)/;
const PERSONAL_TOP_LEVEL_SEGMENTS = new Set([
'agent',
+ 'apps',
'community',
'desktop-onboarding',
'devtools',
diff --git a/src/features/HomeSidebar/Footer/index.test.tsx b/src/features/HomeSidebar/Footer/index.test.tsx
index 35c5b312404..cdfb9094321 100644
--- a/src/features/HomeSidebar/Footer/index.test.tsx
+++ b/src/features/HomeSidebar/Footer/index.test.tsx
@@ -176,13 +176,13 @@ describe('Footer help menu tracking', () => {
expect(getApp.compareDocumentPosition(github) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
}, 20000);
- it('does not show Get App in desktop builds', async () => {
+ it('shows Get App in desktop builds too', async () => {
const user = userEvent.setup();
await renderFooter({ desktop: true, hideGitHub: false });
await user.click(screen.getByRole('button', { name: 'Help' }));
- expect(screen.queryByRole('link', { name: 'Get App' })).not.toBeInTheDocument();
+ expect(await screen.findByRole('link', { name: 'Get App' })).toHaveAttribute('href', '/apps');
}, 20000);
it('tracks menu open with the visible item keys', async () => {
diff --git a/src/features/HomeSidebar/Footer/index.tsx b/src/features/HomeSidebar/Footer/index.tsx
index 00446403ef7..ac6a780ac81 100644
--- a/src/features/HomeSidebar/Footer/index.tsx
+++ b/src/features/HomeSidebar/Footer/index.tsx
@@ -1,7 +1,6 @@
'use client';
import { SOCIAL_URL } from '@lobechat/business-const';
-import { isDesktop } from '@lobechat/const';
import { useAnalytics } from '@lobehub/analytics/react';
import { type MenuProps } from '@lobehub/ui';
import { ActionIcon, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
@@ -168,7 +167,7 @@ const Footer = memo(() => {
label: t('changelog'),
onClick: handleOpenChangelogModal,
},
- ...(!isDesktop && footer.layout === 'compact'
+ ...(footer.layout === 'compact'
? [
{
icon: <Icon icon={Download} />,
diff --git a/src/features/User/UserPanel/useMenu.tsx b/src/features/User/UserPanel/useMenu.tsx
index ed1fb10eaa0..b484ff63e86 100644
--- a/src/features/User/UserPanel/useMenu.tsx
+++ b/src/features/User/UserPanel/useMenu.tsx
@@ -137,7 +137,7 @@ export const useMenu = () => {
]
: []),
...(!hideDocs ? helps : []),
- ...(!isDesktop ? getApp : []),
+ ...getApp,
]
.filter(Boolean)
// Remove consecutive dividers to prevent double divider lines
diff --git a/src/features/Workspace/__tests__/workspaceAwarePath.test.ts b/src/features/Workspace/__tests__/workspaceAwarePath.test.ts
index 0e80793f508..f648bcec34e 100644
--- a/src/features/Workspace/__tests__/workspaceAwarePath.test.ts
+++ b/src/features/Workspace/__tests__/workspaceAwarePath.test.ts
@@ -66,6 +66,7 @@ describe('buildWorkspaceAwarePath', () => {
});
it('skips prefix for personal-only top-level paths', () => {
+ expect(buildWorkspaceAwarePath('/apps', 'acme')).toBe('/apps');
expect(buildWorkspaceAwarePath('/onboarding/agent', 'acme')).toBe('/onboarding/agent');
expect(buildWorkspaceAwarePath('/me/profile', 'acme')).toBe('/me/profile');
expect(buildWorkspaceAwarePath('/share/t/foo', 'acme')).toBe('/share/t/foo');
diff --git a/src/features/Workspace/useWorkspaceUrlSync.ts b/src/features/Workspace/useWorkspaceUrlSync.ts
index 1fdbae48b5e..ec615a126b8 100644
--- a/src/features/Workspace/useWorkspaceUrlSync.ts
+++ b/src/features/Workspace/useWorkspaceUrlSync.ts
@@ -32,6 +32,7 @@ const RESERVED_FIRST_SEGMENTS = new Set([
'tasks',
'task',
// Personal-only:
+ 'apps',
'settings',
'onboarding',
'me',
diff --git a/src/features/Workspace/workspaceAwarePath.ts b/src/features/Workspace/workspaceAwarePath.ts
index 3a6b9be306b..62b245f1dff 100644
--- a/src/features/Workspace/workspaceAwarePath.ts
+++ b/src/features/Workspace/workspaceAwarePath.ts
@@ -16,7 +16,7 @@ export interface WorkspaceAwareNavigateOptions extends NavigateOptions {
* llm, referral, system-tools, etc.) stays personal.
*/
const PERSONAL_PATH_REGEX =
- /^\/(?:invite|onboarding|me|share|devtools|desktop-onboarding)(?:[/?#]|$)/;
+ /^\/(?:apps|invite|onboarding|me|share|devtools|desktop-onboarding)(?:[/?#]|$)/;
const isPersonalPath = (to: string): boolean => PERSONAL_PATH_REGEX.test(to);
diff --git a/src/layout/GlobalProvider/useUserStateRedirect.ts b/src/layout/GlobalProvider/useUserStateRedirect.ts
index d1c83c140e8..7bc508d2cc2 100644
--- a/src/layout/GlobalProvider/useUserStateRedirect.ts
+++ b/src/layout/GlobalProvider/useUserStateRedirect.ts
@@ -11,6 +11,7 @@ const DEFER_REDIRECT_PREFIXES = ['/invite'];
const RESERVED_FIRST_SEGMENTS = new Set([
'agent',
+ 'apps',
'community',
'desktop-onboarding',
'devtools',