Skip to content

fix(bug): show collection in dicover section on unfollowed or reload - #2356

Open
Abhishek7Tech wants to merge 2 commits into
pubky:devfrom
Abhishek7Tech:show-unfollowed-collection-in-discover-section
Open

fix(bug): show collection in dicover section on unfollowed or reload#2356
Abhishek7Tech wants to merge 2 commits into
pubky:devfrom
Abhishek7Tech:show-unfollowed-collection-in-discover-section

Conversation

@Abhishek7Tech

Copy link
Copy Markdown

Closes #2237

Summary

Shows followed Collection is the Discover section after being unfollowed by the user when the page is reloaded, or the page is revisited by the user.

Screen recording

Screen.Recording.2026-08-17.142001.mp4

@greptile-apps

greptile-apps Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR propagates an unfollowed collection ID from the followed section to the Discover section and defers inserting it until active collection requests finish.

  • Adds an unfollow callback from collection cards through the collection-section coordinator.
  • Prepends the unfollowed collection to the latest Discover results.
  • Reruns deferred insertion after initial or pagination loading completes.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
src/components/organisms/Collections/CollectionCard/CollectionCard.tsx Propagates the collection ID when the user initiates an unfollow action.
src/components/organisms/Collections/CollectionsSections/CollectionsSections.tsx Coordinates the latest unfollowed collection ID between Followed and Discover sections.
src/components/organisms/Collections/DiscoverCollections/DiscoverCollections.tsx Defers insertion during active fetches and retries against the latest visible collection state when loading completes.
src/components/organisms/Collections/FollowedCollections/FollowedCollections.tsx Passes the unfollow notification callback into followed collection cards.

Reviews (2): Last reviewed commit: "fix(bug): show collection in dicover sec..." | Re-trigger Greptile

Comment thread src/components/organisms/Collections/DiscoverCollections/DiscoverCollections.tsx Outdated
@Abhishek7Tech

Copy link
Copy Markdown
Author

@greptileai review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Collection doesn't always show in Discover section on unfollow, page reloaded then required

1 participant