Boost: let the user choose what may go to Boost

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

Read the design in #55 and the phone-side issue #69 first; the user exclusion unit and the existing rule depend on them. Then inspect apps/mobile/src/app/boost.tsx, settings (ENT-Setting), and docs/prd/hermit-ui-states-and-edge-cases.md. Done means settings extend the rule without allowing vault, wallet, or tainted turns to leave the phone, with tests, localized screenshots, and the listed checks passing.

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

描述

copy help wanted privacy ui

Why

US-BOOST-03: "I want to keep some topics phone-only, so that sensitive requests never leave the phone even to my laptop." The phone side of a Boost turn ships with the hard limits (vault, wallet, tainted) and the user's consent to use Boost at all. This issue adds the user's own exclusions, in the unit the design chose, on HM-BOOST-01.

What to do

  1. Settings. Keep the user's choices in the encrypted database (settings, ENT-Setting), in the unit the design picked.
  2. The rule. Extend the function from the phone-side issue, so an excluded turn stays on the phone. The hard limits come first: a setting can add exclusions, never remove vault, wallet or tainted.
  3. The screen. A section on HM-BOOST-01 (apps/mobile/src/app/boost.tsx) that lists what never goes, in code's words, and the user's switches.
  4. States, in docs/prd/hermit-ui-states-and-edge-cases.md.

Tests first: the rule across combinations of settings, and a test that no setting lets a vault, wallet or tainted turn go.

Done when

  • The user can exclude what the design allows, and an excluded turn runs on the phone.
  • A test inverts every setting and still sees vault, wallet and tainted turns stay on the phone.
  • Screenshots in light and Deep sea, in es-419 and en.

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 #55.
  • #69

Keep in mind

  • Nothing goes to Boost without the user's choice (VISION.md, principle 2).
  • Text other people wrote never changes a setting. Only the screen does.
  • Strings in packages/copy: es-419 in tú, and en, with no em or en dashes.
  • 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 摘要。