Skip to content

feat: replace Recently Added with Recently Edited on home page#68

Merged
kyleamueller merged 2 commits into
mainfrom
feature/recently-edited
Apr 13, 2026
Merged

feat: replace Recently Added with Recently Edited on home page#68
kyleamueller merged 2 commits into
mainfrom
feature/recently-edited

Conversation

@kyleamueller
Copy link
Copy Markdown
Owner

Summary

  • Replaces the git-dependent getRecentlyAdded() with a static src/data/recently-edited.json data file
  • Supports all content types (functions, concepts, patterns) — not just functions
  • Each card shows the content title, description, type badge, and edit date
  • Adds 6 new content-integrity tests: schema validation, slug existence, no duplicates, sort order, and a 45-day freshness gate that fails the pre-push hook if the list goes stale
  • Documents the maintenance workflow in CLAUDE.md

Test plan

  • npm run typecheck — clean
  • npm test — all 51 tests pass (45 existing + 6 new)
  • npm run dev — verify home page renders "Recently Edited" with correct links to functions/concepts/patterns
  • Verify freshness gate: temporarily set newest date to 60+ days ago → test fails

🤖 Generated with Claude Code

kyleamueller and others added 2 commits April 10, 2026 10:26
Add module-level Map caches for getFunctionBySlug, getConceptBySlug,
and getPatternBySlug so each file is read and parsed only once.
Reduces test suite time by ~35% (mdx.test 941ms→613ms,
content-integrity 1171ms→764ms).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the git-dependent getRecentlyAdded() with a static JSON data
file (src/data/recently-edited.json) that supports all content types
(functions, concepts, patterns). Add 6 content-integrity tests
including a 45-day freshness gate that fails the pre-push hook if the
list goes stale. Document maintenance workflow in CLAUDE.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pqm-guide Ready Ready Preview, Comment Apr 13, 2026 2:43pm

Request Review

@kyleamueller kyleamueller merged commit f3069c3 into main Apr 13, 2026
6 checks passed
@kyleamueller kyleamueller deleted the feature/recently-edited branch April 13, 2026 14:43
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