From ec9e3646c4259649d9b0a5b7f12a8120d242c91d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 17 Jul 2020 13:46:06 +1000 Subject: [PATCH] add range selectors to answer button and hour graphs --- ts/src/stats/AddedGraph.svelte | 30 +++++------------------- ts/src/stats/ButtonsGraph.svelte | 14 ++++++++--- ts/src/stats/FutureDue.svelte | 35 +++++----------------------- ts/src/stats/GraphRangeRadios.svelte | 33 ++++++++++++++++++++++++++ ts/src/stats/GraphsPage.svelte | 8 +++---- ts/src/stats/HourGraph.svelte | 14 ++++++++--- ts/src/stats/ReviewsGraph.svelte | 32 +++++-------------------- ts/src/stats/added.ts | 18 +++++--------- ts/src/stats/buttons.ts | 23 ++++++++++++++---- ts/src/stats/future-due.ts | 18 +++++--------- ts/src/stats/graphs.ts | 32 +++++++++++++++++++++++++ ts/src/stats/hours.ts | 26 +++++++++++++-------- ts/src/stats/reviews.ts | 19 +++++---------- 13 files changed, 162 insertions(+), 140 deletions(-) create mode 100644 ts/src/stats/GraphRangeRadios.svelte diff --git a/ts/src/stats/AddedGraph.svelte b/ts/src/stats/AddedGraph.svelte index b9c500324..ac6eeebaa 100644 --- a/ts/src/stats/AddedGraph.svelte +++ b/ts/src/stats/AddedGraph.svelte @@ -1,18 +1,19 @@ @@ -35,22 +32,7 @@

{title}

- - - - +
{subtitle}
diff --git a/ts/src/stats/ButtonsGraph.svelte b/ts/src/stats/ButtonsGraph.svelte index 649d81674..810aced48 100644 --- a/ts/src/stats/ButtonsGraph.svelte +++ b/ts/src/stats/ButtonsGraph.svelte @@ -1,20 +1,24 @@ @@ -47,22 +39,7 @@ {backlogLabel} - - - - +
{subtitle}
diff --git a/ts/src/stats/GraphRangeRadios.svelte b/ts/src/stats/GraphRangeRadios.svelte new file mode 100644 index 000000000..5e2346e54 --- /dev/null +++ b/ts/src/stats/GraphRangeRadios.svelte @@ -0,0 +1,33 @@ + + + + + +{#if revlogRange === RevlogRange.All} + +{/if} diff --git a/ts/src/stats/GraphsPage.svelte b/ts/src/stats/GraphsPage.svelte index 905683b87..b314a024d 100644 --- a/ts/src/stats/GraphsPage.svelte +++ b/ts/src/stats/GraphsPage.svelte @@ -138,11 +138,11 @@ - + - - - + + + {/if} diff --git a/ts/src/stats/HourGraph.svelte b/ts/src/stats/HourGraph.svelte index 7cd296722..ac984fb87 100644 --- a/ts/src/stats/HourGraph.svelte +++ b/ts/src/stats/HourGraph.svelte @@ -1,20 +1,24 @@