-
Notifications
You must be signed in to change notification settings - Fork 226
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
sped up highlighting on analysis page #1287
Conversation
jstucke
commented
Oct 25, 2024
- sped up highlighting on analysis page
- optimized code
- replaced custom line numbering function with much faster library
- don't highlight if the block is too large (>1MiB)
257dfb3
to
dc4efd9
Compare
dc4efd9
to
4c178af
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1287 +/- ##
==========================================
- Coverage 92.54% 91.90% -0.65%
==========================================
Files 379 378 -1
Lines 24008 21096 -2912
==========================================
- Hits 22219 19388 -2831
+ Misses 1789 1708 -81 ☔ View full report in Codecov by Sentry. |
4c178af
to
835b1c9
Compare
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! Just one commend below.
preview_button.onclick = load_preview; | ||
let rawResultIsHighlighted = false; | ||
const toggleSwitch = document.getElementById("rawResultSwitch"); | ||
const analysisTable = document.getElementById("analysis-table-body"); |
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.
This is null
if no analysis is selected (by clicking on the file name).
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.
Fixed. The variable analysisRows
had the same problem
optimized code and replaced custom line numbering function with much faster lib
fixes the issue that the raw result is hidden by default but is considered for page height and scroll bar length nontheless
835b1c9
to
4897fb3
Compare