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

Open
#1,313 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

  • #1314 by @RCGV1 — closed without merging

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
react, typescript

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
TypeScript
Stars
861
Forks
316
Avg merge
2d 10h
Merged PRs (30d)
18

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshtastic/web

All issues in meshtastic/web

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.