diff --git a/app/services/discourse_rewind/rewind/action/favorite_tags.rb b/app/services/discourse_rewind/rewind/action/favorite_tags.rb index 30b5161..088bc2c 100644 --- a/app/services/discourse_rewind/rewind/action/favorite_tags.rb +++ b/app/services/discourse_rewind/rewind/action/favorite_tags.rb @@ -3,7 +3,20 @@ # Topics visited grouped by tag module DiscourseRewind class Rewind::Action::FavoriteTags < Rewind::Action::BaseReport + FakeData = { + data: [ + { tag_id: 1, name: "cats" }, + { tag_id: 2, name: "dogs" }, + { tag_id: 3, name: "countries" }, + { tag_id: 4, name: "management" }, + { tag_id: 5, name: "things" }, + ], + identifier: "favorite-tags", + } + def call + return FakeData if Rails.env.development? + favorite_tags = TopicViewItem .joins(:topic) diff --git a/assets/javascripts/discourse/components/reports/favorite-categories.gjs b/assets/javascripts/discourse/components/reports/favorite-categories.gjs index b71b666..05e679c 100644 --- a/assets/javascripts/discourse/components/reports/favorite-categories.gjs +++ b/assets/javascripts/discourse/components/reports/favorite-categories.gjs @@ -11,7 +11,10 @@ const FavoriteCategories =