Files
Doghouse/CHANGES-0.4.0.md
2026-12-01 06:21:47 +11:00

12 KiB

Doghouse 0.4.0

Pinned messages, blocking and theme presets, on top of 0.3.1. One additive database migration, 009_pins_blocks.sql, applied automatically on start. No new settings and no new ports.

What's new

  • Pinned messages: pin or unpin a message from its menu in channels, DMs and group DMs (anyone in the conversation can). The pin button in the chat header lists the pins with author, who pinned it and when, and jumps to the message. Up to 50 pins per conversation; "X pinned a message" appears in the chat; deleting a message removes its pin.
  • Blocking: block or unblock someone from their profile card or your DM with them; Settings lists the people you blocked. They can't DM you, call or ring you, or add you to a group, and they aren't told. Your DM with them stays, read-only; their messages in shared servers are hidden, and so are their typing, mentions, unread counts and pushes. Blocking ends a 1:1 call with them; group calls carry on. Server moderation is unaffected.
  • Themes: ten new presets (Doghouse, Neon, Synthwave, Nord, Solarized light, Solarized dark, Forest, Ocean, Sepia, High contrast) next to Dark, Light and AMOLED, plus Auto, which follows each device's light or dark setting. Your theme, accent, text size and compact mode follow your account to every device. Every preset reads at 4.5:1 or better (7:1 in High contrast).
  • Settings and /api/health show the running version.
  • Dependencies updated (zod, fastify, fast-uri) for the advisories found in 0.3.1's review, and oversized lists in requests are refused before they are checked item by item.

Behaviour changes to know about

  • Pins: pinning and unpinning together are limited to 10 a minute per person, across all chats. Beyond that the server answers 429 too_many_pins with a Retry-After header, like the other limits. The limit follows the global RATE_LIMIT switch, which is on by default. Re-pinning a message whose "pinned a message" line is under 10 minutes old posts no new line.
  • Read-only DMs: a DM you can't post in (you no longer share a server, or a block either way) now refuses with 403 cant_send ("Couldn't send") instead of dm_closed. The two cases look identical on purpose, so a blocked person can't tell. A 0.3 tab still open after the upgrade shows a generic error for that refusal until it is reloaded.
  • Push and blocks: a message's push is checked against blocks when it is delivered, not when it is sent. A notification already on its way when you block someone may still arrive; nothing sent after the block notifies you.
  • High contrast: links, mentions and other accent-coloured text always use the theme's own yellow (7:1), whatever accent you pick; your accent still colours buttons and highlights. Settings says so under the accent picker.
  • Theme changes made just before a reload, tab switch or close are kept: they are sent as the page goes away and, if that is lost, sent again on the next load. That retry only happens if the theme wasn't changed on another device in the meantime; if it was, the other device's newer choice wins and the older one is dropped. A change you make and then leave in the same tab is always your latest choice: it is kept even if you change themes quickly on a slow connection, and even if another device changed the theme while that tab was open.
  • A theme change now shows straight away in your other open tabs and on your other signed-in devices, without a reload. A tab where you have just changed the theme yourself keeps your change until it is saved. Nobody else is told about your theme.
  • Call screen: the name, muted/deafened icon and volume slider over someone's video now sit on a solid dark chip, the speaking outline is a two-colour ring, and the incoming call's Decline button has fixed colours with a white ring, so all of them stay visible over any video and in every theme.
  • A saved theme with one damaged setting (for example a text size outside the allowed range) now keeps the theme and its other settings, using the default only for the damaged one, and is not overwritten by the device you open it on. Before, the whole theme was treated as never saved. Settings > Appearance keeps that theme ticked and says some settings couldn't be read; changing the damaged setting or picking a theme fixes it.

Upgrading from 0.3.x and rolling back

  • Upgrade as in the README ("Upgrading 0.3.1 -> 0.4.0"): back up data and .env, unzip doghouse-0.4.0.zip into a fresh folder next to the 0.3.1 one (not over it), copy deploy/.env and move deploy/data across, then docker compose up -d --build. Keep the 0.3.1 folder: a rollback uses it. Migration 009_pins_blocks.sql (pins and blocks tables, additive) runs on start without a log line. Calls going on during the upgrade end, as with any restart.

  • Rollback to 0.3.1, if you need it (the same steps as in the README):

    1. In doghouse-0.4.0/deploy: docker compose down.
    2. Move data back into the 0.3.1 folder: mv data ../../doghouse-0.3.1/deploy/. That folder still has its .env. If you deleted it, unzip doghouse-0.3.1.zip into a fresh folder first and copy deploy/.env into it.
    3. Optional, instead of step 2: restore the backup you made before the upgrade. In doghouse-0.3.1/deploy: tar xzf ~/doghouse-backup-<date>.tgz (it puts back data and .env). This loses everything since the upgrade: messages, pins, blocks and theme changes. Only do this if the data itself is the problem. Then, still in doghouse-0.3.1/deploy, rename the old 0.4 data so it is never used by mistake: mv ../../doghouse-0.4.0/deploy/data ../../doghouse-0.4.0/deploy/data-before-rollback. A later upgrade then moves the restored data in as usual.
    4. In doghouse-0.3.1/deploy: docker compose up -d --build. 0.3.1 runs on the moved data and ignores the pins and blocks tables; messages sent on 0.4.0 are kept.

    What a rollback changes for themes, blocks and pins is listed below.

  • 0.3.x tabs still open after the upgrade keep working until they are reloaded; the differences are listed below.

