Skip to content

adding sort to user projects #3752

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

Closed
wants to merge 2 commits into from

Conversation

lullaby6
Copy link

@lullaby6 lullaby6 commented Jun 7, 2025

Hello!

I always thought that I would like a sorting in the user profile projects, so I tried to add it, I hope you like the code.

image

@Prospector
Copy link
Member

the code for this is nonsense, using the search routes on the user page for no reason and it does not actually function in any way.

@Prospector Prospector closed this Jun 11, 2025
@lullaby6
Copy link
Author

the code for this is nonsense, using the search routes on the user page for no reason and it does not actually function in any way.

of course it won't work, it's just the frontend part, you need to add the logic and filters to the endpoint.

@Prospector
Copy link
Member

this feature does not require any backend code, and the frontend code that was added doesn't make any sense

@lullaby6
Copy link
Author

this feature does not require any backend code, and the frontend code that was added doesn't make any sense

can you check it now?
I reassign the projects.value and use nextTick to force the ui to update, so, now it renders what comes from the backend with the filters applied, I don't understand why it wouldn't work now :s

https://github.com/lullaby6/modrinth-frontend-sort-user-projects/commit/18068da193db0fef8a763e3bcf6a6b0b203ca7e3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants