Improve job log search by expanding sections
Problem
Job log search is better than CMD + F
browser search for a few reasons.
- We highlight the entire job log line
- The search is scoped to the job log vs the entire page
What would take it a step further and be more useful to users, is if we expand collapsed sections where the data is found.
Solution
Currently we traverse the entire log and have the ability to find lines that are "hidden" by the collapsed section. If we find data that is hidden behind a collapsed section, then expand that section.
Notice the screenshot below. 2 results are found for ci-project
, we highlight both of those, but the second highlight is actually hidden behind the section Header of the 1st collapsible section
.
I see two solutions currently
- Expand all sections once search is emitted (less favorable option but probably less complex)
- Determine the section the line was found in, and only expand that section.
Edited by Payton Burdette