Boost: show Boost state in the chat header and on HM-CHAT-02

未关闭
#70 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
react-native, typescript
领域
ai, mobile

调研方向

Read packages/runtime/src/chat-state.ts and its tests first, then trace headerStatus in apps/mobile/src/app/index.tsx and the HM-CHAT-02 view in apps/mobile/src/app/where.tsx. Add coverage for the runtime states and view logic, following the issue’s guidance to check both locales, themes, and TalkBack behavior. Done means the header and HM-CHAT-02 show the listed Boost states, with screenshots and the checks listed in the issue passing.

由索引模型根据 Issue 内容生成。

描述

copy help wanted privacy ui

Why

US-BOOST-02: "The header chip reads 'On your computer' during Boost turns." HM-CHAT-02, "Where Hermit runs", lists "Boost state" (PRD section 2.7). Today the header at rest and HM-CHAT-02 can only say "On this phone" (HM-CHAT-02.onPhone). People should see where their words went (VISION.md, principle 2), and docs/research/design-benchmark.md suggests the same: one small marker that changes when work leaves the phone.

What to do

  1. The header. While a turn runs on Boost, the header says so: "On your computer" in English, the PRD's words, and es-419 text in tú. Today the text comes from headerStatus in apps/mobile/src/app/index.tsx and mascotLabel in apps/mobile/src/mascot.ts. Drive it from the runtime's chat state (packages/runtime/src/chat-state.ts), never from Boost's text. During a turn the header also shows what Hermit is doing; decide how both fit, and show it in the screenshots.
  2. HM-CHAT-02 (apps/mobile/src/app/where.tsx): not paired; paired and answering, with the computer's model; paired and not answering; the last Boost turn's speed next to the phone's.
  3. The mascot, if it appears: the existing 10-boost rig pose (apps/mobile/src/mascot-rig.ts; docs/brand/mascot/png/10-boost.png), mapped in RIG_POSE. Never a new drawing.
  4. States, in docs/prd/hermit-ui-states-and-edge-cases.md, in the HM-CHAT-02 row.
  5. TalkBack. The label follows the state, and a change is announced once (US-SET-07).

Tests first, for the chat state and the view logic (packages/runtime/test/, apps/mobile/src/*.test.ts).

Done when

  • A turn on Boost shows in the header that it runs on the computer, from its start to its end, and the header says "On this phone" otherwise.
  • HM-CHAT-02 shows each Boost state above.
  • Screenshots in light and Deep sea, in es-419 and en, with made-up data.

How to check

pnpm --filter @hermit/runtime test
pnpm --filter @hermit/mobile test
pnpm check:privacy && pnpm typecheck && pnpm lint && pnpm test

Depends on

  • Blocked by the design in #56.
  • #69. The view and the copy can start against a fake runtime signal once the design is accepted.

Keep in mind

  • Copy in packages/copy, in both locales, with the same keys and placeholders and no em or en dashes.
  • The label comes from code, never from the model or Boost (AGENTS.md rule 7).
  • The mascot is locked (AGENTS.md rule 12).
  • Open a pull request only once everything under Depends on is accepted or merged, and a maintainer has said so here (AGENTS.md: code for a feature without an accepted issue may be closed).
主要语言
TypeScript
星标
11
派生
0
平均合并
10 分钟
30 天内合并 PR
6

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DojoCodingLabs/hermit 的其他 Issue

查看 DojoCodingLabs/hermit 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。