From 71504e648816acae7c529fd543ffe6f986f39b2a Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 24 Aug 2026 11:20:00 +0000 Subject: [PATCH] Add more features to feature usage counter (#40258) --- app/javascript/mastodon/features/explore/components/card.tsx | 2 +- .../home_timeline/components/inline_follow_suggestions.tsx | 2 +- app/javascript/mastodon/features/search/index.tsx | 4 +++- app/lib/feature_usage_tracker.rb | 3 +++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/javascript/mastodon/features/explore/components/card.tsx b/app/javascript/mastodon/features/explore/components/card.tsx index 9cf128100ec..a0e28869aee 100644 --- a/app/javascript/mastodon/features/explore/components/card.tsx +++ b/app/javascript/mastodon/features/explore/components/card.tsx @@ -116,7 +116,7 @@ export const Card: React.FC<{ id: string; source: SuggestionSource }> = ({ title={intl.formatMessage(messages.dismiss)} className='explore-suggestions-card__dismiss-button' /> - + diff --git a/app/javascript/mastodon/features/home_timeline/components/inline_follow_suggestions.tsx b/app/javascript/mastodon/features/home_timeline/components/inline_follow_suggestions.tsx index 2d849b46ffb..86634dc5334 100644 --- a/app/javascript/mastodon/features/home_timeline/components/inline_follow_suggestions.tsx +++ b/app/javascript/mastodon/features/home_timeline/components/inline_follow_suggestions.tsx @@ -158,7 +158,7 @@ const Card: React.FC<{ )} - + ); }; diff --git a/app/javascript/mastodon/features/search/index.tsx b/app/javascript/mastodon/features/search/index.tsx index 530b7eb598b..d64878df4cd 100644 --- a/app/javascript/mastodon/features/search/index.tsx +++ b/app/javascript/mastodon/features/search/index.tsx @@ -46,7 +46,9 @@ const hidePeek = (list: T[]) => { }; const renderAccounts = (accountIds: string[]) => - hidePeek(accountIds).map((id) => ); + hidePeek(accountIds).map((id) => ( + + )); const renderHashtags = (hashtags: HashtagType[]) => hidePeek(hashtags).map((hashtag) => ( diff --git a/app/lib/feature_usage_tracker.rb b/app/lib/feature_usage_tracker.rb index aa62c353533..e36d0e2ce3e 100644 --- a/app/lib/feature_usage_tracker.rb +++ b/app/lib/feature_usage_tracker.rb @@ -9,8 +9,11 @@ class FeatureUsageTracker REF_VALUES = %w( collection + inline_suggestions onboarding profile + search + suggestions ).freeze EXPIRE_AFTER = 6.months.seconds