2.8 KiB
2.8 KiB
Doghouse 0.4.1
A small fix release on top of 0.4.0. No database changes, no new settings, no new ports.
Fixes
- Fixed: in a direct message or group DM, what you were typing was wiped when the other person sent a message before you sent yours (QA-102). Every new message (and a pin, which posts "pinned a message", or a block or unblock from any of your devices) refreshes the conversation, and the message box treated that as switching conversations and put back the saved draft, usually nothing. It now swaps drafts only when you really move to another conversation, so your text, cursor position and focus stay put. This was not new in 0.4.0 (0.3.1 does the same).
- The same change also keeps a draft in a server channel when that channel is renamed, its topic is edited or the channels are reordered while you type (QA-104).
- The regression test now types new text after switching away and back, so it can't pass on the old saved draft (QA-103).
Tested
- QA-102 is fixed in 1:1 DMs and group DMs, at desktop and phone size: about 730 tries (incoming messages, pins, blocks and unblocks from another device, replies, switching away and back) with no draft lost. QA-103 and QA-104 are fixed.
Known limits (planned for 0.5)
- Drafts are kept per tab and in memory only. Moving between a server and Home, or reloading the page, still loses them.
Upgrading from 0.4.0 and rolling back
- A drop-in: only the web app changed. No database migration, no new settings, and
docker-compose.yml,Dockerfile,livekit.yaml,npm-advanced.confand.env.exampleare unchanged. Follow "Upgrading 0.4.0 -> 0.4.1" in the README: unzip into a fresh folder, copydeploy/.envacross, movedeploy/dataacross anddocker compose up -d --build. Settings and/api/healththen show0.4.1. - Rollback: stop 0.4.1, move
databack into the 0.4.0 folder and start 0.4.0 on the same data.
Developers
- The draft swap is
swapDraftinapps/web/src/lib/draft.ts(unit testdraft.test.ts), used byComposer.sveltefrom an effect that only depends on the conversation id. - New e2e
e2e/tests/drafts.spec.ts(desktop project, covers desktop and phone sizes): a 1:1 DM and a group DM keep a draft, with the caret mid-text and focus, through the other person sending, a pin, a block and unblock from another device, and switching away and back then typing new text. It is desktop-only, so a full e2e run has one more skip in the phone project than 0.4.0. REQUIRE_LIVEKIT=1 npm run checkruns typecheck, lint and all unit tests with nothing skipped.- A full e2e run (
REQUIRE_LIVEKIT=1 npm run e2e) is 78 passed, 68 skipped, 0 failed. All skips follow the skip policy inCHANGES-0.3.0.md: 66 desktop-only tests skipped in the phone project and 2 phone-only layout checks skipped in the desktop project.