Skip to content

feat: add unread badge label formatting utility - #305

Open
yashkhare0 wants to merge 1 commit into
mainfrom
feat/unread-badge-label-utils
Open

feat: add unread badge label formatting utility#305
yashkhare0 wants to merge 1 commit into
mainfrom
feat/unread-badge-label-utils

Conversation

@yashkhare0

Copy link
Copy Markdown
Collaborator

Summary\n- add utility for compact unread pill labels\n- cap high counts at and hide non-positive/invalid values\n- include focused Vitest coverage for edge cases\n\n## Why\nUnread badges are used frequently in chat sidebars. A single utility keeps behavior consistent and avoids subtle inconsistencies across components.\n\n## Testing\n- bun run test:frontend -- unread-badge.test.ts

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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