Link to screenshots page:
Week 2: Feb 4th
Researched Underscore.js.
Completed task 2, 4, 5, and 7:
- Task 2: I created some new styling classes for the banner in static/rb/css/pages/diffviewer.less
- Task 4: I added a new SplitButtonView object to the FloatingBannerView render function.
- Task 5: I passed DiffViewerPageView.model.collections into the FloatingBannerView and used it to add each file as an attribute to the SplitButtonView.
- Task 7: I added an OnClick function that gets called when the user clicks on the SplitButtonView object. This function uses the diff file indices and the JavaScript ScrollTop function to scroll to the top of the diff page.
Velocity: 26 (My estimation points for these tasks are way off)
Note: I expect some of this code to get refactored next week, possibly moved to a new class. It feels wrong to add functionality to the FloatingBannerView as it ruins its generic functionality. However, my focus this week was just to get some of the functionality for this project to work, rather than focusing too much on optimal coding practices.