open-transfer

Roadmap: features in phases

Tracking issue: #47. Each phase lands as its own commits: tests first (they fail), then the code (they pass), then the whole suite (unit + browser end-to-end) before it’s pushed.

Status legend: Done · Partial (some of it existed before this plan) · New · ✅ Phase X (shipped in that phase).

Ground rules


Phase A — Drag-and-drop and sending faster

Feature Before Steps Tests
Device Drag-and-Drop ✅ Phase A Kept. Dropping onto an offline device says why nothing happened. Existing test_drop_files_onto_a_device; new: drop on an offline tile shows a message.
Visual Device Drop Targets ✅ Phase A 1. While dragging files, each online tile shows “Drop to send”. 2. The tile under the pointer is highlighted and announced to screen readers (“Release to send to Pixel”). 3. Offline tiles dim. Drag over a tile → it has is-drop-target and the hint; the live region names the device.
Multi-Device Drag-and-Drop ✅ Phase A 1. Dropping onto a selected tile sends to every selected device. 2. While dragging with 2+ devices online, an “Everyone” group target appears; dropping there sends to all online devices (after the usual “send to everyone?” check). Select 2 devices, drop on one → both get the offer. Drop on “Everyone” → confirm dialog, then all get it.
Nearby Device Favorites ✅ Phase A 1. Star button on each tile (aria-pressed). 2. Favorites sort first and stay listed (dimmed) when offline. 3. Stored per browser/app in localStorage. Star a device → it moves first and survives a reload; un-star → back in place.
Quick Send ✅ Phase A 1. A favorite’s tile gets a Send… shortcut: pick files → they go straight to that device (no Send bar step). 2. Alt + 1–9 opens the picker for the nth favorite (browsers keep Ctrl/⌘ + 1–9 for switching tabs). Quick send to a favorite → the receiver gets the offer with no Send click.
Adaptive Device Layout ✅ Phase A Grid sizes by width: 3 columns on phones, bigger tiles on touch tablets (incl. Galaxy Tab), auto on desktop; tiles ≥ 96 × 44 px, star ≥ 32 px and always shown on touch; the send bar never covers the last row. Phone (390 px), tablet (800 px) and desktop (1280 px) viewports: no horizontal scroll, tile ≥ 44 px, expected columns.

Phase B — Previews and media

Feature Before Steps Tests
Media Preview ✅ Phase B 1. In-app preview dialog for images, video, audio, PDF and text. 2. ← / → between files, Esc closes, focus returns. 3. Server serves PDFs inline for the preview only (Content-Disposition: inline; the PDF viewer can’t run sandboxed, so its CSP allows only the plugin and framing by the app itself). Unit: ?inline=1 for PDF/video gives the right headers. E2E: open the preview for an image / text file; arrows move; Esc closes.
Media Thumbnail Grid ✅ Phase B Thumbnails for videos (first frame), and for local files in the send bar and transfer cards (object URLs, revoked after). Video row shows a <video> thumb; staged image shows a thumb.
Media Gallery View ✅ Phase B 1. List ⇄ Grid toggle. 2. Filter: All · Photos · Videos · Documents. 3. Sort: newest · name · size. 4. Click → full-screen preview (Phase B dialog). Choices remembered. Toggle grid → tiles; filter Photos → only images; sort by name → order.
Quick Actions ✅ Phase B A “⋯” menu (and right-click) per file: Preview, Copy, Save, Share (Web Share where supported), Reveal in folder (desktop/Android owner only). Menu lists the expected actions per file type; keyboard opens it.
Cross-Device File Operations ✅ Phase B Owner-only API POST /api/files/<name>/open and /reveal (local machine only), using the OS opener; the Android bridge for its own. Programs and scripts are only ever revealed, never opened; machines without a desktop (servers, containers) don’t offer either. Unit: owner can call it (opener mocked); visitors get 403; path traversal rejected.

Phase C — Clipboard

Feature Before Steps Tests
Copy to Clipboard ✅ Phase C Copy images (as PNG), copy a file’s link, Ctrl/⌘+C on a focused file row. Copy button writes the expected text / link (clipboard permission granted in the test).
Clipboard Sharing ✅ Phase C “Send clipboard” in the send bar (and Ctrl/⌘+Shift+V): reads text or an image, stages it, sends to the chosen devices. Grant clipboard read, put text in it, Send clipboard → receiver gets the .txt.
Paste-to-Transfer ✅ Phase C Pasting text outside an input stages it as a .txt; pasted images keep a readable name. Dispatch a paste with text → a staged text file.
Clipboard Privacy Controls ✅ Phase C 1. Per-device “clipboard” permission (off by default; paired devices only). 2. Text that looks sensitive (passwords, one-time codes, card numbers, keys) needs confirmation before sending. 3. Excluding apps is only possible in the native apps; the browser can’t see which app copied, so it’s documented as unsupported there. Unit: sensitive-text detector. E2E: sending a card-like number asks first.
Shared Clipboard Sync ✅ Phase C 1. App-to-app clip message between paired devices that both allowed it. 2. Sent text/images arrive without a prompt, go into clipboard history, and are written to the system clipboard when the window has focus. 3. Size cap (1 MB text, 10 MB image). 4. Optional auto-share while the window is open (browsers only allow reading the clipboard then); private-looking text is never auto-shared. Unit: clip accepted only from paired + allowed peers; rejected otherwise; size cap. E2E: two apps, allow, push → it shows up on the other.
Clipboard History ✅ Phase C App-side list (last 50 items, configurable retention), search, copy again, delete, clear; sensitive items are never kept. Unit: retention, search, no sensitive items. E2E: list + search + clear.

