Add more features to feature usage counter (#40258)

This commit is contained in:
Eugen Rochko
2026-08-24 11:20:00 +00:00
committed by GitHub
parent 7e3bd2e8c5
commit 71504e6488
4 changed files with 8 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ export const Card: React.FC<{ id: string; source: SuggestionSource }> = ({
title={intl.formatMessage(messages.dismiss)}
className='explore-suggestions-card__dismiss-button'
/>
<FollowButton accountId={account.get('id')} />
<FollowButton accountId={account.get('id')} reference='suggestions' />
</div>
</div>
</div>

View File

@@ -158,7 +158,7 @@ const Card: React.FC<{
)}
</div>
<FollowButton accountId={id} />
<FollowButton accountId={id} reference='inline_suggestions' />
</div>
);
};

View File

@@ -46,7 +46,9 @@ const hidePeek = <T,>(list: T[]) => {
};
const renderAccounts = (accountIds: string[]) =>
hidePeek<string>(accountIds).map((id) => <Account key={id} id={id} />);
hidePeek<string>(accountIds).map((id) => (
<Account key={id} id={id} reference='search' />
));
const renderHashtags = (hashtags: HashtagType[]) =>
hidePeek<HashtagType>(hashtags).map((hashtag) => (

View File

@@ -9,8 +9,11 @@ class FeatureUsageTracker
REF_VALUES = %w(
collection
inline_suggestions
onboarding
profile
search
suggestions
).freeze
EXPIRE_AFTER = 6.months.seconds