Summary
This MR fixes multiple UI issues and improves code quality:
-
#777 (closed): Migrate from
proxifyImageUrltoproxifyImageSrcwith Base58 encoding - #775 (closed): Fix long links overflowing containers
- #773 (closed): Show message when My Friends feed is empty
- #771 (closed): Fix images in comments overflowing container
- #767 (closed): Fix edit comment showing old content + add 30-day draft expiration
Additional improvements:
- Extract CommentsSection component to prevent re-renders when typing in reply box
- Add responsive width classes for post layout
- Replace
useLocalStoragehook with native localStorage API to prevent unnecessary re-renders - Add expiration (30 days) for comment drafts to cleanup old localStorage entries
Test plan
- Verify post page has responsive width on different screen sizes
- Verify typing in reply box doesn't cause content below to re-render
- Verify images are proxified correctly with new Base58 encoding
- Verify long links wrap properly in posts and comments
- Verify "My Friends" page shows message when not following anyone
- Verify images in comments don't overflow container
- Verify editing a comment shows current content, not original
- Verify Cancel button removes draft from localStorage
- Verify old comment drafts are cleaned up after 30 days
Closes #767 (closed), #771 (closed), #773 (closed), #775 (closed), #777 (closed)
Edited by Adam Kociubinski