Phase D — Transfers, history and reliability

Feature Before Steps Tests
Transfer Queue ✅ Phase D New sends queue behind the ones in progress (2 at a time); pending ones can move up/down or be removed. E2E: 3 sends → 1 queued; move it up; cancel it.
Transfer Search and History ✅ Phase D 1. App-side history (history.jsonl in the state folder, capped). 2. GET /api/history?q=&device=&direction=&status=&since=. 3. Search box + filters in Recent. Unit: filters and cap. E2E: search by name, filter by device.
Transfer Activity Timeline ✅ Phase D One chronological view of transfers and clipboard events from the history API, grouped by day. E2E: a send and a clipboard event appear in order.
Duplicate File Detection ✅ Phase D 1. The incoming prompt says how many files already exist (same name and size) and marks them. 2. Choice: Keep both (rename) · Skip · Replace. Auto-accepted transfers (paired devices) keep both. Skipped files aren’t sent between apps; a browser sending to its own app still uploads them once. Unit: each policy on disk. E2E: prompt shows “1 already here”.
Transfer Integrity Verification ✅ Phase D SHA-256 computed by the sending app as it streams and by the receiving app as it writes; the sender asks the receiver to confirm; a mismatch fails the file clearly and removes it. Covers the app-to-app hop (older apps that can’t check are treated as unchecked, not failed). Unit: matching hash → done; tampered bytes → failed with an integrity message.
Connection Quality Indicator ✅ Phase D Per device: last seen, round-trip time from hellos, speed of the current transfer, and the path (“Direct” / “Via Mac”). Unit: RTT recorded. E2E: job target shows the path.
Transfer Notifications ✅ Phase D System notifications (Notification API) when the window is hidden: incoming request, done, failed, clipboard received; clicking one brings the window forward. Turned on with the bell (a user gesture). Accept/Decline buttons inside the notification need a service worker: not yet. E2E: notification permission granted, page hidden → a notification is created (stubbed).

Cross-cutting (every phase)

Not yet (follow-ups)

Engineering backlog (2026-10-31)

The eight product phases asked for on 2026-10-31 map onto what’s shipped:

Asked for Where it is What’s left (small tasks, tests first)
1. Persistent history UI and transfer management ✅ Phase D (history API, search, timeline, queue) Configurable queue size (policy + Settings field; E2E: size 3 → 3 run at once)
2. Media previews and thumbnails ✅ Phase B —
3. Shared clipboard and history ✅ Phase C + Trusted Sync Network iPhone stays one-tap (Shortcuts); no background sync on iOS (platform limit)
4. Copy/paste between devices ✅ Phases C, sync Android: images from Send what you copied (the native bridge reads text only; add readClipboardImage → base64, E2E with a fake bridge)
5. Drag-and-drop onto device targets ✅ Phase A —
6. Visual device screen with direct drop ✅ Phase A (drop targets, “Everyone”) —
7. Multi-device sharing and quick send ✅ Phase A —
8. Notifications, queues, file management ✅ Phase D Accept/Decline inside the notification (service worker; secure contexts only — the desktop and Android apps qualify, LAN http:// browsers don’t)

Reliability and security follow-ups from the audit (audit-2026-10-26.md):

  1. ✅ Encrypt file transfers: paired apps as ot-file/2 with a handshake per transfer (forward secrecy); unpaired apps the same, not verified; a browser’s hop with --https (opt-in). Pair keys are sealed with a vault key in the OS keystore (Keychain, DPAPI, Android Keystore, Secret Service) — keys at rest. WebRTC messages between two apps carry a MAC under the transfer’s key (direct transfers), and “Encrypted transfers only” refuses older apps. Still plain: a browser’s hop without --https, and older apps (labelled). Next: a Developer ID build so macOS stops asking for the Keychain after updates.
  2. Checksum the browser → its own app hop (today only app → app is verified).
  3. Windows on a Domain network: make the Allow rule for the current profile (Domain) instead of Private.
  4. Paired devices pass on each other’s new addresses (today each device must hear the move itself).
  5. E2E flake: test_browsers_send_to_each_other_directly[False] failed once under full-suite load (passes alone and in CI).

Not in scope