hyperswitch
hyperswitch copied to clipboard
[FEATURE] Auto extend date for search in existing filter in analytics
📝 Feature Description In the analytics module of Hyperswitch Control Center, when a user applies a filter or lands on a page and receives no data, we need a button to appear in the middle of the page with the label "Extend search for x days." The purpose of this button is to allow the user to dynamically extend the date range.
The value of x should be determined based on the current date range selected by the user.
For example, if the user initially searched for 7 days (e.g., from the 14th to the 21st) and found no data, clicking the button should extend the search to 7 additional days (e.g., from the 7th to the 21st).
🔨 Possible Implementation Add a button that appears dynamically when no data is found after a search. Implement logic to calculate the value of x based on the current date range. On clicking the button, update the date range and rerun the query to retrieve data from the newly extended range.
🔖 Note: All changes should be implemented within the analytics module, specifically focusing on handling no-data scenarios after filtering or page load.
Submission Process:
- Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself.
- Once assigned, submit a pull request (PR).
- Maintainers will review and provide feedback, if any.
- Maintainers can unassign issues due to inactivity, read more here.
Refer here for Terms and conditions for the contest.