-
Notifications
You must be signed in to change notification settings - Fork 36
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
Improve schema viewer user experience #2816
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, and supports using Find (CTRL + F) to quickly go to any field in the database!
While not important, would it also be possible to include a button above the Accession
Table button in the sidebar to redirect to the user to the very top of the Schema Viewer? Currently the quickest way to back to the list of every table when you are anywhere else on the page is to click on Accession
and then scroll up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
@melton-jason, a jump to the start button would be nice but how often will that be necessary?
Not that necessary. Not necessary enough to keep this from production. |
Screen.Recording.2023-01-15.at.5.51.17.PM.movUnfortunately the first item I select after loading into the schema viewer is not properly highlighted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately the first item I select after loading into the schema viewer is not properly highlighted.
Can you elaborate on what you mean by this / provide a video? It works for me, albeit very laggy: Screen.Recording.2023-01-16.at.08.31.21.mov |
Running a profiler shows that the performance issue is caused just by the sheer number of elements on the page, rather than by react: Thus, the only way to reduce this is to not render as many elements on the page. Solutions:
|
|
Sorry! I missed it |
To disambiguate from Schema Config
When I’m on a data entry form, Specify uses ~500-600MB of memory – the schema viewer takes 1GB and clicking on a button spikes to using 25-35% of my CPU The schema print-out uses 100MB of memory and 0.6% of my CPU when I jump to a table |
yeah, it displays 41,000 cells so that's about what I would expect the printout page is static and does not use react (in the schema viewer there is a react component for each cell, and they all take memory) See #2816 (comment) for potential solutions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is up to the team to decide if we should implement a new solution to make this work without consuming a lot of memory. I would argue that it is not often used or referenced, making it a low priority to optimize.
Let's push this as is before it gets too big. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Edit: didn't know GitHub allows leaving reviews on merged pull requests. Neat!
Fixes #1831