Commit Graph
47 Commits
Author SHA1 Message Date
plebeius 6e08203ce6 perf(feed): reduce Virtuoso overscan and memoize itemContent for multiboard views 2026-02-26 17:27:58 +08:00
plebeius 4bdee0362d perf(bundle): replace plebbit-js imports with local utility, split chunks, fix CLS and rerenders
Eliminate direct @plebbit/plebbit-js (8.7MB) imports from all UI components by replacing
Plebbit.getShortAddress() with a local get-short-address utility. Add Vite manual chunks for
plebbit-js, plebbit-react-hooks, and react-spring/use-gesture. Fix catalog CLS by matching
skeleton to wrapper dimensions. Lazy-load ChallengeModal and ReplyModal. Add failed-URL cache
to useFetchGifFirstFrame, optimize useHide selector, and memoize useFeed options in mod-queue.
2026-02-26 16:42:36 +08:00
plebeius e51f5b968c refactor(react-doctor): raise score from 79 to 90 2026-02-24 15:15:44 +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 18cea185e7 refactor: replace default lodash imports with named imports
Replaced `import _ from 'lodash'` with specific named imports (`capitalize`, `lowerCase`, `debounce`, `startCase`) across 18 files. This reduces bundle size and improves tree-shaking efficiency.
2026-02-11 19:01:09 +08:00
plebeius 41b7fee439 refactor(mod queue): rename routes from /queue to /modqueue 2026-02-09 17:42:23 +08:00
plebeius 1704686a6f Update mod-queue.tsx 2026-02-09 17:17:14 +08:00
plebeius 63ee8aa168 refactor: rebrand default subplebbits to 5chan directories 2026-01-28 16:51:27 +08:00
plebeius fa4ec6da40 feat(mod-queue): improve compact view and add pending approval features
- Update excerpt format to show both title and content (title: content)
- Add Type and Image columns to compact view (desktop and mobile)
- Show parent post above replies in feed view
- Add approve/reject buttons to post page for pending posts when user is mod
- Translate pending approval string across all languages
- Reorder columns: No., Excerpt, Submitted, Type, Image, Actions
- Right-align Type and Image columns in desktop view
2026-01-26 16:31:15 +08:00
plebeius 14e8c92fa0 feat(mod-queue): add view mode selection and integrate with post components 2026-01-25 16:29:15 +08:00
plebeius c0c6e9ee31 perf(feeds): use hasMore instead of length check for conditional virtualization 2026-01-13 17:01:51 +01:00
plebeius ab98bd0a87 fix(mod-queue): close CSS breakpoint gap and remove duplicate time-ago rendering 2026-01-13 15:16:30 +01:00
plebeius e3431a9acb add confirmation for mod queue approve/reject actions 2026-01-12 20:11:54 +01:00
plebeius 0cd76c7e62 style(mod queue): adjust mobile design 2026-01-12 20:08:56 +01:00
plebeius 122b17790a fix(views): display useSubplebbit and useComment errors in board, post, and mod-queue views 2026-01-12 17:59:03 +01:00
plebeius 056096aace fix: memory leak in ModQueueButtonContent statusMap 2026-01-12 16:52:15 +01:00
plebeius ce35aa4249 style(mod queue): fix loading string styling 2026-01-12 16:45:24 +01:00
plebeius 410fd541b3 fix(mod-queue): use link as excerpt when post has no title/content and prevent empty strings 2026-01-11 17:44:56 +01:00
plebeius ee2a2b16a5 not needed for now 2026-01-11 17:40:50 +01:00
plebeius acd6514e31 style(mod queue): align title with table when filter by board is not rendered 2026-01-11 17:34:35 +01:00
plebeius 070203b5a7 style(mod queue): use default css for selectors 2026-01-11 17:30:04 +01:00
plebeius ca53fb4728 fix(mod queue): button counter doesn't update when navigating between boards 2026-01-11 17:23:29 +01:00
plebeius 4fd0820d94 fix(mod queue): adjust styling 2026-01-11 16:57:09 +01:00
plebeius 823731cb2d fix(mod queue): ModQueueButton shows incomplete pending count without postsPerPage 2026-01-11 16:32:28 +01:00
plebeius a381353290 update translation 2026-01-11 16:29:18 +01:00
plebeius 951a8ffd84 perf(mod queue): conditionally virtualize table for large feeds 2026-01-11 16:26:36 +01:00
plebeius 3251f4e992 Add date tooltips to mod queue timestamps 2026-01-11 16:25:09 +01:00
plebeius 7f05a1593e update mod queue styling 2026-01-11 16:19:51 +01:00
plebeius 2c8e05cd68 Show "ago" timestamp in mod queue only when over alert threshold 2026-01-11 15:42:21 +01:00
plebeius 33943c3de9 perf(mod queue): prevent re-renders from IPFS client state changes 2026-01-11 15:39:46 +01:00
plebeius ab353b59f6 feat(mod-queue): add minutes support to alert threshold 2026-01-11 15:20:48 +01:00
plebeius 49004109f8 perf(mod queue): skip animation sync when no items need blinking 2026-01-11 15:10:13 +01:00
plebeius 2ed3daaa7a Limit mod queue excerpt length to 101 characters 2026-01-11 12:39:36 +01:00
plebeius 02fc6a3171 fix(mod-queue): button counter includes already approved/rejected items 2026-01-11 12:35:59 +01:00
plebeius a33b2e5a9a feat(mod-queue): add number column, improve time display, and use edited comments
- Add 'No.' column displaying post number
- Change 'waiting' to 'submitted' column with formatted date + ago format
- Show blinking relative time in parentheses for items awaiting approval
- Use useEditedComment hook to display pending edits
- Make time column width auto to fit content
- Remove unused translation keys (waiting, mod_queue_alert_threshold_tip, view)
- Add 'submitted' translation key in all languages
2026-01-11 12:28:21 +01:00
plebeius a23f5bc238 fix(mod-queue): alert animation and counter only for pending items 2026-01-10 18:11:38 +01:00
plebeius 5f4856ad3c fix: synchronize blinking animation in moderation queue 2026-01-09 17:20:59 +01:00
plebeius 2d7cfd265d fix styling 2026-01-09 17:03:53 +01:00
plebeius e0fb887bac sort mod queue by timestamp, remove redundant "view" button 2026-01-09 15:47:56 +01:00
plebeius 3f57691255 fix ts errors 2026-01-08 18:56:43 +01:00
plebeius fbdfadc65c fix(mod-queue): style action buttons to match board buttons and make status indicators bold/colored 2026-01-08 18:09:44 +01:00
plebeius 01823caeab Handle already moderated comments in mod queue 2026-01-08 17:59:41 +01:00
plebeius 6a740a8bb9 add approve/reject mod queue functionality, translations 2026-01-08 17:36:47 +01:00
plebeius 404b613b44 perf: Fix unnecessary renders in useCurrentTime hook and ModQueueView footer 2026-01-08 17:16:29 +01:00
plebeius 99596d3a54 fix(mod queue): items shouldn't disappear from feed unless api removes them 2026-01-08 16:46:02 +01:00
plebeius e899ac7fb9 update mod queue 2026-01-08 16:43:14 +01:00
plebeius 70ba14591a feat: implement mod queue 2026-01-07 16:03:02 +01:00