Commit Graph
55 Commits
Author SHA1 Message Date
Tommaso Casaburi fe87808a90 fix(media): clarify failed external image embeds 2026-05-14 16:36:20 +07:00
Tommaso Casaburi b0b5d45376 fix(feed): measure expanded reply media height 2026-04-27 13:30:38 +07:00
Tommaso CasaburiandGitHub 5dc5408a15 fix(codebase audit): preserve cleanup without regressions
Fix codebase audit regressions while preserving UI/UX behavior and adding review-driven hardening.
2026-04-24 15:48:07 +07:00
Tommaso Casaburi e161606147 perf(board): reduce desktop reverse-scroll jank on /all
Apply the asymmetric viewport buffer that already fixed mobile to desktop
multiboard feeds, and trim per-post mount cost so remounts during scroll-up
are cheaper:

- Desktop multiboard buffer goes from {600,600} to {1200,2400} (top-heavy),
  matching the mobile pattern from 99c0bbfac so items stay mounted longer
  when scrolling back up
- Cache feed post height estimate by CID in pretext-height-estimates so
  remounts skip the Pretext text-measurement work
- Memoize CommentMedia and switch its expanded-media-store reads to atomic
  selectors so it stops rerendering on unrelated store changes
- Memoize useCommentMediaInfo return so its reference is stable for memo
  comparators downstream
- Stop useFetchGifFirstFrame from forcing an extra render on every post
  mount by bailing out of equivalent setState calls
- Extract PendingModerationActions out of PostInfo so the two
  usePublishCommentModeration calls only run on the post page when
  mod-approval is actually pending, not on every feed item
