After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 720736 - Show a progress bar while loading diff
Show a progress bar while loading diff
Status: RESOLVED OBSOLETE
Product: gitg
Classification: Applications
Component: gitg
git master
Other All
: Normal normal
: ---
Assigned To: gitg-maint
gitg-maint
Depends on:
Blocks:
 
 
Reported: 2013-12-19 12:04 UTC by Techlive Zheng
Modified: 2018-05-22 13:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove an accident dot (865 bytes, patch)
2013-12-19 12:04 UTC, Techlive Zheng
accepted-commit_now Details | Review
Improve the code format (899 bytes, patch)
2013-12-19 12:04 UTC, Techlive Zheng
accepted-commit_now Details | Review
Show diff loading progress (2.52 KB, patch)
2013-12-19 12:04 UTC, Techlive Zheng
none Details | Review
Screenshot of the diff progress bar (2.85 KB, image/png)
2013-12-19 12:11 UTC, Techlive Zheng
  Details
Fix round corner on the right side (750 bytes, patch)
2013-12-21 16:57 UTC, Techlive Zheng
none Details | Review
Show diff loading progress (2.51 KB, patch)
2013-12-25 03:53 UTC, Techlive Zheng
none Details | Review
Remove 'Loading diff...' text (1.39 KB, patch)
2013-12-25 03:54 UTC, Techlive Zheng
none Details | Review

Description Techlive Zheng 2013-12-19 12:04:34 UTC
So that we can know the status of the diff processing if we are displaying a
large diff. The progress bar only reflects the progress of the hunks being
processed, the last template replacement is not measured, so, there is still
a lag after the progress bar is full.
Comment 1 Techlive Zheng 2013-12-19 12:04:43 UTC
Created attachment 264534 [details] [review]
Remove an accident dot
Comment 2 Techlive Zheng 2013-12-19 12:04:47 UTC
Created attachment 264535 [details] [review]
Improve the code format
Comment 3 Techlive Zheng 2013-12-19 12:04:51 UTC
Created attachment 264536 [details] [review]
Show diff loading progress
Comment 4 Techlive Zheng 2013-12-19 12:11:39 UTC
Created attachment 264538 [details]
Screenshot of the diff progress bar
Comment 5 Techlive Zheng 2013-12-21 16:57:19 UTC
Created attachment 264716 [details] [review]
Fix round corner on the right side
Comment 6 Techlive Zheng 2013-12-21 17:10:03 UTC
See branch wip/techlivezh/fix-720726
Comment 7 Techlive Zheng 2013-12-21 17:10:40 UTC
Mistake, see branch wip/techlivezh/diff-progress-bar
Comment 8 jessevdk@gmail.com 2013-12-23 12:14:34 UTC
Review of attachment 264536 [details] [review]:

It's nice to show progress, but some general comments:

1) The tick_freq should maybe be tuned so that we get a nice progression on large commits
2) It will be hard to style the progress bar to look native. It would be good to have a designers opinion on this. To differentiate, we could also think of a different way to show the progress (fading, sliding?)
3) I would probably remove the whole loading diff text and only show the progress bar.

::: libgitg/resources/diff-view.js
@@ +180,3 @@
 		{
 			html_builder_tick = event.data.tick;
+			if($('progress'))

Empty line before if. Space after if.

@@ +182,3 @@
+			if($('progress'))
+			{
+				$($('progress')[0]).attr('value',html_builder_tick);

Space after comma
Comment 9 jessevdk@gmail.com 2013-12-23 12:15:22 UTC
Review of attachment 264535 [details] [review]:

Fine
Comment 10 jessevdk@gmail.com 2013-12-23 12:16:11 UTC
Review of attachment 264534 [details] [review]:

Fine
Comment 11 Techlive Zheng 2013-12-25 03:53:42 UTC
Created attachment 264864 [details] [review]
Show diff loading progress
Comment 12 Techlive Zheng 2013-12-25 03:54:26 UTC
Created attachment 264865 [details] [review]
Remove 'Loading diff...' text

Progress bar should be sufficient.
Comment 13 Techlive Zheng 2013-12-25 03:57:27 UTC
(In reply to comment #8)
> Review of attachment 264536 [details] [review]:
> 
> It's nice to show progress, but some general comments:
> 
> 1) The tick_freq should maybe be tuned so that we get a nice progression on
> large commits

Current tick_freq seems fine.

> 2) It will be hard to style the progress bar to look native. It would be good
> to have a designers opinion on this. To differentiate, we could also think of a
> different way to show the progress (fading, sliding?)

What does a native Gtk+ style progress bar look like?

> 3) I would probably remove the whole loading diff text and only show the
> progress bar.

Done in a separate commit.

> 
> ::: libgitg/resources/diff-view.js
> @@ +180,3 @@
>          {
>              html_builder_tick = event.data.tick;
> +            if($('progress'))
> 
> Empty line before if. Space after if.

Done

> 
> @@ +182,3 @@
> +            if($('progress'))
> +            {
> +                $($('progress')[0]).attr('value',html_builder_tick);
> 
> Space after comma

Done
Comment 14 GNOME Infrastructure Team 2018-05-22 13:09:30 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gitg/issues/27.