From fb58245f5055e24e66561ce08f4eb81dbb10ad8d Mon Sep 17 00:00:00 2001 From: ancsemi Date: Mon, 16 Mar 2026 21:54:49 -0400 Subject: [PATCH] =?UTF-8?q?v2.7.8=20=E2=80=94=20upload=20progress=20bar,?= =?UTF-8?q?=20view=20all=20members=20perm,=20notification=20nav=20fix,=20s?= =?UTF-8?q?tream=20reopen,=20Docker=20update=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 13 ++++ GUIDE.md | 19 +++++ README.md | 23 +++++- docker-compose.yml | 6 +- docs/index.html | 18 +++-- package.json | 2 +- public/app.html | 18 +++++ public/css/style.css | 31 +++++++- public/js/modules/app-admin.js | 23 ++---- public/js/modules/app-channels.js | 10 ++- public/js/modules/app-ui.js | 119 +++++++++++++++++++++------- public/js/modules/app-users.js | 23 +++++- public/js/modules/app-voice.js | 23 ++---- public/js/voice.js | 23 +++++- src/database.js | 2 +- src/socketHandlers.js | 125 ++++++++++++++++++++++++++---- website/index.html | 18 +++-- 17 files changed, 398 insertions(+), 98 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7c31ad..69fdaaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,19 @@ Format follows [Keep a Changelog](https://keepachangelog.com/). Haven uses [Sema --- +## [2.7.8] — 2026-03-16 + +### Added +- **File upload progress bar** — a progress bar now appears above the message input during file and image uploads showing the real-time upload percentage. +- **View All Members permission** — new `view_all_members` permission that lets roles see all server members in the sidebar and member list, regardless of shared channels. Granted to Server Mod by default. Configurable per-role in admin settings. + +### Fixed +- **Desktop notification click not navigating** — clicking a native OS notification in the Haven Desktop app now opens the app and switches to the correct channel or DM. +- **Stream close button now allows reopening** — the ✕ button on stream tiles now hides and mutes the stream instead of permanently removing it. Hidden streams can be restored via the "🖥 N streams hidden" bar, the ⋯ menu on the streamer's name, or by clicking their 🔴 LIVE badge. +- **Docker update instructions** — `docker-compose.yml` now defaults to the pre-built image (`ghcr.io/ancsemi/haven:latest`), fixing the issue where `docker compose up -d` would rebuild from source rather than use the pulled image. Update instructions updated throughout. + +--- + ## [2.7.7] — 2026-03-16 ### Added diff --git a/GUIDE.md b/GUIDE.md index 10c6cf6..87ebf8f 100644 --- a/GUIDE.md +++ b/GUIDE.md @@ -58,6 +58,13 @@ Replace the `haven_data:/data` line in `docker-compose.yml`. ### Updating +**Option A — Pre-built image** (default, recommended): +```bash +docker compose pull +docker compose up -d --force-recreate +``` + +**Option B — Built from source** (only if you uncommented `build: .`): ```bash git pull docker compose build --no-cache @@ -66,6 +73,18 @@ docker compose up -d Your data is safe — it lives in the volume, not the container. +### Checking Your Version + +Open this URL in your browser (replace with your domain/IP if needed): +``` +https://localhost:3000/api/version +``` + +Or from inside the container: +```bash +docker compose exec haven cat /app/package.json | grep '"version"' +``` + ### Linux Prerequisites If you're on Linux (Ubuntu, Mint, Debian, etc.), make sure you have Docker's official packages installed — the default `docker.io` package from some distros may be missing Compose V2. diff --git a/README.md b/README.md index 6d89d19..2f51145 100644 --- a/README.md +++ b/README.md @@ -74,23 +74,42 @@ Your entire Discord history, now on a server you own. No one can delete it, no o ## Quick Start — Docker (Recommended) -**Option A — Pre-built image** (fastest): +**Option A — Pre-built image** (fastest, easiest updates): ```bash docker pull ghcr.io/ancsemi/haven:latest docker run -d -p 3000:3000 -v haven_data:/data ghcr.io/ancsemi/haven:latest ``` -**Option B — Build from source**: +Or with Docker Compose (recommended): ```bash git clone https://github.com/ancsemi/Haven.git cd Haven docker compose up -d ``` +The shipped `docker-compose.yml` uses the pre-built image by default. + +**Option B — Build from source** (only if you need to modify the code): +```bash +git clone https://github.com/ancsemi/Haven.git +cd Haven +``` +Uncomment `build: .` in `docker-compose.yml`, then: +```bash +docker compose up -d +``` Open `https://localhost:3000` → Register with username `admin` → Create a channel → Share the code with friends. Done. > Certificate warning is normal — click **Advanced → Proceed**. Haven uses a self-signed cert for encryption. +**Updating** — if using the pre-built image (default): +```bash +docker compose pull +docker compose up -d --force-recreate +``` + +**Check your version**: visit `https://localhost:3000/api/version` in your browser. + **Option C — One-click cloud deploy** (Zeabur): [![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates?repoURL=https://github.com/ancsemi/Haven) diff --git a/docker-compose.yml b/docker-compose.yml index 756a535..ecd546a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,14 +2,14 @@ # Quick start: docker compose up -d # Stop: docker compose down # View logs: docker compose logs -f haven -# Update: docker compose build --no-cache && docker compose up -d +# Update: docker compose pull && docker compose up -d --force-recreate # Shell: docker compose exec haven sh # ───────────────────────────────────────────────────────── services: haven: - build: . - image: haven:latest + image: ghcr.io/ancsemi/haven:latest + # build: . # Uncomment to build from source instead of using the pre-built image container_name: haven ports: - "${PORT:-3000}:${PORT:-3000}" # Main HTTPS port diff --git a/docs/index.html b/docs/index.html index ef6903d..a7ace6d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -894,13 +894,13 @@ 🖥️ Windows & Linux
- + Windows Installer - + Linux AppImage - + Linux .deb
@@ -1365,12 +1365,12 @@
-

⬡ Haven Server — v2.7.7

+

⬡ Haven Server — v2.7.8

Latest stable release · Windows, macOS & Linux · ~5 MB

- - Download v2.7.7 (.zip) + + Download v2.7.8 (.zip)