From 4bd5d4807c6c4b0b3ac87fea11597719839c21a3 Mon Sep 17 00:00:00 2001 From: Xavier Brochard Date: Tue, 20 Oct 2026 00:35:26 +0200 Subject: [PATCH 1/2] feat: support trending feed scope --- .../src/SocialService-method-action-types.ts | 3 ++- packages/social-controllers/src/SocialService.ts | 3 ++- packages/social-controllers/src/social-types.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/social-controllers/src/SocialService-method-action-types.ts b/packages/social-controllers/src/SocialService-method-action-types.ts index 237cb2fdad0..19fe31e4074 100644 --- a/packages/social-controllers/src/SocialService-method-action-types.ts +++ b/packages/social-controllers/src/SocialService-method-action-types.ts @@ -132,7 +132,8 @@ export type SocialServiceFetchPositionByIdAction = { * `pagination.newerCursor` as `newerThan` to fetch newer items. * * @param options - Options bag. - * @param options.scope - `following` (default) or `leaderboard`. + * @param options.scope - `following` (default), `leaderboard`, `all`, or + * `trending`. * @param options.chains - Filter by one or more chains. * @param options.limit - Number of results per page. * @param options.olderThan - Cursor for older items (scroll down). diff --git a/packages/social-controllers/src/SocialService.ts b/packages/social-controllers/src/SocialService.ts index db30c2a300e..f6085e6e57b 100644 --- a/packages/social-controllers/src/SocialService.ts +++ b/packages/social-controllers/src/SocialService.ts @@ -766,7 +766,8 @@ export class SocialService extends BaseDataService< * `pagination.newerCursor` as `newerThan` to fetch newer items. * * @param options - Options bag. - * @param options.scope - `following` (default) or `leaderboard`. + * @param options.scope - `following` (default), `leaderboard`, `all`, or + * `trending`. * @param options.chains - Filter by one or more chains. * @param options.limit - Number of results per page. * @param options.olderThan - Cursor for older items (scroll down). diff --git a/packages/social-controllers/src/social-types.ts b/packages/social-controllers/src/social-types.ts index 8eddfd79105..0bea11ea1e6 100644 --- a/packages/social-controllers/src/social-types.ts +++ b/packages/social-controllers/src/social-types.ts @@ -694,7 +694,7 @@ export type FetchFeedOptions = { newerThan?: string; }; -export type FeedScope = 'following' | 'leaderboard' | 'all'; +export type FeedScope = 'following' | 'leaderboard' | 'all' | 'trending'; export type FetchPositionByIdOptions = { /** Unique position ID (UUID). */ From 7db64f75320e08cf21a0d0869dc5917ff7fe8837 Mon Sep 17 00:00:00 2001 From: Xavier Brochard Date: Tue, 20 Oct 2026 00:39:11 +0200 Subject: [PATCH 2/2] chore: document trending feed scope Co-authored-by: Cursor --- packages/social-controllers/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/social-controllers/CHANGELOG.md b/packages/social-controllers/CHANGELOG.md index 3dd0f67fad8..18788aa8408 100644 --- a/packages/social-controllers/CHANGELOG.md +++ b/packages/social-controllers/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add optional `createdAt` to `TraderProfile`. `fetchTraderProfile` accepts an ISO-8601 timestamp, or `null`, on `GET /traders/:addressOrId/profile` and still accepts responses that omit it ([#10877](https://github.com/MetaMask/core/pull/10877)) - Add the shared `all` feed scope to `FetchFeedOptions` and export `FeedScope`. Preserve optional `eventId`, `revision`, and `occurredAt` projection metadata on `FeedItem` ([#10865](https://github.com/MetaMask/core/pull/10865)) +- Add the `trending` feed scope to `FetchFeedOptions` and export `FeedScope` for policy-filtered trending feed reads ([#10895](https://github.com/MetaMask/core/pull/10895)) ### Changed