Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

❇️ Team member search #308

Merged
merged 5 commits into from
Mar 9, 2025
Merged

❇️ Team member search #308

merged 5 commits into from
Mar 9, 2025

Conversation

foysalit
Copy link
Contributor

@foysalit foysalit commented Mar 3, 2025

Depends on bluesky-social/atproto#3587

This PR adds search feature on team member page and uses the newly available search api in other places where full team member list was being loaded to allow searching by handle/name.

Adds some refactors in usage of getProfiles and fixes formatting issue in user info copy feature.

Screen.Recording.2025-03-03.at.14.07.49.mov

Comment on lines +42 to +48
const url = new URL(window.location.href.replace(window.location.search, ''))

Object.entries({ tab: 'members', ...queryParams }).forEach(([key, value]) => {
url.searchParams.set(key, value)
})

return url.toString()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you known ?

Suggested change
const url = new URL(window.location.href.replace(window.location.search, ''))
Object.entries({ tab: 'members', ...queryParams }).forEach(([key, value]) => {
url.searchParams.set(key, value)
})
return url.toString()
const url = new URL(window.location.href)
url.search = new URLSearchParams(Object.entries({ tab: 'members', ...queryParams })).toString()
return url.toString()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah but this loses any already existing params that may already exist in the url, right? we want to keep all params and only add the ones that queryParams adds.

@arcalinea arcalinea temporarily deployed to team-member-search - ozone-staging PR #308 March 9, 2025 16:27 — with Render Destroyed
@foysalit foysalit merged commit 0c1c13b into main Mar 9, 2025
3 checks passed
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.

3 participants