feat(overview): add "New" badge on latest changelog entry#2701
Conversation
Shows a "New" badge inside the latest changelog card when the entry was published within the last 7 days and the user hasn't clicked it yet.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## staging #2701 +/- ##
===========================================
- Coverage 45.40% 43.89% -1.52%
===========================================
Files 1159 593 -566
Lines 24275 14613 -9662
Branches 7101 4319 -2782
===========================================
- Hits 11022 6414 -4608
+ Misses 11328 7053 -4275
+ Partials 1925 1146 -779
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Adds a “New” badge to the latest changelog entry on the organization overview page, with persistence via localStorage and an age-based auto-hide, plus a small tooling fix for Prettier ignore patterns.
Changes:
- Track whether the latest changelog entry has been “seen” via localStorage and conditionally render a “New” badge.
- Auto-hide the “New” badge when the latest changelog is older than 7 days.
- Update
.prettierignoreto exclude.claude/worktreesto avoid Prettier EISDIR issues.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| libs/domains/organizations/feature/src/lib/organization-overview/section-changelog/section-changelog.tsx | Adds “New” badge logic for the latest changelog entry using localStorage + 7-day freshness window. |
| .prettierignore | Ignores .claude/worktrees to prevent Prettier from traversing worktree directories. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🎉 This PR is included in version 1.308.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
.prettierignoreto exclude.claude/worktrees(was causing pre-commit hook EISDIR crashes for devs using Claude Code worktrees)Test plan
firstPublishedAtto more than 7 days ago — badge does not appear