Skip to content

Add family library search filters to store search - #2351

Open
Pedro-V wants to merge 2 commits into
IsThereAnyDeal:developfrom
Pedro-V:feature/family-shared-search-filter
Open

Add family library search filters to store search#2351
Pedro-V wants to merge 2 commits into
IsThereAnyDeal:developfrom
Pedro-V:feature/family-shared-search-filter

Conversation

@Pedro-V

@Pedro-V Pedro-V commented Jul 8, 2026

Copy link
Copy Markdown

Adds two client-side filters to the search page filter block for people who share a Steam Family.

Filters

  • Hide games shared with my Family - games playable through Steam Family Sharing.
  • Hide games owned by my Family - every game owned by another family member, including titles that cannot be shared (EA, Rockstar, and similar).

Together with Steam''s own "hide items in my library" this lets you drop everything already available within the family from the results.

Implementation

  • Shared list comes from IFamilyGroupsService/GetSharedLibraryApps (include_own=false).
  • Owned list is the union of IPlayerService/GetOwnedGames across the other family members. GetSharedLibraryApps only returns the shareable subset, so non-shareable titles that still appear in the client Family view would otherwise be missed.
  • Both run in the background using the webapi token from the content script and are cached in a dedicated familyLibrary IndexedDB store. The per-member requests use Promise.allSettled, so a member with a private profile (where GetOwnedGames returns EResultAccessDenied) or a transient error does not throw away the rest of the result. The fetch is warmed on page load so the filters apply without a visible delay when toggled.
  • New SteamWebApi background module and SteamWebApiFacade. Two SimpleSearchFilter subclasses share a single memoized fetch. Rows are tagged with as-hide-familyshared / as-hide-familyowned and hidden via CSS, same as the existing filters. No new permissions.
  • FSearchFilters now returns early when the advanced search sidebar is not present (narrow layouts) instead of throwing.

Testing

Tested on Firefox and Chrome while logged into an account that is part of a Steam Family: shared and owned games are hidden as expected, non-family games are left alone, and a family member with a private game library is handled without errors.

@Pedro-V
Pedro-V force-pushed the feature/family-shared-search-filter branch from ebfc9f9 to c90e907 Compare July 8, 2026 16:27
@Pedro-V
Pedro-V marked this pull request as ready for review July 8, 2026 16:29
@Pedro-V
Pedro-V force-pushed the feature/family-shared-search-filter branch from c90e907 to 326020b Compare July 8, 2026 17:09
@Pedro-V Pedro-V changed the title Add search filter to hide family shared games Add search filters for Steam Family libraries Jul 8, 2026
@Pedro-V
Pedro-V force-pushed the feature/family-shared-search-filter branch 4 times, most recently from f8b438d to e3994a7 Compare July 9, 2026 00:00
Pedro-V added 2 commits July 10, 2026 01:29
Two client-side filters in the search page filter block:

- "Hide games shared with my Family": games playable through Steam
  Family Sharing (IFamilyGroupsService/GetSharedLibraryApps).
- "Hide games owned by my Family": every game owned by another family
  member, including titles that are not shareable (EA, Rockstar, etc).
  Built from the union of IPlayerService/GetOwnedGames across the other
  members, since GetSharedLibraryApps only returns the shareable subset.

Both lists are fetched in the background with the user webapi token and
cached in a dedicated familyLibrary IndexedDB store. Per-member requests
use Promise.allSettled so a private member profile (GetOwnedGames
answers with EResultAccessDenied) or a transient error does not discard
the rest of the result. The fetch is warmed on page load so toggling
applies without a delay.

FSearchFilters returns early when the advanced search sidebar is not
present (narrow layouts) instead of throwing.
@Pedro-V
Pedro-V force-pushed the feature/family-shared-search-filter branch from e3994a7 to 8927603 Compare July 10, 2026 04:30
@Pedro-V Pedro-V changed the title Add search filters for Steam Family libraries Add family library search filters to store search Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant