AllenNeuralDynamics / aind-metadata-entry-js

Metadata entry using javascript
https://metadata-entry.allenneuraldynamics.org
MIT License
1 stars 1 forks source link

Sort schema versions by semantic versioning #117

Closed jtyoung84 closed 7 months ago

jtyoung84 commented 10 months ago

User story

As a user, I want to view the sorted schema versions, so I can find the appropriate one easier.

Acceptance criteria

Sprint Ready Checklist

Notes

Add any helpful notes here.

Original Issue

Is your feature request related to a problem? Please describe. When I click the "Select Schema Version" button, a list is displayed that is sorted lexicographical, so something like 0.1.0, 0.1.1, 0.1.19, 0.1.2.

Describe the solution you'd like It'd be nicer if they sorted by semantic version.

Describe alternatives you've considered Keeping the sort order as is.

Additional context Add any other context or screenshots about the feature request here.

helen-m-lin commented 7 months ago

This feature was quite straightforward since I used a package to directly sort by semantic version. Setup and understanding the codebase was also straightforward due to familiarity with React and npm. The difficulty was creating a new test suite for the Dropdowns components since currently the repo does not have unit tests for UI components. This should make it easier in the future to add tests for React components.