[GH-ISSUE #610] [Bug] Days filter not working #167

Closed
opened 2026-02-26 18:45:40 +03:00 by kerem · 2 comments
Owner

Originally created by @Abhinav-Developer-23 on GitHub (Oct 30, 2023).
Original GitHub issue: https://github.com/documenso/documenso/issues/610

Originally assigned to: @Abhinav-Developer-23 on GitHub.

The days filter on the dashboard is not working

Steps to Reproduce

  1. Go to https://stg-app.documenso.com/documents?status=COMPLETED&period=7d&page=1&perPage=50
  2. increase rows per page to 50
  3. click on last 7 days

Expected Behavior

It should show documents created in the last 7 days

Current Behavior

It shows all documents

Screenshots (optional)

https://github.com/documenso/documenso/assets/145282438/5a9bd157-2cfc-486a-9be2-48695678ad69

Environment

  • OS: Ubuntu
  • Browser: Chrome

Checklist

  • I have searched the existing issues to make sure this is not a duplicate.
  • I have provided steps to reproduce the issue.
  • I have included relevant environment information.
  • I have included any relevant screenshots.
  • I understand that this is a voluntary contribution and that there is no guarantee of resolution.
Originally created by @Abhinav-Developer-23 on GitHub (Oct 30, 2023). Original GitHub issue: https://github.com/documenso/documenso/issues/610 Originally assigned to: @Abhinav-Developer-23 on GitHub. The days filter on the dashboard is not working ## Steps to Reproduce 1. Go to https://stg-app.documenso.com/documents?status=COMPLETED&period=7d&page=1&perPage=50 2. increase rows per page to 50 3. click on last 7 days ## Expected Behavior It should show documents created in the last 7 days ## Current Behavior It shows all documents ## Screenshots (optional) https://github.com/documenso/documenso/assets/145282438/5a9bd157-2cfc-486a-9be2-48695678ad69 ## Environment <!--- Please provide information about your environment, such as operating system, browser, version, etc. --> - OS: Ubuntu - Browser: Chrome ## Checklist - [x] I have searched the existing issues to make sure this is not a duplicate. - [x] I have provided steps to reproduce the issue. - [x] I have included relevant environment information. - [x] I have included any relevant screenshots. - [x] I understand that this is a voluntary contribution and that there is no guarantee of resolution.
Author
Owner

@Abhinav-Developer-23 commented on GitHub (Oct 30, 2023):

I would like to work on this.

<!-- gh-comment-id:1785495005 --> @Abhinav-Developer-23 commented on GitHub (Oct 30, 2023): I would like to work on this.
Author
Owner

@Mythie commented on GitHub (Oct 31, 2023):

Go for it! This should involve creating a type guard for the period param to ensure it's one of [7d, 14d, 30d] and then passing it along to the findDocuments method.

With that we should be able to use Luxon to subtract the number of days from the period.

<!-- gh-comment-id:1786396331 --> @Mythie commented on GitHub (Oct 31, 2023): Go for it! This should involve creating a type guard for the `period` param to ensure it's one of `[7d, 14d, 30d]` and then passing it along to the `findDocuments` method. With that we should be able to use Luxon to subtract the number of days from the period.
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#167
No description provided.