Files
amethyst/commons/src
Claude d4c3b83295 feat: collapse thread replies on click in thread view
Tapping a reply in the thread view now collapses it instead of opening it
as a new thread. A collapsed reply renders only its author and the first two
lines of its content, and all of its descendant replies are hidden. An
ExpandMore indicator on the collapsed row (or tapping the row) reopens it
and restores its children.

- LevelFeedViewModel tracks the collapsed reply ids and exposes toggle/query
  helpers; collapsing also flags the thread as interacted so it stops
  auto-scrolling to the focused note.
- RenderThreadFeed filters out descendants of collapsed replies (the feed is
  depth-first ordered, so descendants are the contiguous deeper-level items)
  and renders the compact CollapsedNoteCompose for collapsed entries.
- NoteCompose gains an optional onClick override so the thread view can
  intercept the tap for collapsing without changing default navigation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015hwQiQbgboo8LScPdDHDJn
2026-06-18 03:42:07 +00:00
..