Commit Graph
34 Commits
Author SHA1 Message Date
Tommaso Casaburi 7fb825b4c6 perf(homepage): isolate boards list from live hook churn 2026-04-15 14:36:18 +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 04b98b84a4 feat(popular-threads): show actual feed state string instead of generic loading 2026-03-08 16:50:27 +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 90a01057f2 chore(knip): trim dead exports and tool noise 2026-03-08 16:37:34 +08:00
plebeius 1b9f69839d fix(routing): canonicalize board aliases in thread routes 2026-03-07 13:48:18 +08:00
plebeius 4508f589dd chore(deps): migrate from pkc-react-hooks to bitsocial-react-hooks 2026-03-05 17:14:23 +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 7a516cfbf9 fix(popular-threads): pass linkWidth/linkHeight to CatalogPostMedia for correct aspect ratio 2026-02-25 17:11:50 +08:00
plebeius 8cef8ce2a0 fix(popular-threads): adaptive ranking with grow-only stability 2026-02-25 16:49:43 +08:00
plebeius e0ed510fc6 perf(react-doctor): fix compiler-blocking patterns, raise score 72→81
Replace sync setState-in-effect with keyed remount and render-derived patterns in app, error-display, topbar-edit-modal, catalog-filters; use useCurrentTime() instead of Date.now() in hot paths; fix conditional hooks, passive scroll listeners, lodash path imports.
2026-02-18 15:31:01 +08:00
plebeius 63ee8aa168 refactor: rebrand default subplebbits to 5chan directories 2026-01-28 16:51:27 +08:00
plebeius f5cf263481 fix(popular-threads): update memo comparator to include multisub entry titles 2026-01-03 16:04:37 +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 c1a66ca61e refactor(home): prevent layout shift in popular threads loading
Remove boards list loading state since default data is available synchronously. Add min-height to popular threads loading state to reserve space and prevent container resize. Left-align loading text in popular threads.
2025-12-06 16:39:22 +01:00
plebeius d78fed1fda refactor(routing): migrate to directory-based board routing 2025-11-07 12:50:58 +01:00
plebeius 7f5eebdd53 boards titles shouldn't include directories 2025-11-03 22:16:25 +01:00
plebeius bae6faa929 feat: implement 5chan-specific default board list 2025-11-03 22:06:18 +01:00
Tom (plebeius.eth) ffe42c35ea upgrade react to v19, migrate from CRA to Vite, add react compiler 2025-03-04 17:53:05 +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) cadfc699fc feat(home): add boards list more similar to vichan, which is better than 4chan's boards box for a potentially infinite number of boards 2025-02-03 13:08:24 +01:00
Tom (plebeius.eth) 088ec8428b fix popular posts 2024-10-12 17:09:23 +02:00
Tom (plebeius.eth) 7742e1c9b0 fix(catalog): greentext and markdown styling shouldn't appear 2024-09-17 17:03:59 +02:00
Tom (plebeius.eth) 15f3c7b830 revert package.json changes, replace markdown in util 2024-09-16 11:24:54 +02:00
Tom (plebeius.eth) 3e8053b9bf Update popular-threads-box.tsx 2024-09-15 15:33:19 +02:00
Tom (plebeius.eth) 2db5009911 fix(popular threads box): don't display markdown syntax, remove white space 2024-09-14 17:34:56 +02:00
Tom (plebeius.eth) cfe8686d94 fix(popular threads box): in each post content, one return would appear as two returns (empty lines) 2024-08-12 13:13:42 +02:00
Tom (plebeius.eth) 5b1d3ee8ed style(home): trim thread titles 2024-07-04 12:14:14 +02:00
Tom (plebeius.eth) 0abc5a3841 style(home): add missing color on hover 2024-06-12 21:30:28 +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) 19222a66fe feat(post): add "time ago" tooltip to dates 2024-06-08 13:39:35 +02:00
Tom (plebeius.eth) 225d5f04f1 rename file 2024-06-03 21:34:32 +02:00
Tom (plebeius.eth) 82de50b88a refactor home component 2024-06-03 17:55:29 +02:00