[PR #882] [MERGED] fix: document count period filter #1230

Closed
opened 2026-02-26 19:32:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/882
Author: @dguyen
Created: 1/29/2024
Status: Merged
Merged: 1/31/2024
Merged by: @dguyen

Base: mainHead: fix/document-count-period-filter


📝 Commits (1)

  • 5b9f8b6 fix: document count period filter

📊 Changes

4 files changed (+32 additions, -9 deletions)

View changed files

📝 apps/web/src/app/(dashboard)/documents/page.tsx (+6 -5)
📝 apps/web/src/components/(dashboard)/period-selector/types.ts (+1 -1)
📝 packages/lib/server-only/document/find-documents.ts (+3 -1)
📝 packages/lib/server-only/document/get-stats.ts (+22 -2)

📄 Description

Description

Currently the count for the documents table tabs do not display the correct values when the period filter is applied.

Changes Made

  • Updated getStats to support filtering on period

Testing Performed

  • Tested to see if the documents tab count were being filtered based on the period

Checklist

  • I have tested these changes locally and they work as expected.
  • I have followed the project's coding style guidelines.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/882 **Author:** [@dguyen](https://github.com/dguyen) **Created:** 1/29/2024 **Status:** ✅ Merged **Merged:** 1/31/2024 **Merged by:** [@dguyen](https://github.com/dguyen) **Base:** `main` ← **Head:** `fix/document-count-period-filter` --- ### 📝 Commits (1) - [`5b9f8b6`](https://github.com/documenso/documenso/commit/5b9f8b68da1fbe3689709b725e7b887ad02a56c6) fix: document count period filter ### 📊 Changes **4 files changed** (+32 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/src/app/(dashboard)/documents/page.tsx` (+6 -5) 📝 `apps/web/src/components/(dashboard)/period-selector/types.ts` (+1 -1) 📝 `packages/lib/server-only/document/find-documents.ts` (+3 -1) 📝 `packages/lib/server-only/document/get-stats.ts` (+22 -2) </details> ### 📄 Description ## Description Currently the count for the documents table tabs do not display the correct values when the period filter is applied. ## Changes Made - Updated `getStats` to support filtering on period ## Testing Performed - Tested to see if the documents tab count were being filtered based on the period ## Checklist - [X] I have tested these changes locally and they work as expected. - [X] I have followed the project's coding style guidelines. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:32:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1230
No description provided.