Skip to content

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jun 24, 2025

Fixes #1628

Less intrusive solution to indicating cloning in progress (spinner) and finished (toast).

Base automatically changed from jeremypw/implement-clone to master June 24, 2025 16:15
jeremypw added 2 commits June 25, 2025 10:08
# Conflicts fixed:
#	src/Dialogs/CloneRepositoryDialog.vala
#	src/MainWindow.vala
#	src/Services/GitManager.vala
@jeremypw jeremypw changed the title Implement some remote callbacks Clone repository: Show progress Jul 6, 2025
@jeremypw
Copy link
Collaborator Author

@danirabbit As you requested, the cloning dialog now hides during cloning and progress is indicated by a spinner (currently in the choose project button). On cloning success the spinner disappears and a generic toast shows briefly below the choose project button.

Is this sufficient or would you like a more informative indication e.g. a progress bar in the sidebar? The remote callbacks are providing more info than is shown at the moment.

@jeremypw jeremypw requested a review from danirabbit July 18, 2025 14:58
@jeremypw
Copy link
Collaborator Author

I know I have left progress machinery in the dialog at the moment in case this can be re-used elsewhere.

@jeremypw jeremypw mentioned this pull request Jul 18, 2025
2 tasks
private Gtk.Label indexing_label;
private Gtk.Label progress_label;
private Gtk.ProgressBar transfer_progress_bar;
private uint total_objects = 0;

Choose a reason for hiding this comment

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

This class is getting way too large in my opinion. If these widgets are solely to indicate clone progress, they should be marked as so.

Copy link
Collaborator Author

@jeremypw jeremypw Aug 12, 2025

Choose a reason for hiding this comment

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

I don't think less than 400 lines is particularly large but I'll see whether anything can reasonably be split out. Really need to agree the UI for showing progress before worrying to much about it.

Choose a reason for hiding this comment

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

It's not about the lines. It's about the responsibilities.

1 class should have only 1 responsibility.

It's said that our brains can only keep track of 10 things at once. If it's more, it can't handle it. Of course, this depends on the case.

@jeremypw
Copy link
Collaborator Author

I am going to close this as the preferred solution advised by @danirabbit is to just show cloning completion with a toast. It is not therefore necessary to use remote callbacks to get detailed information about the progress of the clone.

@jeremypw jeremypw closed this Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git clone success dialog should be a toast

6 participants