juspay/hyperswitch

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

Open

#6 010 ouverte le 10 sept. 2024

Voir sur GitHub
 (9 commentaires) (0 réactions) (1 assigné)Rust (4 676 forks)batch import
E-easygood first issuehacktoberfesthelp wantedhyperswitch-control-centrerescripttailwind

Métriques du dépôt

Stars
 (42 690 stars)
Métriques de merge PR
 (Merge moyen 6j 22h) (213 PRs mergées en 30 j)

Description

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

Guide contributeur