Skip to content

World's first open-source enterprise world model.

The alert bell follows the person to the docs and account pages (#404)

WaylandYang29584288d6e7
diff --git a/web/src/pages/AccountShell.tsx b/web/src/pages/AccountShell.tsx
index c10141f6..65b169ce 100644
--- a/web/src/pages/AccountShell.tsx
+++ b/web/src/pages/AccountShell.tsx
@@ -18,6 +18,7 @@ import {
SectionMark,
} from "../ui";
import { ServerDown } from "./ServerDown";
+import { AlertBell } from "./AlertBell";
import { UserMenu } from "./UserMenu";
export function AccountShell() {
@@ -67,6 +68,8 @@ export function AccountShell() {
<GithubMark size={13} />
{health.data && <span className="u-num text-fine">v{health.data.version}</span>}
</a>
+ {/* 告警角标跟着人走,不跟着页面走:在账户页里库照样在跑、照样会出事 */}
+ <AlertBell />
<div className="ml-2">
<UserMenu user={me.data} />
</div>
diff --git a/web/src/pages/Docs.tsx b/web/src/pages/Docs.tsx
index 64a13189..69af4fae 100644
--- a/web/src/pages/Docs.tsx
+++ b/web/src/pages/Docs.tsx
@@ -17,6 +17,7 @@ import {
rowClass,
SectionMark,
} from "../ui";
+import { AlertBell } from "./AlertBell";
import { UserMenu } from "./UserMenu";
import { usePageTitle } from "../useTitle";
import ingestMd from "../docs/ingest.md?raw";
@@ -249,9 +250,14 @@ export function DocsPage() {
{health.data && <span className="u-num text-fine">v{health.data.version}</span>}
</a>
{me.data ? (
- <div className="ml-1">
- <UserMenu user={me.data} />
- </div>
+ <>
+ {/* 告警角标跟着人走:读文档的时候库也在跑。没登录就没有它——
+ 告警是登录后的东西 */}
+ <AlertBell />
+ <div className="ml-1">
+ <UserMenu user={me.data} />
+ </div>
+ </>
) : me.isError ? (
<Link
to="/login"