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: sort apps alphabetically #1672

Merged
merged 2 commits into from
Feb 17, 2023
Merged

Fix: sort apps alphabetically #1672

merged 2 commits into from
Feb 17, 2023

Conversation

katspaugh
Copy link
Member

What it solves

Resolves #1669

How this PR fixes it

The apps are sorted on the client-side now (because they come unsorted from the backend).

I've also optimized the search a bit.

How to test it

Load the safe apps page and make sure it's alphabetically ordered.
Filter by category, it should be still sorted.

Analytics changes

None.

@github-actions
Copy link

github-actions bot commented Feb 16, 2023

Branch preview

✅ Deploy successful!

https://fix_apps_sort--webcore.review-web-core.5afe.dev

@github-actions
Copy link

github-actions bot commented Feb 16, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@francovenica
Copy link
Contributor

By default is properly sorted
Using categories is also sorted fine

When I try to use the filter by text the sorting is not correct:
Try in mainnet https://fix_apps_sort--webcore.review-web-core.5afe.dev/apps?safe=eth:0x8675B754342754A30A2AeF474D114d8460bca19b
Search for " a "
image

@katspaugh
Copy link
Member Author

katspaugh commented Feb 17, 2023

@francovenica that's expected, the search function sorts the results according to its own scoring algorithm.

@katspaugh katspaugh merged commit ab586a2 into dev Feb 17, 2023
@katspaugh katspaugh deleted the fix-apps-sort branch February 17, 2023 17:40
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Safe apps list] Order safe apps alphabetically
3 participants