diff --git a/app/helpers/entropy_helper.rb b/app/helpers/entropy_helper.rb index 83fcf30be..c9cb66699 100644 --- a/app/helpers/entropy_helper.rb +++ b/app/helpers/entropy_helper.rb @@ -15,7 +15,8 @@ module EntropyHelper if card.last_activity_spike_at { stalledAfterDays: card.entropy.days_before_reminder, - lastActivitySpikeAt: card.last_activity_spike_at.iso8601 + lastActivitySpikeAt: card.last_activity_spike_at.iso8601, + action: "Stalled" } end end diff --git a/app/javascript/controllers/bubble_controller.js b/app/javascript/controllers/bubble_controller.js index 4b2a7a66c..e841ffaab 100644 --- a/app/javascript/controllers/bubble_controller.js +++ b/app/javascript/controllers/bubble_controller.js @@ -56,7 +56,11 @@ export default class extends Controller { } #showStalled() { - this.#toggleDisplayedContainer(false) + this.entropyTopTarget.innerHTML = "Stalled for" + this.entropyDaysTarget.innerHTML = signedDifferenceInDays(new Date(this.stalledValue.lastActivitySpikeAt), new Date()) + this.entropyBottomTarget.innerHTML = "days" + + this.#toggleDisplayedContainer(true) } #hide() { diff --git a/app/views/cards/display/preview/_bubble.html.erb b/app/views/cards/display/preview/_bubble.html.erb index 68a59c2f9..d7c29717a 100644 --- a/app/views/cards/display/preview/_bubble.html.erb +++ b/app/views/cards/display/preview/_bubble.html.erb @@ -25,6 +25,20 @@
- 😴 + + + + + + + + + + + + + + +
<% end %>