Boost: pair a computer from the phone on HM-BOOST-01
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react-native, typescript
調査の方向性
Start by reading the design issue #53 and the pairing work in #63; this issue says implementation is blocked until the design is accepted. Then inspect apps/mobile/worklets/wallet, apps/mobile/src/adapters/net.ts, and the listed mobile screens and tests. Done means pairing works on a real arm64 phone, privacy counts every contacted host, and the Android build and listed checks pass.
索引モデルが issue の本文から書いたものです。
説明
Why
HM-BOOST-01, "Pair and configure a Boost", is the phone's Boost screen (PRD section 2.7), and US-BOOST-01 starts there. The same pairing serves changing phones (US-MOVE-01), so this also builds the transport EP-13 needs.
What to do
- The transport, where the design put it: a plugin in QVAC's worklet (
apps/mobile/qvac.config.json,scripts/qvac-bundle.mjs), or Hermit's own worklet inapps/mobile/worklets/boost(new), built likeapps/mobile/worklets/wallet, with an Expo config plugin likeapps/mobile/plugins/with-wallet-worklet.js. Install handlers for uncaught errors, so a transport fault can't end the app. Add any worklet tests to thetestscript inapps/mobile/package.json. - The adapter,
apps/mobile/src/adapters/boost.ts(new). It starts and stops the transport, hands the handshake hash and the bytes to the pairing core, and suspends when the app leaves the screen. - The key. A new pairing key pair in the Keystore-backed secure store, added to
SECRET_KEYSinpackages/core/src/erase.ts. Only its public key leaves the phone. - Counting. Every bootstrap node, relay and computer address the phone contacts is counted and listed on HM-SET-02 (
apps/mobile/src/app/privacy.tsx), as the design says. Extendapps/mobile/src/adapters/net.tsif the design asks for it. - The screen,
apps/mobile/src/app/boost.tsx(new): read the computer's QR (or what the design chose instead), show the 6-digit code, confirm or cancel, then show the paired computer with Unpair. Reach it from Settings (apps/mobile/src/app/settings.tsx) or with one line inMENU(apps/mobile/src/components/MenuSheet.tsx). Its states go in docs/prd/hermit-ui-states-and-edge-cases.md. - Copy, with keys like
HM-BOOST-01.title, inpackages/copy/locales/en.jsonandes-419.json. - The camera, if the design uses it: asked for with a reason and a "Not now" (US-ONB-08), and added to PRD section 2.15.
Tests first: the adapter's logic and the screen's view model, under node --test (apps/mobile/src/*.test.ts), with the transport faked.
Done when
- On a real arm64 phone, the dev build pairs with the desktop app, or with the pairing spike's computer script. A wrong code fails closed, and Unpair works.
- HM-SET-02 lists every host the pairing contacted.
- Screenshots in light and Deep sea, in es-419 and en, with made-up names.
- The Android check builds the APK.
How to check
pnpm --filter @hermit/mobile test
pnpm check:privacy && pnpm typecheck && pnpm lint && pnpm test
node scripts/guard/check.mjs --patterns scripts/guard/patterns.txt
Then build the dev app (CONTRIBUTING.md, Build the Android app) and pair it with a computer.
Depends on
- Blocked by the design in #53.
- #63
Keep in mind
- Keys never leave the phone. Pairing sends no chat, memory or message content.
react-native-bare-kitstays at~0.16.0and@qvac/sdkstays pinned exactly. Add packages withnpx expo install. Never editapps/mobile/androidby hand.- Every string in
packages/copy, in both locales, with tú in Spanish and no em or en dashes. - The mascot is locked. If the screen shows it, use the existing
10-boostpose (apps/mobile/src/mascot-rig.ts). - 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分
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DojoCodingLabs/hermit のほかの issue
-
docs good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
DojoCodingLabs/hermit#73 ·
メンテナーはふだん 1 日以内に返信
-
device-lab
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DojoCodingLabs/hermit#45 ·
メンテナーはふだん 1 日以内に返信
-
device-lab
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
DojoCodingLabs/hermit#44 ·
メンテナーはふだん 1 日以内に返信
-
device-lab
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DojoCodingLabs/hermit#43 ·
メンテナーはふだん 1 日以内に返信
-
agent-friendly docs good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
DojoCodingLabs/hermit#39 ·
メンテナーはふだん 1 日以内に返信
DojoCodingLabs/hermit の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
superlinked/sie#1033 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
remix-run/react-router#15838 ·
メンテナーはふだん 1 日以内に返信
-
area/ci bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
melgarafael/DeskcommCRM#5290 ·
メンテナーはふだん 1 日以内に返信