Currently, when a user is browsing a specific timeframe on the leaderboard (e.g. Weekly, Monthly, or Daily) and clicks Compare, the Compare Modal always opens with the Overall timeframe selected.
Instead, the modal should automatically inherit the currently selected leaderboard timeframe. For example:
- If the user is viewing the Weekly leaderboard, the Compare Modal should open with the Weekly graphs selected.
- If the user is viewing the Monthly leaderboard, the Compare Modal should open with the Monthly graphs selected.
- and so on
This provides a more seamless user experience by preserving the user's context and eliminating the need to manually switch timeframes after opening the modal.
Implementation Steps
- Determine the currently selected leaderboard timeframe when the Compare button is clicked.
- Pass that timeframe to the Compare Modal during initialisation.
- Initialise the modal with the corresponding graph tab already selected instead of always defaulting to
overall.
- Ensure manual tab switching inside the Compare Modal continues to work as before.
Currently, when a user is browsing a specific timeframe on the leaderboard (e.g. Weekly, Monthly, or Daily) and clicks Compare, the Compare Modal always opens with the Overall timeframe selected.
Instead, the modal should automatically inherit the currently selected leaderboard timeframe. For example:
This provides a more seamless user experience by preserving the user's context and eliminating the need to manually switch timeframes after opening the modal.
Implementation Steps
overall.