Improve sort order handling in work item notes
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
There are a number of performance and code hygiene factors that can help improve the use of different sort orders in work items:
-
Refactor the form component to avoid redundancy
Currently we have two form components, with one shown via v-if. This introduces risk that one component could be updated while the other falls out of sync and may have minor performance drawbacks vs. alternative strategies. -
Utilize backend sorting
Currently we always return items sorted oldest to newest, then re-sort on the frontend. This means that items load bottom-to-top when sorted newest first, which is unexpected and results in a worse UX while results are loading as items are constantly moving.
Edited by Heinrich Lee Yu