WIP V improve UX [snapshot task 2]
Add the connections workspace (sidebar, editable slots, per-slot activity, removal dialog with focus wrapping), remove the downloadable local HTML and unreleased identity backup/restore, and start the 0.0.5 draft changelog. Restore the released 0.0.3/0.0.4 changelog entries. Enable focus emulation in browser checks so background tabs receive focus/blur events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
58c3e2af86
commit
5f8c6a1916
21 files changed
+879
-306
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# HellCon
|
||||
|
||||
Current version: **0.0.4**. See the [changelog](CHANGELOG.md) for release notes
|
||||
Current version: **0.0.5** (draft). See the [changelog](CHANGELOG.md) for release notes
|
||||
and compatibility changes.
|
||||
|
||||
Browser-to-browser file sharing with Vue 3 and WebRTC. No accounts, signaling
|
||||
@@ -8,6 +8,33 @@ backend, or server-side file storage. You exchange connection codes manually.
|
||||
Direct connections are the default. TURN relaying is optional and requires
|
||||
explicit opt-in by both people; no relay is configured automatically.
|
||||
|
||||
## Connections workspace
|
||||
|
||||
The sidebar holds your connections, starting with **Con 1**. Use **Add connection**
|
||||
for another empty slot. Edit the name directly in the header; it saves when you
|
||||
leave the field or press Enter. Empty names revert to the previous name.
|
||||
Use **Remove** beside the name to open a confirmation dialog. Confirming removal
|
||||
ends that slot's sessions in open tabs; downloaded files and saved device identities
|
||||
remain. Removing the last slot leaves a fresh **Con 1**.
|
||||
Each slot has its own setup, live session, and activity timeline. Switching slots
|
||||
keeps active transfers and selected files alive while this tab stays open.
|
||||
On small screens, **Show connections** opens the sidebar.
|
||||
|
||||
Connection names, associated remembered devices, and the last 50 transfer results
|
||||
per slot are saved in this browser. History includes filenames, sizes, directions,
|
||||
times, and completion/decline/interruption results. It does not save file contents,
|
||||
connection codes, or relay credentials. **Reset** clears the current session but
|
||||
keeps the slot and history. Closing or reloading the page ends live sessions and
|
||||
discards selected files; reconnect by exchanging fresh codes. The sidebar reports
|
||||
this tab's session status, not remote device presence.
|
||||
|
||||
Remembering a verified device associates it with the current slot. On returning,
|
||||
that device is preselected if it is still trusted; enable your identity before
|
||||
exchanging fresh codes to use remembered verification. Existing saved contacts
|
||||
remain available in **Remembered devices**. Clearing site data removes saved
|
||||
connections and trust. Storage failures are shown explicitly; temporary sessions
|
||||
remain available. Up to 100 connection slots are supported.
|
||||
|
||||
## How it works
|
||||
|
||||
1. The person starting the connection selects one or more files and configures STUN (PageQuit by default, Google,
|
||||
@@ -63,7 +90,7 @@ the session, although browsers and mobile operating systems can suspend pages.
|
||||
Pending verification/acceptance expires after five minutes; stalled transfers
|
||||
expire after one minute. Idle verified sessions stay open. Lost connections need
|
||||
fresh codes. File transfers use protocol **v3**; pre-v3 connection codes are
|
||||
rejected before connecting. The local HTML supports the same manual flow.
|
||||
rejected before connecting.
|
||||
|
||||
If an answer is rejected as invalid, correct the pasted answer and click Connect
|
||||
again; the sender keeps its existing offer while it is still awaiting an answer.
|
||||
@@ -110,17 +137,15 @@ A changed or missing identity requires manual comparison and never overwrites a
|
||||
saved contact. Nicknames stay local. Public identities in codes can link sessions.
|
||||
|
||||
Use **Forget** to remove a contact, or explicitly delete your identity and contacts.
|
||||
Encrypted backup/restore includes both, protected by a password of at least 12
|
||||
characters. Keep that password separately. Clearing site data loses saved trust;
|
||||
restoring a backup on another browser gives it the same identity. Browser-stored
|
||||
keys remain accessible to trusted app code and are not protection against a
|
||||
malicious host. Identity use defaults off after reload. Storage failure leaves
|
||||
temporary connections available; downloaded local HTML stays manual.
|
||||
Clearing site data loses saved trust and requires pairing again. Browser-stored
|
||||
keys remain usable by trusted app code and are not protection against a malicious
|
||||
host. Identity use defaults off after reload. Storage failure leaves temporary
|
||||
connections available.
|
||||
|
||||
Identity-enabled codes use signaling version **4** and require the new build.
|
||||
Temporary codes retain version **3**. If only one peer enables identity, the
|
||||
current build uses manual comparison without remembering that connection.
|
||||
See [the identity protocol and backup format](docs/device-identities.md).
|
||||
See [the identity protocol and storage](docs/device-identities.md).
|
||||
|
||||
## Network privacy and optional TURN
|
||||
|
||||
@@ -207,28 +232,12 @@ policies must permit same-origin workers and frames. No third-party helper,
|
||||
download backend, or additional hosting service is required. Closing/resetting
|
||||
an unfinished transfer aborts it; interrupted transfers must restart.
|
||||
|
||||
## Download and run locally
|
||||
## Build and self-host
|
||||
|
||||
Run `bun run build`, then open `dist/hellcon-local.html` directly in a browser.
|
||||
This single HTML file includes the app code, styles, and icon. A hosted production
|
||||
build also offers **Download app for local use**. Download that file instead of
|
||||
using the browser's **Save Page As** command, which may save only the hosted page
|
||||
without its required assets. You can share the downloaded HTML file with the
|
||||
other participant; both can open it from disk. No web server is needed to load
|
||||
the app itself.
|
||||
|
||||
The app still needs network access to connect peers on different machines, and
|
||||
the selected STUN or TURN servers must be reachable. A `file://` copy cannot use
|
||||
the host's managed TURN credential endpoint; enter your own relay details when
|
||||
needed. Service-worker downloads are **disabled for `file://` copies**; there is
|
||||
no hosted helper dependency in the local version. For large local transfers,
|
||||
use desktop Chrome with its native save picker and select **Choose destination
|
||||
& receive to disk**. Brave may disable that API even though it is Chromium-based.
|
||||
Native disk access still depends on browser settings and platform support.
|
||||
The 64 MiB in-memory receive option remains available.
|
||||
|
||||
To self-host the regular multi-file build, serve the whole `dist/` directory,
|
||||
including `assets/`. Serve it over HTTPS for access from other machines.
|
||||
From a clone of the repository, run `bun install --frozen-lockfile` and
|
||||
`bun run build`. Serve the whole `dist/` directory, including `assets/` and
|
||||
`download/`, using a static web server over HTTPS. For local build inspection,
|
||||
run `bun run preview` and open the printed localhost URL.
|
||||
|
||||
## Development
|
||||
|
||||
@@ -325,6 +334,7 @@ bun run typecheck
|
||||
bun run test
|
||||
bun run build
|
||||
bun run test:browser # local Chromium integration checks against dist/
|
||||
bun run test:browser --connections # sidebar, persistence, live switching, and mobile layout
|
||||
bun run test:download # real hosted downloads, including 120 MiB, with native picker disabled
|
||||
bun run test:cross-browser # Brave sender → Firefox receiver
|
||||
bun run preview # local build inspection only
|
||||
|
||||
Reference in new issue
Block a user