supercharts-bullet_train 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/account/scaffolding/completely_concrete/tangible_things/tangible_things_chart_controller.rb +4 -0
- data/app/views/account/scaffolding/completely_concrete/tangible_things/tangible_things_chart/show.html.erb +4 -1
- data/lib/bullet_train/supercharts/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9a706c5a47e8966e1230f664982e9436ba4379d605f690b9b70428061defdbab
|
|
4
|
+
data.tar.gz: ce0e935206f2a993e8afef5ce1fca277fb64fffca3645f3c2fb369ca49c77836
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4c1af953ce02848c22f6b79ebd0c8076ca820fc6e7f219ad2b12854f15e8f490f7474c78072848bab9d52a6066c6a665686b2dd3ea68a9967e2a912db737b57
|
|
7
|
+
data.tar.gz: 182fbf240fd34503d60ed6415675b93102d6eb1d6b055e38a3b702f689f38642bdcbe169578a6a6bf5a3c854908799db81dd1d36d768974e4c86d58c185b6d2e
|
|
@@ -21,6 +21,10 @@ class Account::Scaffolding::CompletelyConcrete::TangibleThings::TangibleThingsCh
|
|
|
21
21
|
@period = :day
|
|
22
22
|
end
|
|
23
23
|
data = @tangible_things.group_by_period(@period, :created_at, range: range, expand_range: true).count
|
|
24
|
+
when "1w"
|
|
25
|
+
range = (1.weeks.ago)..Time.now
|
|
26
|
+
@period = :day
|
|
27
|
+
data = @tangible_things.group_by_period(@period, :created_at, range: range, expand_range: true).count
|
|
24
28
|
else
|
|
25
29
|
@period = :day
|
|
26
30
|
data = @tangible_things.group_by_period(@period, :created_at, last: 30).count
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
<div class="relative">
|
|
25
25
|
<div data-supercharts--describable-target="overallDescription">
|
|
26
26
|
<h2 class="text-xs uppercase dark:text-white/50">
|
|
27
|
-
<% if @timespan == "
|
|
27
|
+
<% if @timespan == "1w" %>
|
|
28
|
+
Tangible Things last 7 days
|
|
29
|
+
<% elsif @timespan == "1m" %>
|
|
28
30
|
Tangible Things last 31 days
|
|
29
31
|
<% elsif @timespan == "ytd" %>
|
|
30
32
|
Tangible Things since start of year
|
|
@@ -54,6 +56,7 @@
|
|
|
54
56
|
>
|
|
55
57
|
<div class="flex items-center justify-center">
|
|
56
58
|
<div class="inline-flex space-x-1" role="group">
|
|
59
|
+
<%= render "shared/supercharts/filter_button", path: polymorphic_path([:account, @absolutely_abstract_creative_concept, :tangible_things, :chart], timespan: "1w"), label: "1w", first: true %>
|
|
57
60
|
<%= render "shared/supercharts/filter_button", path: polymorphic_path([:account, @absolutely_abstract_creative_concept, :tangible_things, :chart], timespan: "1m"), label: "1m", first: true %>
|
|
58
61
|
<%= render "shared/supercharts/filter_button", path: polymorphic_path([:account, @absolutely_abstract_creative_concept, :tangible_things, :chart], timespan: "ytd"), label: "ytd", last: true %>
|
|
59
62
|
</div>
|