feat: display app's shortcuts when searching for an app#58
feat: display app's shortcuts when searching for an app#58
Conversation
|
kabaros
left a comment
There was a problem hiding this comment.
I noticed that the search got a bit slower in the branch, and tried to diagnose it, it looks like the memory usage (consistently) is higher than the main branch (65-70MB compared to ~45), so is the percentage of amount of time taken to render the component.
But more important than the numbers, it did feel sluggish for me as a user.
I think we should look at optimising this one as much as possible since it's the main interface people use .. right now, there are two nested loop effectively, and maybe they can be combined into one, or maybe using one of the fuzzy search libraries can be more performant than what we have. I would even add a test to time the search performance (for development) and compare it in the main branch and this branch - I am not sure what is the exact solution, but I think it's worth optimising (happy to pair on it).



Implements DHIS2-20121
Details:
appNamekey contained in every shortcut object to match the entered filter, and hence return all shortcuts belonging to a particular app in thegeneral (Home) view, and theShortcuts viewScreenshot: