grafana / explore-profiles

Explore Profiles is a native Grafana application designed to integrate seamlessly with Pyroscope, the open-source continuous profiling platform, providing a smooth, query-less experience for browsing and analyzing profiling data.
GNU Affero General Public License v3.0
18 stars 1 forks source link

feat(DiffView): Add CTAs and comparison presets #231

Open grafakus opened 1 week ago

grafakus commented 1 week ago

✨ Description

Related issue(s): relates to https://github.com/grafana/explore-profiles/issues/224

This PR adds two call to actions when the user lands on the view:

Before After
image image

Additionally, it introduces the new Comparison presets dropdown to help our users to quickly select different time periods:

image

Currently, we only provide 4 built-in presets:

  1. Last hour (30m-window)
  2. Last hour (1h-window)
  3. 6h ago vs now (30m-window)
  4. 24h ago vs now (30m-window)

📖 Summary of the changes

See diff tab.

🧪 How to test?

github-actions[bot] commented 1 week ago

Unit test coverage

Lines Statements Branches Functions
Coverage: 11%
11.66% (447/3833) 9.07% (123/1355) 8.52% (104/1220)