fix: route HoloLake links to REPO-014

This commit is contained in:
冰朔 2026-08-04 21:08:56 +08:00
commit c0f85292b5
4 changed files with 35 additions and 9 deletions

View file

@ -551,6 +551,9 @@ describe('HoloLakeHome', () => {
})
it('opens the public development repository from the entered Heartbeat Core channel', () => {
expect(HOLOLAKE_DEVELOPMENT_REPOSITORY_URL).toBe(
'https://guanghulab.com/code/bingshuo/hololake-system-architecture',
)
useGuanghuRouterMock.mockReturnValue(onlineRouter())
render(<HoloLakeHome locale="zh-CN" onEnterKnowledgeBase={vi.fn()} />)

View file

@ -21,6 +21,7 @@ import {
import { GUANGHU_THEMES, type GuanghuTheme } from '../lib/guanghuTheme'
import { planGuanghuLivingSystem } from '../utils/planGuanghuLivingSystem'
import { Button } from './ui/button'
import { HOLOLAKE_REPOSITORY_URL } from '../constants/feedback'
import { GuanghuRouterConsole } from './GuanghuRouterConsole'
import { GuanghuWorldMap } from './GuanghuWorldMap'
import { GuanghuWorldLoginGate } from './GuanghuWorldLoginGate'
@ -34,8 +35,7 @@ import {
DialogTitle,
} from './ui/dialog'
export const HOLOLAKE_DEVELOPMENT_REPOSITORY_URL =
'https://guanghulab.com/fifth-domain/bingshuo/hololake-platform'
export const HOLOLAKE_DEVELOPMENT_REPOSITORY_URL = HOLOLAKE_REPOSITORY_URL
export const GUANGHU_THEME_INTENT_EVENT = 'guanghu:living-system-theme-intent'
type HoloLakeHomeProps = {
@ -206,7 +206,7 @@ export function HoloLakeHome({
}
const openDevelopmentRepository = () => {
trackEvent('hololake_development_repository_opened', { route: 'REPO-008' })
trackEvent('hololake_development_repository_opened', { route: 'REPO-014' })
void openExternalUrl(HOLOLAKE_DEVELOPMENT_REPOSITORY_URL)
}