-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project history : Add a version viewer windows in the plugin #630
base: master
Are you sure you want to change the base?
Conversation
…roject-history-refactor
Hi @uclaros we have a big one here :) Thanks! |
def on_scrollbar_changed(self, value): | ||
|
||
if self.ui.history_treeview.verticalScrollBar().maximum() <= value: | ||
self.fetch_from_server() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the first page of data fits in the tree view and does not need a scrollbar, then the second page will not be fetched
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but it's very unlikely to happen as we fetch 100 versions at once.
If @tomasMizera agree we can leave it as is
# Only fetching when previous is finshed | ||
return | ||
else: | ||
self.fetcher.start() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any visual indication that we are fetching?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not at the moment, I think the cleanest way to do so would be to add a temporary items at the end of the version table Saying "Fetching more versions ⏳"
* Cleanup duplicate * Style
* auto restore window geometry * handle disconnection from internet
This PR is a refactor and enhancement to bring a new history window to browse the history of a project directly from the plugin
To open the new windows a new toolbar button has been added.
The windows is divided in three parts for the users to be able to:
This PR is marked as draft because some testing are still required and the feature still have rough edges
For reviewer a brief technical documentation is available in the comment