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

Aperta
#1,313 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #1314 di @RCGV1 — chiusa senza merge

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
react, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
861
Fork
316
Merge medio
2g 10h
PR unite (30g)
18

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di meshtastic/web

Tutte le issue di meshtastic/web

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.