Highlight log line when hash is present in URL
In !117069 (merged) I worked on scrolling to the relevant job log line when a hash was present in the URL.
IMO an added benefit would be to apply some styling to the log line when a hash is present.
I.E https://gitlab.com/gitlab-org/gitlab/-/jobs/4080602778#L58
scroll to line and highlight line 58.
Proposal
In app/assets/javascripts/jobs/components/log/line.vue
grab the hash and the lineNumber. Then apply the highlight class. Rough example below...
if (window.location.hash) {
const { line } = props;
const hash = getLocationHash();
// remove L from hash then match up with line.lineNumber
// apply highlight class to the div wrapper of line
}
Edited by Payton Burdette