Skip to content

Commit

Permalink
improvement(graphs): add more date filters
Browse files Browse the repository at this point in the history
We often need to peek 2 years back for more comprehensive view.
Added 1 year and 2 year date filters.
  • Loading branch information
soyacz committed Dec 20, 2024
1 parent 8fb4b27 commit f0a284b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/TestRun/ResultsGraphs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,16 @@
on:click={() => dateRange = 6}>
Last 6 Months
</button>
<button class="btn btn-outline-primary btn-sm"
class:active={dateRange === 12}
on:click={() => dateRange = 12}>
Last year
</button>
<button class="btn btn-outline-primary btn-sm"
class:active={dateRange === 24}
on:click={() => dateRange = 24}>
Last 2 years
</button>
<button class="btn btn-outline-primary btn-sm"
on:click={() => dateRange = -1}
class:active={showCustomInputs}>
Expand Down

0 comments on commit f0a284b

Please sign in to comment.