feat(chat): unseen reply counts and phone dock (#1883, #1885) #1898

Merged
sam merged 2 commits from feat/1883-1885-chat-dock into main 2026-11-12 12:13:56 +00:00
Owner

Closes #1883, closes #1885.

#1883: replies that arrive while the dock is collapsed or the reader is scrolled up are counted in chat/unseen.ts. The collapsed bar shows the count and the jump button reads "N new replies". The count clears once the conversation is open and at its end. The chat live reload moved from ChatTranscript to ChatDock, because the transcript is unmounted while collapsed and never saw the outcome.

#1885: on phones the dock rides above the keyboard via visualViewport and env(safe-area-inset-bottom), the transcript height follows the visible height, swiping down on the header collapses it, and the composer text is 16 px on touch devices. The touch-hit utility widens button tap areas to 44 px with an invisible ::after, so nothing resizes. Min sizes on every button was tried before and made the dashboard look oversized (see style.css base layer).

Checked with a mocked API in Chromium (desktop and iPhone 13): count appears while collapsed, clears on open, "2 new replies" while scrolled up and clears after jump, 16 px text, 44 px hit area, bottom offset with a simulated keyboard, swipe collapse. Not checked on a real iPhone. task check passes.

Closes #1883, closes #1885. #1883: replies that arrive while the dock is collapsed or the reader is scrolled up are counted in `chat/unseen.ts`. The collapsed bar shows the count and the jump button reads "N new replies". The count clears once the conversation is open and at its end. The `chat` live reload moved from ChatTranscript to ChatDock, because the transcript is unmounted while collapsed and never saw the outcome. #1885: on phones the dock rides above the keyboard via visualViewport and `env(safe-area-inset-bottom)`, the transcript height follows the visible height, swiping down on the header collapses it, and the composer text is 16 px on touch devices. The `touch-hit` utility widens button tap areas to 44 px with an invisible ::after, so nothing resizes. Min sizes on every button was tried before and made the dashboard look oversized (see style.css base layer). Checked with a mocked API in Chromium (desktop and iPhone 13): count appears while collapsed, clears on open, "2 new replies" while scrolled up and clears after jump, 16 px text, 44 px hit area, bottom offset with a simulated keyboard, swipe collapse. Not checked on a real iPhone. `task check` passes.
sam added 1 commit 2026-11-12 12:03:21 +00:00
feat(chat): count unseen replies and follow the phone keyboard (#1883, #1885)
ci/woodpecker/pr/quality Pipeline was canceled
Quality / check (pull_request) Canceled after 0s
9dd55646bb
sam added 1 commit 2026-11-12 12:13:44 +00:00
Merge branch 'main' into feat/1883-1885-chat-dock
ci/woodpecker/pr/quality Pipeline was successful
Quality / check (pull_request) Successful in 11m36s
07e4e8f727
sam merged commit 1ae6d39680 into main 2026-11-12 12:13:56 +00:00
sam deleted branch feat/1883-1885-chat-dock 2026-11-12 12:13:57 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1898