Commit Graph
23 Commits
Author SHA1 Message Date
Tommaso Casaburi c046c542b6 chore(deps): use published bitsocial react hooks 2026-04-20 22:11:36 +07:00
Tommaso Casaburi 4b06ac8c9a perf(home): stop popular threads rerenders after load 2026-04-19 15:01:27 +07:00
Tommaso Casaburi 508fffe5d6 fix(home): preserve popular threads during navigation 2026-04-19 14:24:35 +07:00
Tommaso CasaburiandGitHub d7703953fb refactor: migrate 5chan to the community hooks API (#1073)
* refactor(community-api): migrate 5chan to community hooks

* fix(review): address PR feedback

* fix(review): preserve legacy board context fallbacks

* fix(review): address latest bot feedback

* fix(review): use communityAddress in edit menu privileges
2026-03-13 13:25:10 +08:00
plebeius 417482060d refactor: org name changed from bitsocialhq to bitsocialnet 2026-03-09 17:01:35 +08:00
plebeius c27590372c fix(popular-posts): randomize popular thread board selection on mount 2026-03-08 16:58:55 +08:00
plebeius 824c14f538 fix(home): stabilize initial popular threads box
Keep usePopularPosts() keyed to the requested board list, wait to reveal the box until the first result set is stable, and limit the grid to one thread per board. Freeze the first revealed threads until refresh or filter changes so later board loads cannot displace visible cards.
2026-03-08 16:48:38 +08:00
plebeius 4508f589dd chore(deps): migrate from pkc-react-hooks to bitsocial-react-hooks 2026-03-05 17:14:23 +08:00
plebeius 9216791505 fix(popular-posts): rank by time-decayed popularity instead of raw reply count 2026-03-03 14:51:42 +08:00
plebeius e556a9e662 chore(deps): replace plebbit/plebbit-react-hooks with bitsocialhq/pkc-react-hooks
bitsocialhq/pkc-react-hooks is a fork of plebbit-react-hooks that we're maintaining temporarily as an attempt to modernize the original repository using AI tools, possibly merging changes back into plebbit-react-hooks, which should also be rebranded to pkc-react-hooks eventually, under the org pkcprotocol.
2026-02-28 15:02:56 +08:00
plebeius 8cef8ce2a0 fix(popular-threads): adaptive ranking with grow-only stability 2026-02-25 16:49:43 +08:00
plebeius 2f563b441a fix(popular-posts): base quota on loaded boards instead of total directories
The postsPerSub quota is now calculated from boards with actually loaded hot comments, not total filtered directories. This prevents the list from collapsing to a single post when many boards are empty or unavailable.
2026-02-15 14:52:27 +08:00
plebeius a7614db743 fix(hooks): fix usePopularPosts loading state and change detection 2026-01-03 16:14:08 +01:00
plebeius fa32833b2a perf(components): prevent rerenders from updatingState
Use Zustand selectors with custom equality functions to only subscribe to specific fields needed by components, avoiding unnecessary rerenders when transient state like updatingState changes. Extract offline indicators into separate components to isolate rerenders. Memoize card components in catalog and popular threads views.
2026-01-02 16:42:16 +01:00
plebeius bae6faa929 feat: implement 5chan-specific default board list 2025-11-03 22:06:18 +01:00
Tom (plebeius.eth) 797a1f23c6 perf(feed): optimize posts rendering via props refactoring, memoizations 2025-03-03 23:47:33 +01:00
Tom (plebeius.eth) 088ec8428b fix popular posts 2024-10-12 17:09:23 +02:00
Tom (plebeius.eth) c6a1283b56 fix(popular threads box): default to worksafe content and show 8 posts for single subplebbit 2024-06-12 16:50:39 +02:00
Tom (plebeius.eth) 387ae35904 fix eslint, styling 2024-06-06 20:44:53 +02:00
Tom (plebeius.eth) 83a3eeccaa Update use-popular-posts.ts 2024-06-03 17:56:04 +02:00
Tom (plebeius.eth) 82de50b88a refactor home component 2024-06-03 17:55:29 +02:00
Tom (plebeius.eth) 98c52e65da feat(home): in popular threads box, show more posts per sub depending on available subs 2024-06-03 17:26:47 +02:00
plebeius.eth 4d0baffd09 refactor(home): use hook to fetch popular posts 2024-05-10 21:47:00 +02:00