Implement interoperable and safe channel QR sharing/importing for design #128

オープン
#1,313 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #1314 @RCGV1 による — マージされずにクローズ

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
react, typescript

調査の方向性

Start with the parent design at meshtastic/design#128 and inspect the web client's QR share and pasted/shared URL import entry points. Establish the shared ChannelSet parser/encoder and import-plan test locations before assessing the broader changes. Done means cross-client Replace/Add fixtures round-trip, the specified safety and UI states are tested, and no-reboot resync behavior is covered; an open linked pull request is already addressing this issue.

索引モデルが issue の本文から書いたものです。

説明

Parent design: https://github.com/meshtastic/design/issues/128

Web currently generates canonical Replace URLs but does not implement the shared Add/import contract:

  • Add URLs retain LoRa configuration in the encoded ChannelSet.
  • Import ignores ?add=true, can apply LoRa settings, and maps incoming channels onto replacement slots.
  • There is no Add import mode that preserves the existing channel set and LoRa settings, no safe free-slot/conflict/capacity model, and no shared strict parser.
  • Share and import use different terminology and confirmation models.
  • Deep-link/share handling and explicit copy/system-share fallbacks are incomplete.

Scope:

  • Create one tested parser/encoder for canonical and supported legacy ChannelSet URLs.
  • Make Replace the default; make Add encode no LoRa configuration and lock add-only incoming links to Add.
  • Implement a safe Import plan: Replace may replace selected slots/apply LoRa; Add uses only confirmed free slots, preserves existing settings, and reports conflicts/capacity before writes.
  • Use that plan and vocabulary in both QR share and pasted/shared URL intake; add copy and Web Share API fallback where available.
  • Keep the current event-driven reconnect behavior. Do not add a reboot prediction until firmware exposes authoritative accepted-operation status.

Acceptance criteria:

  • Cross-client Replace/Add fixture URLs round-trip correctly.
  • Tests cover malformed/foreign URLs, add-only payloads, duplicates, full capacity, selected channel counts, and no-reboot resync behavior.
  • UI evidence covers Replace, Add, add-only, error/conflict, disconnected, and success states.
主要言語
TypeScript
スター
861
フォーク
316
平均マージ
2日 10時間
マージ済み PR(30日)
18

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

meshtastic/web のほかの issue

meshtastic/web の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。