Skip to content

fix: improve industry news page sorting, deduplication, and HTML entity parsing#647

Merged
bokelley merged 1 commit into
mainfrom
bokelley/news-sort-dedup-fix
Jan 6, 2026
Merged

fix: improve industry news page sorting, deduplication, and HTML entity parsing#647
bokelley merged 1 commit into
mainfrom
bokelley/news-sort-dedup-fix

Conversation

@bokelley

@bokelley bokelley commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • HTML Entity Parsing: Added generic numeric HTML entity decoding using String.fromCodePoint to properly handle entities like ’ (curly apostrophe) and 🚀 (emoji)
  • Article Sorting: Populate published_at field in addie_knowledge from RSS feed data so articles sort by their original publication date (newest first)
  • URL Deduplication: Normalize article URLs before storage (remove query params, www prefix, trailing slashes) to prevent duplicates across overlapping feeds
  • Migration: Backfill published_at for existing records and clean up existing duplicates (keeping the most recently updated entry)

Test plan

  • TypeScript builds without errors
  • All tests pass
  • Verified page loads in browser via Docker
  • Migration runs successfully

🤖 Generated with Claude Code

…ty parsing

- Add generic numeric HTML entity decoding (’ etc) using fromCodePoint
- Populate published_at field in addie_knowledge for proper chronological sorting
- Normalize article URLs before storage to prevent duplicates across feeds
- Add migration to backfill published_at and clean up existing duplicates

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 3f2c552 into main Jan 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant