WIP improve UX [snapshot task 2]
This commit is contained in:
1 parent
3ae47dde8e
commit
cd66321ea6
13 files changed
+703
-87
No files matched your search
@@ -0,0 +1,101 @@
|
||||
# Serverless UX roadmap
|
||||
|
||||
The hosted HTTPS app is the primary experience. The downloadable HTML must keep
|
||||
working for basic manual connection and file transfer; it need not match hosted
|
||||
conveniences. No signaling backend, peer presence service, automatic offline-peer
|
||||
reconnection, or silent TURN fallback is in scope.
|
||||
|
||||
## 1. Send another file on a verified connection — implemented first
|
||||
|
||||
Keep the reliable data channel open after a successful receipt. The sender can
|
||||
choose or drop another file without exchanging codes or confirming fingerprints
|
||||
again. Require explicit receiver acceptance for each file. Reset counters,
|
||||
metadata, and storage per file while retaining connection verification. Preserve
|
||||
a completed memory download until the receiver accepts its replacement or resets.
|
||||
Keep network settings fixed for the session; relay consent applies to that
|
||||
connection until disconnect. Reset, disconnect, errors, and tab closure end
|
||||
the session. Idle completed sessions remain open while both tabs remain available;
|
||||
a lost connection requires fresh codes.
|
||||
|
||||
The first implementation negotiated repeat support within v2. Phase 2 supersedes
|
||||
that compatibility path with protocol v3; both peers now need the current build.
|
||||
|
||||
## 2. Multiple files and transfers in either direction — implemented
|
||||
|
||||
Session ownership is independent of the initial Send/Receive setup choice. Setup
|
||||
tabs stay locked while a session exists. Both people can select or drop multiple
|
||||
files and add more while transferring. Each local queue is capped at 32 including
|
||||
its active outgoing file; a rolling list retains the last 50 results.
|
||||
|
||||
The arbitration decision is one sequential queue per direction, permitting two
|
||||
active files total. Simultaneous offers therefore never compete for one global
|
||||
slot. Monotonic odd/even IDs identify files by originating peer; control frames
|
||||
and binary chunks carry these IDs. Each file uses the existing bounded window,
|
||||
receive queue, receipt validation, and storage limits. The receiver accepts or
|
||||
declines every file separately. Only one incoming memory file is retained.
|
||||
|
||||
Remove affects only a waiting local item. Decline rejects an incoming offer before
|
||||
acceptance and advances the peer's queue. Disconnect cancels the whole session,
|
||||
clears queues, and aborts unfinished writes in either direction. Cancellation of
|
||||
an individual active file is intentionally not provided. Completed memory downloads
|
||||
survive disconnect until Reset or the next acceptance.
|
||||
|
||||
Protocol v3 rejects old connection codes before setup. Tests cover simultaneous
|
||||
queues, empty files, separate acceptance, removal, decline, stale IDs/receipts,
|
||||
queue caps, storage cancellation, and verification gates. Browser checks exercise
|
||||
both directions, real bytes, accessibility, streaming downloads, and the local HTML.
|
||||
|
||||
## 3. Remember trusted devices
|
||||
|
||||
Add opt-in local device identity and a contact list on the hosted app, backed by
|
||||
browser storage. After authenticated first pairing, offer “Remember this device”
|
||||
and a local nickname. Store public identities for contacts and protect the local
|
||||
private identity using available browser cryptographic storage; this does not
|
||||
protect against compromised app JavaScript. Temporary sessions remain available.
|
||||
|
||||
Specify and review mutual proof of identity bound to fresh session information,
|
||||
both DTLS fingerprints, participant roles, and replay protection before building
|
||||
automatic verification. Never infer trust from a nickname or saved connection
|
||||
code. Changed identities require explicit re-verification. Continue requiring
|
||||
file acceptance. Add contact removal, identity reset, storage-unavailable behavior,
|
||||
and password-encrypted identity export/import with a reviewed backup format.
|
||||
|
||||
Test impersonation, replay, identity changes, wrong backup passwords, storage
|
||||
loss, and mixed-version peers. Local HTML may remain temporary/manual; do not
|
||||
block delivery on persistent identity support for file URLs.
|
||||
|
||||
## 4. Shareable invitations
|
||||
|
||||
For HTTPS, encode fresh offers in URL fragments with an explicit Share/Copy link
|
||||
action and an import preview. Keep connection details out of query strings and
|
||||
server paths. Fragments still expose their contents to link recipients and any
|
||||
service carrying the full link; explain that invitations are private. Clear the
|
||||
fragment after import. Provide a similarly convenient answer handoff; an answer
|
||||
exchange remains necessary. Keep pasteable codes as the universal fallback.
|
||||
|
||||
Bound and validate payloads, handle stale/incompatible links, and test practical
|
||||
URL limits across messengers and mobile browsers. Do not promise a short link
|
||||
without a storage service. Consider compressed payloads and QR only after checking
|
||||
real payload sizes and decoding limits. Local HTML only needs manual codes.
|
||||
|
||||
## 5. Guided connection flow
|
||||
|
||||
Present one primary next action across Choose files → Share invitation → Connect
|
||||
→ Verify → Transfer. Collapse completed setup steps, expose advanced network
|
||||
settings on demand, and keep relay consent explicit. Show session state separately
|
||||
from file progress. Distinguish connected, awaiting acceptance, saving, completed,
|
||||
and disconnected. Provide recovery actions tailored to the actual failure.
|
||||
|
||||
Prefer the hosted streaming-download path when supported, retain native disk and
|
||||
bounded memory fallbacks, and explain browser download completion accurately.
|
||||
Use accessible focus management, keyboard controls, live status announcements,
|
||||
and mobile layouts. Validate both first-time and remembered-peer paths, denied
|
||||
permissions, clipboard/share fallback, browser suspension, and reconnect guidance.
|
||||
|
||||
## Delivery order and gates
|
||||
|
||||
Deliver in the order above, with a build and relevant protocol/browser checks per
|
||||
phase. Small contextual UI improvements can accompany each phase. Treat identity
|
||||
authentication and bidirectional framing as explicit design/review milestones.
|
||||
No new persistent data or backend is needed for phase 1. Deployments are separate
|
||||
from implementation; this document is the plan for the remaining phases.
|
||||
Reference in new issue
Block a user