Skip to content

Add a basic interface for showing which files have been viewed and which file is currently active

David O'Regan requested to merge oregand/gitlab:24629 into master

What does this MR do?

This MR is based on issue #24629 (closed)

It can be considered a utterly MVC to get this update underway. The merge attempts to get the ball rolling for the change with a method that removes the highlighted class when the file name has been clicked based on the previous work done here: gitlab-foss!29030 (closed)

Further work needed:

Update file tree via the IntersectionObserver API as suggested here: gitlab-foss!29030 (comment 177129131)

Screenshots

On Page Load After Some Files Are Clicked File Header With Active State
Screenshot_2020-01-30_20-11-29 Screenshot_2020-01-30_20-12-12 Screenshot_2020-01-30_20-36-32

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Merge request reports