Add 'Manage Pending Invites' on friends/pending page - #2369
Open
ImBIOS wants to merge 1 commit into
Open
Conversation
Adds a 'Manage Pending Invites' button to the Sent Invites title bar on the friends/pending page, toggling a selection mode over both received and sent invite rows with Select All/None/Inverse and bulk actions: - Accept: POST /actions/AddFriendAjax (accept_invite=1), per invite - Ignore: POST friends/action action=ignore_invite (bulk) - Cancel Invites: POST friends/action action=remove (bulk, with confirm) Reuses Steam's manage_friends_panel styles and .selectable.manage row markup. Own profile only.
ImBIOS
marked this pull request as ready for review
August 18, 2026 08:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes/relates to: #2368
What
Adds a "Manage Pending Invites" mode to
steamcommunity.com/<id>/friends/pending, mirroring Steam's native "Manage Friends List" on/friends.The Manage Pending Invites button is placed in the Sent Invites title bar. Toggling it enters a selection mode over both received (
#search_results) and sent (#search_results_sentinvites) invite rows, showing a manage panel (reusing Steam'smanage_friends_panelstyles) with:POST /actions/AddFriendAjaxwithaccept_invite=1, per invite (Steam has no bulk accept endpoint)POST friends/actionaction=ignore_invite(same as Steam's "Ignore All")POST friends/actionaction=remove(same as Steam's per-rowConfirmCancelInvite)Why
Steam's
/friends/pendinghas no manage mode: sent invites can only be cancelled one-by-one (each with a confirm dialog), and there's no way to bulk-accept/ignore received invites beyond the all-or-nothing "Ignore All". Users with many pending sent invites have to click through each one.Technical notes
.selectable.invite_row+.select_friendcheckbox,data-steamid), and adding the.manageclass shows the checkbox indicator (Steam CSS:.selectable.manage .indicator).ToggleManageFriends()only styles#search_results > .selectable(received); sent invites need the.manageclass applied explicitly, so this feature implements its own toggle (no page-context scriptlet needed, nog_bManagedependency).checkPrerequisites).CFriendsAndGroups(context already matches/friends/pending).Status
Draft — UI placement, manage toggle, selection and empty-state handling verified live against the real page via a non-invasive DOM injection (no extension loaded, no data changes). The bulk AJAX calls mirror Steam's own
friends.js/profile.jsendpoints exactly. Live end-to-end testing of the actual POST actions (Accept/Ignore/Cancel) still pending.