diff --git a/product-source/hololake-native-desktop/scripts/ambient-motion-idle.test.mjs b/product-source/hololake-native-desktop/scripts/ambient-motion-idle.test.mjs index 8174ab79d..cb94110ba 100644 --- a/product-source/hololake-native-desktop/scripts/ambient-motion-idle.test.mjs +++ b/product-source/hololake-native-desktop/scripts/ambient-motion-idle.test.mjs @@ -7,6 +7,8 @@ const styles = fs.readFileSync(new URL('../src/styles.css', import.meta.url), 'u test('ambient lake motion sleeps by default and wakes only after human interaction', () => { assert.match(source, /const \[motionAwake, setMotionAwake\] = useState\(false\)/) + assert.match(source, /function LakeAtmosphere\(\{ awake \}: \{ awake: boolean \}\)/) + assert.match(source, /\{awake &&
{ assert.match(source, /title="心跳核心频道" meta="冰朔 · 私人频道"/) assert.match(source, /title="爱之核心子系统" meta="责任主体 · 之之"/) + assert.match(source, /title="光之湖" meta="人格体居所"/) assert.match(source, /worldStage === 'heartbeat'/) assert.match(source, /

心跳核心频道<\/h1>/) }) +test('knowledge belongs to Heartbeat Core while persona repositories belong to Light Lake', () => { + const heartbeatStart = source.indexOf("worldStage === 'heartbeat'") + const lightLakeStart = source.indexOf("worldStage === 'lightLake'", heartbeatStart) + const toolStart = source.indexOf("worldStage === 'tool'", lightLakeStart) + const heartbeat = source.slice(heartbeatStart, lightLakeStart) + const lightLake = source.slice(lightLakeStart, toolStart) + assert.match(heartbeat, /title="知识空间"/) + assert.doesNotMatch(heartbeat, /人格体代码仓库|title="光之湖"/) + assert.match(lightLake, /

光之湖<\/h1>/) + assert.match(lightLake, /title="人格体代码仓库"/) +}) + test('Fifth Domain human numbers are paired with their own login account', () => { assert.match(source, /'ICE-GL∞': 'bingshuo'/) assert.match(source, /'ICE-GL-ZHI∞': 'zhizhi'/) diff --git a/product-source/hololake-native-desktop/src/main.tsx b/product-source/hololake-native-desktop/src/main.tsx index 717737c13..2c1cf04cc 100644 --- a/product-source/hololake-native-desktop/src/main.tsx +++ b/product-source/hololake-native-desktop/src/main.tsx @@ -49,7 +49,7 @@ import './styles.css' type ThemeId = 'night' | 'dawn' | 'nebula' | 'candle' | 'clear' type ViewId = 'overview' | 'knowledge' | 'code' | 'receipts' | 'system' -type WorldStage = 'domain' | 'heart' | 'heartbeat' | 'love' | 'tomorrow' | 'bottle' | 'channel' | 'tool' +type WorldStage = 'domain' | 'heart' | 'heartbeat' | 'lightLake' | 'love' | 'tomorrow' | 'bottle' | 'channel' | 'tool' type KnowledgeSource = 'native' | 'legacy' interface HomeStatus { @@ -278,17 +278,17 @@ const glintPoints = Array.from({ length: 58 }, (_, index) => ({ delay: (index % 11) * .43, })) -function LakeAtmosphere() { +function LakeAtmosphere({ awake }: { awake: boolean }) { return <>