Frontend: link "Pending" friend-request button to My Connections#9181
Merged
Conversation
Clicking the "Pending" button on a profile now navigates to the My Connections page with a `?friend-id=<userId>` query param instead of opening an inline accept/dismiss menu, so the user can respond there and review other open requests. The connections page reads `friend-id` (renamed from the unused `from` param added in #9042) to detect the targeted request, shows the existing "no longer available" alert when it's gone, and now smoothly scrolls the matching request card into view. Co-authored-by: Tristan Labelle <tristanlabelle@users.noreply.github.com>
Member
Web (Vercel)View the Vercel web preview for this branch. Backend
Other
|
Member
|
@tristanlabelle Wanna send me a friend request to my stage account so I can see it? Username is @nabramow on staging. |
Contributor
Author
|
@nabramow Sent you a friend request on NEXT! Protip: That's why I have tristanlabelle and tristanlabelle2 :) |
Contributor
📝 Release NotesThis PR should be included in the release notes. Suggested release note: 🤖 Bot Debug InformationModel: |
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.
When visiting the profile page of user who sent you a friend request, the "pending" button now sends you to My Connections and scrolls to the request of interest.
Resolves #9130.
With help from Claude Code
Testing
Ran local frontend. Made my browser window tiny to observe the scrolling effect.
Web frontend checklist
For maintainers