From e736261056d531a2742984954c7506512aba4068 Mon Sep 17 00:00:00 2001 From: Catalin Pit <25515812+catalinpit@users.noreply.github.com> Date: Fri, 4 Oct 2024 09:07:20 +0300 Subject: [PATCH] fix: show the full count of documents (#1382) ![doc-count](https://github.com/user-attachments/assets/aad4fe92-e2d8-4b78-ac93-5f6ada73b03a) A client requested it, and it makes sense showing the full count. This is how it was before. ![CleanShot 2024-10-04 at 08 47 16@2x](https://github.com/user-attachments/assets/bd4c97a5-1805-4faa-bae7-feeb932ed614) ## Summary by CodeRabbit - **New Features** - Updated document status tab counts to display actual numbers without capping at 99 or using '+' symbols. - **Bug Fixes** - Improved clarity and accuracy of document status counts in the user interface. --- .../src/app/(dashboard)/documents/documents-page-view.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/web/src/app/(dashboard)/documents/documents-page-view.tsx b/apps/web/src/app/(dashboard)/documents/documents-page-view.tsx index aa65f5ce8..08bc44ec5 100644 --- a/apps/web/src/app/(dashboard)/documents/documents-page-view.tsx +++ b/apps/web/src/app/(dashboard)/documents/documents-page-view.tsx @@ -135,10 +135,7 @@ export const DocumentsPageView = async ({ searchParams = {}, team }: DocumentsPa {value !== ExtendedDocumentStatus.ALL && ( - - {Math.min(stats[value], 99)} - {stats[value] > 99 && '+'} - + {stats[value]} )}