Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Refactoring history display into HistoryControl #523

Conversation

StanleyGoldman
Copy link
Contributor

@StanleyGoldman StanleyGoldman commented Dec 12, 2017

Note: This PR targets enhancements/history-detail-tree-view-rollup #528

Fixes: #180

The HistoryView implemented a lot of functionality to handle virtual scrolling that was different to how they were approached in the Tree control. It was also hard to isolate code that handled the log from the code that handled the log entries.

In order to resolve this I refactored the HistoryView's handling of the list to HistoryControl.

  • Resolved issues that attempt to control the visible area
  • Maintains scroll position if possible when loading entries
  • Maintains selected entry if possible when loading entries

Before:

After:

@StanleyGoldman StanleyGoldman changed the base branch from master to enhancements/history-detail-tree-view-rollup December 12, 2017 15:13
@StanleyGoldman StanleyGoldman force-pushed the enhancements/history-list-view branch from e5c905f to 6090cd8 Compare December 13, 2017 12:10
@StanleyGoldman StanleyGoldman mentioned this pull request Dec 13, 2017
5 tasks
@StanleyGoldman StanleyGoldman changed the title HistoryControl Refactoring history display into HistoryControl Dec 13, 2017
…ncements/history-list-view

# Conflicts:
#	src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ChangesView.cs
Copy link

@drguthals drguthals left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Also - AHHH I love how fast it is :)

@StanleyGoldman StanleyGoldman merged commit 8b49a44 into enhancements/history-detail-tree-view-rollup Dec 13, 2017
@StanleyGoldman StanleyGoldman deleted the enhancements/history-list-view branch December 13, 2017 21:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants