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

fix(explorer): sort group response by id in ascending order #28

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

tb38r
Copy link
Contributor

@tb38r tb38r commented Dec 10, 2024

previously displayed group response objects inconsistently, change offers better readability to users

Description

Group response objects weren't sorted prior, as a result, the ordering of the items were inconsistent.

Fix (readability)

Items now displayed in ascending order by ID on the homepage

Screenshot 2024-12-10 at 15 11 21

The parseInt function takes a radix as an optional second param, I've used 10 so as to satisfy the linter. Considered using - Number(a.id) - Number(b.id) - instead to convert the string to int but for the possibility of it returning NaN. ParseInt will always return a number and therefore minimise further issues arising.

Before

Screenshot 2024-12-10 at 15 26 23

After

Screenshot 2024-12-10 at 15 16 53 **

previously displayed group response objects inconsistently, change offers better readability to
users
@tb38r tb38r requested a review from a team as a code owner December 10, 2024 15:17
Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
semaphore-benchmarks ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 10, 2024 3:20pm
semaphore-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 10, 2024 3:20pm

Copy link
Member

@cedoor cedoor left a comment

Choose a reason for hiding this comment

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

Thanks @tb38r! LGTM

@cedoor cedoor merged commit 72590e7 into semaphore-protocol:main Dec 10, 2024
5 checks passed
Copy link

gitpoap-bot bot commented Dec 10, 2024

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2024 Semaphore Contributor:

GitPOAP: 2024 Semaphore Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

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.

2 participants