v0.2.0: bubble for Android 0.2.0 — chat search, swipe for unread, faster chat opening

Desktop:
- Search lists chats whose own name matches first, so a named group
  isn't pushed out of the top 8 by chats that merely include a member.

Android (Rabbit R1) app, 0.2.0:
- Pull the chat list past its top for a search box (name, person,
  number, then group members; archived chats too; Back clears it).
- Swipe right to left marks a chat unread / read over a magenta band;
  left to right still archives (SwipeActions replaces SwipeArchive).
- Google Voice chats don't offer voice notes in the paperclip bubble.
- Chats open with their newest 60 messages, then the full history;
  marking read (and the Google Voice network call) waits until they're
  on screen. Cached pictures show at once, and one slow download no
  longer blocks the other images. Fixed a contacts reload race.
- Sandbox data gains filler chats, a named group and a 4,000-message chat.

Also: the Android app, Google Voice support, media, export, emoji and
the other work since the first commit, and a CLAUDE.md carrying the
privacy rule.
This commit is contained in:
2026-11-06 02:19:56 -08:00
parent a2b8f764db
commit 8c84feaa91
114 changed files with 12987 additions and 379 deletions
+3 -18
View File
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest'
import { formatNumber, normalizeNumber, splitMessage } from '@shared/phone'
import { charCount, formatNumber, normalizeNumber } from '@shared/phone'
describe('phone numbers', () => {
it('normalizes NANP numbers to 10 digits', () => {
@@ -17,23 +17,8 @@ describe('phone numbers', () => {
})
})
describe('splitMessage', () => {
it('keeps short messages whole', () => {
expect(splitMessage('hi there')).toEqual(['hi there'])
})
it('splits long messages on word boundaries under 160 chars', () => {
const text = Array.from({ length: 80 }, (_, i) => `word${i}`).join(' ')
const parts = splitMessage(text)
expect(parts.length).toBeGreaterThan(1)
for (const p of parts) expect([...p].length).toBeLessThanOrEqual(160)
expect(parts.join(' ')).toBe(text)
})
it('hard-splits a long unbroken string', () => {
const parts = splitMessage('x'.repeat(400))
expect(parts.map((p) => p.length)).toEqual([160, 160, 80])
})
describe('charCount', () => {
it('counts emoji as single characters', () => {
const parts = splitMessage('😀'.repeat(200))
expect(parts.map((p) => [...p].length)).toEqual([160, 40])
expect(charCount('😀'.repeat(200))).toBe(200)
})
})