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

Re-introduce list search for blocked and blocked by #211

Open
thieflord06 opened this issue Dec 21, 2024 · 2 comments
Open

Re-introduce list search for blocked and blocked by #211

thieflord06 opened this issue Dec 21, 2024 · 2 comments
Labels
good first issue Good for newcomers modification A change in the way a current operation works
Milestone

Comments

@thieflord06
Copy link
Member

thieflord06 commented Dec 21, 2024

We previously had to remove this feature but now that we are back stable we can bring it back. before, the search was client side because it was fetching the whole list, now it is dynamically fetching based on scroll so we will have to use the API endpoint to get the data. I would recommend we use the same autocomplete that is being used on the home page to get the handle, searching for partials is expensive.

Endpoint: /api/v1/anon/blocklist-search-blocked/{handle1}/{handle2}
Description: Get if handle 1 blocked by handle 2
Parameters: handle 1 & handle 2
Response:
{
"data":
{
"blocked_date":"2023-10-23T22:17:42.214000+00:00",
"handle":"desir.ee",
"status":true
}
}

/api/v1/anon/blocklist-search-blocking/{handle1}/{handle2}
Description: Get if handle 1 is blocked by handle 2
Parameters: handle 1 & handle 2

Response:
{
"data":
{
"blocked_date":"2024-03-05T22:40:37.498000+00:00",
"handle":"mary.my.id",
"status":true
}
}

@thieflord06
Copy link
Member Author

thieflord06 commented Dec 21, 2024

The endpoints will be changing to return "did" and "blocked_date" only (complete).

@thieflord06
Copy link
Member Author

image

@thieflord06 thieflord06 added good first issue Good for newcomers modification A change in the way a current operation works labels Dec 21, 2024
@thieflord06 thieflord06 added this to the Next UI Tasks milestone Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers modification A change in the way a current operation works
Projects
None yet
Development

No branches or pull requests

1 participant