From 872954d5ced555094998b851f67fb4f387421022 Mon Sep 17 00:00:00 2001 From: padreug Date: Sat, 20 Sep 2025 15:40:43 +0200 Subject: [PATCH] Implement centralized collapse state management in NostrFeed component - Introduced a centralized mechanism for managing the collapse state of posts, allowing for automatic collapsing of posts with more than 2 direct replies. - Enhanced the ThreadedPost component to utilize the centralized collapse state, improving the visibility and interaction of nested replies. - Added cascading collapse functionality to ensure that all descendant posts are collapsed when a parent post is collapsed. These changes contribute to a more organized and user-friendly experience within the NostrFeed module. --- .../nostr-feed/components/NostrFeed.vue | 69 ++++++++++++++++++- .../nostr-feed/components/ThreadedPost.vue | 25 +++++-- 2 files changed, 86 insertions(+), 8 deletions(-) diff --git a/src/modules/nostr-feed/components/NostrFeed.vue b/src/modules/nostr-feed/components/NostrFeed.vue index b4a5fa6..7dc799f 100644 --- a/src/modules/nostr-feed/components/NostrFeed.vue +++ b/src/modules/nostr-feed/components/NostrFeed.vue @@ -1,5 +1,5 @@