juspay/hyperswitch

[FEATURE] Auto extend date for search in existing filter in analytics

Open

#6,010 创建于 2024年9月10日

在 GitHub 查看
 (9 评论) (0 反应) (1 负责人)Rust (4,676 fork)batch import
E-easygood first issuehacktoberfesthelp wantedhyperswitch-control-centrerescripttailwind

仓库指标

Star
 (42,690 star)
PR 合并指标
 (平均合并 6天 22小时) (30 天内合并 213 个 PR)

描述

📝 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.

贡献者指南