2026-04-18 13:31:02 +07:00
Tommaso Casaburi ee7a5b5778 refactor(core): remove legacy plebbit terminology 2026-04-17 10:48:27 +07:00
Tommaso Casaburi 99c0bbfac5 perf(board): reduce mobile reverse-scroll jank 2026-03-31 19:47:36 +07:00
Tommaso CasaburiandGitHub 714c39cf47 feat(settings): add expanded video auto-unmute preference (#1104)
* feat(settings): add expanded video auto-unmute preference

* fix(translations): add missing unmute labels

* fix(translations): localize unmute label
2026-03-17 19:09:29 +08: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 9444d3e01a test: cover comment rendering and edge-route states 2026-03-08 16:00:54 +08:00
plebeius 34e2c2bc4d fix: hold gif thumbnails until first frame is ready
Distinguish GIF frame loading from GIF frame failure in useFetchGifFirstFrame(), so thread and catalog thumbnails no longer render animated GIFs before the still frame arrives. Keep the existing animated fallback when the first-frame fetch actually fails.
2026-03-07 21:16:13 +08:00
plebeius ae744d0f78 feat(posts): add purge UI feedback for mods
Show Purged author/ID, red content message, and file-deleted media when
post.commentModeration.purged is true. Mirrors removal UI pattern.
2026-03-06 21:44:33 +08:00
plebeius 7644d59599 perf(media): restrict gif frame extraction to gif media types 2026-03-04 16:04:49 +08:00
plebeius 6ac9ac0ee7 fix(media): reserve stable post media space before thumbnails resolve 2026-02-26 17:27:54 +08:00
plebeius e51f5b968c refactor(react-doctor): raise score from 79 to 90 2026-02-24 15:15:44 +08:00
plebeius 0fbb3bef38 Update comment-media.tsx 2026-02-23 19:29:50 +08:00
plebeius 91667966f8 perf(feeds): defer useReplies, Virtuoso for all paths, CLS fixes, memo
Defer useReplies to hover-only in CatalogPost. Memo CatalogRow and Post. Remove useWindowWidth and autoUpdate from CatalogPost. Replace display:none with opacity for images. Add width/height to img tags in catalog-row and comment-media. Use Virtuoso for all rendering paths (infinite, finite, pagination). Optimize filteredComments with Set lookup. Add Vite manual chunks for markdown, virtuoso, floating-ui.
2026-02-23 18:51:42 +08:00
plebeius fcd8838045 fix(markdown): embedded media in comment.content shouldn't be expandable and should be already expanded 2025-12-31 15:23:56 +01:00
plebeius 5e79ce91b6 refactor: remove description and rules mock posts
Removed all fake posts for subplebbit description and rules, including dedicated routes, components, and all related logic across the codebase. Board admins can now pin regular posts if they want to provide a description.
2025-12-23 19:14:25 +01:00
Tom (plebeius.eth) 974a10442e update comment media 2025-03-07 19:42:30 +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) 6e60360033 fix(post): image marked as spoiler was visible 2025-02-21 12:43:14 +01:00
Tom (plebeius.eth) 4f2308fa94 fix(board): some subplebbit avatars could overflow 2025-02-05 15:43:57 +01:00
Tom (plebeius.eth) d3e11bd48c refactor, don't allow click to enlarge on 404'd images 2024-12-12 16:41:18 +01:00
Tom (plebeius.eth) 309f76689f fix(feed): posts could change position causing displacement 2024-12-05 15:37:23 +01:00
Tom (plebeius.eth) f7da51259e fix board logo in description 2024-11-29 21:53:53 +01:00
Tom (plebeius.eth) 077b3bc9ef fix(post): image could flicker when clicking it to expand it 2024-11-23 18:37:13 +01:00
Tom (plebeius.eth) ba54d70421 feat(interface settings): add 'Fit expanded images to screen' setting 2024-10-31 12:55:38 +01:00
Tom (plebeius.eth) 4664206e77 feat(post): show media dimensions if available 2024-09-07 14:11:33 +02:00
Tom (plebeius.eth) 5bcfda6908 fix(post): incorrect spacing on enlarged images 2024-09-07 13:45:31 +02:00
Tom (plebeius.eth) 5a56016c85 fix(post): some gifs would appear animated before expanded 2024-09-04 17:15:11 +02:00
Tom (plebeius.eth) 7253e4d1a0 feat(post): add support for static GIFs 2024-07-20 16:25:20 +02:00
Tom (plebeius.eth) 8d766cc9e3 fix(iframe): background was white in tomorrow theme 2024-07-04 16:39:04 +02:00
Tom (plebeius.eth) ac476ba7fd fix spoiler image displacement 2024-06-30 11:54:54 +02:00
Tom (plebeius.eth) bfc8f0bc01 wrong margin 2024-06-27 20:54:19 +02:00
Tom (plebeius.eth) c8f62a754d fix undefined 2024-06-26 18:10:51 +02:00
Tom (plebeius.eth) 4cca4a58dd fix: incorrect assets path 2024-06-20 17:02:11 +02:00
Tom (plebeius.eth) 092c25bb0c fix eslint 2024-06-20 15:00:31 +02:00
Tom (plebeius.eth) 9f5f92f714 feat: add spoiler image 2024-06-19 18:50:24 +02:00
Tom (plebeius.eth) aaa13324f5 Update comment-media.tsx 2024-06-08 19:46:37 +02:00
Tom (plebeius.eth) 39a48c9515 feat(post): add floating preview of media from link in post content 2024-06-08 16:41:05 +02:00
Tom (plebeius.eth) 052476ad1a feat: hide media if spoiler 2024-06-03 13:52:55 +02:00
Tom (plebeius.eth) 05a8e91331 feat(post): add deleted and removed styling, mod reason, file deleted 2024-05-31 10:14:44 +02:00
Tom (plebeius.eth) fd092f1bee feat: add "hidden threads" counter and button in catalog and board view, store and hook 2024-05-30 18:01:37 +02:00
Tom (plebeius.eth) 32f52200b7 feat(post): block posts via the minus button (to collapse) or via the post menu 2024-05-30 14:29:02 +02:00
Tom (plebeius.eth) 856616eeec add comments 2024-05-29 21:08:03 +02:00
Tom (plebeius.eth) 0701f82174 refactor: add hook use-is-mobile for use-window-width calls 2024-05-29 16:17:37 +02:00
Tom (plebeius.eth) 18824468d4 feat(post): add "file deleted" img on error 2024-05-29 15:45:54 +02:00
Tom (plebeius.eth) 9c753d8a73 Update comment-media.module.css 2024-05-28 18:25:53 +02:00
Tom (plebeius.eth) 2859baf9c2 style(comment media): fix subplebbit avatar size 2024-05-28 16:11:25 +02:00
plebeius.eth a949b5096a style(post): translate link types, anonymous displayName 2024-04-28 17:40:05 +02:00