Skip to content

feat(overview): add "New" badge on latest changelog entry#2701

Merged
rmnbrd merged 2 commits into
stagingfrom
feat/changelog-new-badge
May 21, 2026
Merged

feat(overview): add "New" badge on latest changelog entry#2701
rmnbrd merged 2 commits into
stagingfrom
feat/changelog-new-badge

Conversation

@acarranoqovery
Copy link
Copy Markdown
Contributor

Summary

  • Adds a "New" badge inside the latest changelog card on the organization overview page
  • Badge disappears when the user clicks the changelog entry
  • Badge auto-hides if the changelog was published more than 7 days ago
  • Also fixes .prettierignore to exclude .claude/worktrees (was causing pre-commit hook EISDIR crashes for devs using Claude Code worktrees)

Test plan

  • Visit the overview page — "New" badge appears on the latest changelog card (if published within the last 7 days)
  • Click the changelog card — badge disappears and does not reappear on return
  • Publish a new changelog entry — badge reappears
  • Set firstPublishedAt to more than 7 days ago — badge does not appear

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
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

❌ Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.89%. Comparing base (3e4cb08) to head (91f76bf).

Files with missing lines Patch % Lines
...n-overview/section-changelog/section-changelog.tsx 0.00% 14 Missing ⚠️
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     
Flag Coverage Δ
unittests 43.89% <0.00%> (-1.52%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 .prettierignore to exclude .claude/worktrees to 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.

@rmnbrd rmnbrd merged commit 75c1efe into staging May 21, 2026
10 of 11 checks passed
@rmnbrd rmnbrd deleted the feat/changelog-new-badge branch May 21, 2026 15:08
@RemiBonnet
Copy link
Copy Markdown
Member

🎉 This PR is included in version 1.308.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants