feat: seen notes filters #146
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description: Seen Notes Filter - Automatic Feed Filtering
Overview
This PR implements a production-ready seen notes filter that automatically hides previously viewed notes in the home feed, providing users with a "fresh content only" experience. The system uses fast bloom filters with localStorage persistence to track which notes users have already seen.
Key Features
Automatic Note Filtering
Intelligent Note Tracking
Performance & Storage
Implementation
Core Integration (Home.tsx)
Technical Architecture
Files Added/Modified
Core Implementation
src/lib/seenNotesFilter.ts- Bloom filter and storage managersrc/lib/seenNotesIntegration.tsx- Main integration hooksrc/lib/feedIntegration.ts- Visibility tracking utilitiesHome Feed Integration
src/pages/Home.tsx- Main integration with 4-line changesrc/pages/Home.module.scss- Styles for "all caught up" messageDebug & Settings
src/components/SeenNotesSettings/- Optional debug panelDEBUGGING_GUIDE.md- Comprehensive troubleshooting guideHow It Works
Automatic Detection System
data-note-idattributesNote Lifecycle
Storage & Rotation
Performance
Debugging Features
Console Debug Tools
Comprehensive Logging
User Experience
Before
After
Edge Cases Handled
Impact
This PR addresses a major user experience pain point by providing automatic content freshness filtering. Users no longer need to manually track which notes they've read - the system handles this transparently while maintaining perfect privacy through local-only storage.
Benefits
This feature provides immediate value to users while requiring zero configuration or maintenance. The localStorage-only approach ensures reliability and privacy while the bloom filter design keeps memory usage minimal.