Known limits

  • Blocking can sometimes be inferred (accepted under D5, QA-73). "Couldn't add" (adding someone to a group) and "Couldn't send" when opening a new 1:1 DM only ever come from a block; the ordinary failures there are "User not found". Sending in an existing DM is ambiguous on purpose: a DM where you no longer share a server gives exactly the same "Couldn't send".
  • Blocking hides what is broadcast to a room (live messages, edits, reactions, typing) in the app, not on the wire: it still reaches the blocker's browser and is visible in developer tools (D3). History, pins, unread counts, pushes, reply quotes and reaction counts are filtered by the server.
  • A 0.3.x tab left open after the upgrade shows live messages, quotes and reactions from people you blocked until it is reloaded, and if it reconnects while a group call involving a blocked person is ringing it can show that call's incoming card (0.4 rings only on the server's per-person answer).
  • Rolling back to 0.3.x turns blocking off completely: DMs, calls, unread counts, pushes and history from blocked people all come back, and 0.3.1 words a blocked DM as "you no longer share a server". Upgrading to 0.4 again turns the blocks back on (they are kept in the database) and hides what was sent in the meantime.
  • Rollback to 0.3.x: the 0.4 tables are ignored, but the "X pinned a message" lines already in chats are shown by 0.3 as "X updated the group" (QA-68). They read correctly again after upgrading back to 0.4.
  • Themes: 0.4 adds ten colour presets and Auto. After a rollback to 0.3.x an account whose theme is one of them shows the default (Dark) theme, and the 0.3 app then saves that default to the account, so upgrading to 0.4 again keeps Dark until the person picks their theme again. Accent, text size and compact mode on such an account also go back to the defaults. Accounts on Dark, Light or AMOLED are unaffected. 0.4 itself is safe for the next rollback (D19): given a theme it does not know (saved by a later version) it shows Dark with the saved accent, size and compact setting but writes nothing back. Changing the accent, size or compact saves only that setting and keeps the saved theme; picking a theme replaces it. A theme change a 0.4 device made but never managed to save before a rollback is not sent again after the re-upgrade if the theme was changed under 0.3 in the meantime: the later 0.3 choice wins. A 0.4 tab left open against a server rolled back to 0.3.x can't save theme changes until it is reloaded.
  • Solarized light and Solarized dark keep the published Solarized background colours (or very close to them), but their text, muted text, danger, success and accent colours are adjusted so everything reads at 4.5:1 or better. The published body-text colours fall short of that, so these themes look slightly higher-contrast than the original palette (D19).
  • Themes: if you change the theme twice in quick succession and reload straight away, the first change's save can be held up on a slow or flaky connection and reach the server only after the reloaded page has saved your second change. It then replaces it, and every open page shows the first choice again; pick the theme again (D21, QA-87). If those saves are lost altogether instead, the next load re-sends your last choice and nothing is lost.
  • Known issue, for 0.5 (QA-80): links and muted text on a hovered or selected row, and the mention in the Settings preview, can fall to about 3.2-4.4:1 in several themes (Dark included, as in 0.3). Ordinary text on every surface reaches 4.5:1 (7:1 in High contrast).
  • Known issue, for 0.5 (QA-88): if another device changes the theme while this device's own theme change is still being saved, this device can miss the update and keep showing its own, older choice until it is reloaded or the theme is changed again. The saved theme is right; only that screen is behind.
  • Known issue, for 0.5 (QA-90): in Settings > Appearance on a device in dark mode, the small "Follows your device" line under Auto is a little low in contrast (3.87:1) while Auto is the selected theme.

Developers

  • REQUIRE_LIVEKIT=1 npm run check runs typecheck, lint and all unit tests with nothing skipped.
  • A full e2e run (REQUIRE_LIVEKIT=1 npm run e2e) is 77 passed, 67 skipped, 0 failed. All skips follow the skip policy in CHANGES-0.3.0.md: 65 desktop-only tests skipped in the phone project and 2 phone-only layout checks skipped in the desktop project.
  • The release zip carries the notes of every release (CHANGES-0.1.1.md to this file and CHANGES-M6.md) and THIRD-PARTY-NOTICES.md.

Real-device checklist

The 0.3.0 checklist (CHANGES-0.3.0.md) still applies. New in 0.4, once on real phones:

  • Pins: pin from a message's menu on a phone, open the pins list at 320 px, jump to an old pin.
  • Blocking: block someone from their profile card on a phone; their calls don't ring and their pushes don't arrive while the app is closed; unblock from Settings and both work again.
  • Themes: pick a few presets on the phone and check they follow to the desktop; set Auto and switch the phone between light and dark mode; check the installed app's status bar colour follows the theme.
  • Themes on a slow connection: on a phone and on a desktop, with a weak signal or a slow network, change the theme and straight away reload, switch to another app or close the tab. When you come back, your last choice is shown.
  • Hiding the app for real: change the theme, then switch apps, lock the phone or switch browser tabs, and come back. The theme you picked is still there.
  • Chrome's Duplicate tab: right-click a Doghouse tab and choose Duplicate. Pick a different theme in each tab, then reload both. Both show your last pick; neither tab undoes the other.
  • Live theme changes: with Doghouse open in two tabs and on a second device, change the theme in one tab. The other tab and the other device switch without a reload.
  • Calls with a real camera: in a video call, the name labels, the speaking ring and the Decline button are easy to read over real camera video.
  • After the real upgrade, on your own data: Settings > App and notifications > About shows 0.4.0, old messages and everyone's themes are still there, and a call connects. If you ever roll back, check the same on 0.3.1.