Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pskowronek
Copy link
Member

@pskowronek pskowronek commented Dec 26, 2022

Added FileJobs' status updates on App Icon - under macOS in Dock or in Taskbar in Windows/Ubuntu (Unity).

  • progress (probably not calculated accurately - probably I should use getTotalPercentDone instead of getJobProgress.getFilePercentInt)
  • badge number - number of jobs (all i.e. foreground and background jobs)
  • icon bouncing when user attention is required (file exists etc)

Screenshot:
muc-icon

This is PoC - only checked on macOS Catalina.

All comments are welcomed.

@pskowronek pskowronek requested a review from ahadas as a code owner December 26, 2022 18:25
@ghost
Copy link

ghost commented Dec 26, 2022

On macOS Ventura, I only see a job counter, but I don't see a progress bar.
By the way, this would be a great opportunity to address #565. 😀

Dock

@ahadas
Copy link
Member

ahadas commented Jan 3, 2023

interesting :) I need to take a better look at the details though

@pskowronek pskowronek force-pushed the dock-icon-status-update branch from e2399fe to e34f6b8 Compare January 5, 2023 23:16
@pskowronek pskowronek force-pushed the dock-icon-status-update branch from e34f6b8 to 4a61cc7 Compare April 6, 2023 21:11
@pskowronek pskowronek force-pushed the dock-icon-status-update branch from 4a61cc7 to 3cf92b0 Compare April 26, 2023 17:35
@pskowronek
Copy link
Member Author

rebased

@pskowronek
Copy link
Member Author

pskowronek commented Apr 28, 2023

interesting :) I need to take a better look at the details though

@ahadas Can you take a look? Your input will be valuable, then I would try to prepare a proper PR.

@ahadas ahadas added this to the 1.3.0 milestone Apr 29, 2023
@ahadas
Copy link
Member

ahadas commented Apr 29, 2023

@ahadas Can you take a look? Your input will be valuable, then I would try to prepare a proper PR.

sure, sorry for not getting back to it sooner - I'll try to do it this week

Copy link
Member

@ahadas ahadas left a comment

Choose a reason for hiding this comment

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

@pskowronek it may seems like a high number of comments but most of them are minor, this change looks nice overall - however as you commented inside, let's find the right place to have this bridge from the jobs to the icon's badge and progress

@pskowronek pskowronek force-pushed the dock-icon-status-update branch from 3cf92b0 to 9320265 Compare May 6, 2023 11:59
@pskowronek
Copy link
Member Author

PR updated to address all minor comments (that I've marked as resolved).

@pskowronek
Copy link
Member Author

pskowronek commented May 6, 2023

PR updated - jobs listener registration moved to NotifierProvider

@pskowronek
Copy link
Member Author

On macOS Ventura, I only see a job counter, but I don't see a progress bar. By the way, this would be a great opportunity to address #565. 😀

Dock

I've just pushed a commit with workaround for that. @Andreas0602 can you check it?

@pskowronek
Copy link
Member Author

On macOS Ventura, I only see a job counter, but I don't see a progress bar. By the way, this would be a great opportunity to address #565. 😀
Dock

I've just pushed a commit with workaround for that. @Andreas0602 can you check it?

@ahadas / @Andreas0602 or anyone - do you have account on bugs.openjdk.org to add a comment to https://bugs.openjdk.org/browse/JDK-8300037 ?

@pskowronek pskowronek force-pushed the dock-icon-status-update branch 2 times, most recently from 1d76ae7 to 0b38fb0 Compare May 6, 2023 22:34
@ghost
Copy link

ghost commented May 6, 2023

I've just pushed a commit with workaround for that. @Andreas0602 can you check it?

In my opinion, it looks good.

Screenshot of about 99 % progress:
Screenshot_2023-05-07_00-47-19

@ahadas / @Andreas0602 or anyone - do you have account on bugs.openjdk.org ...

No, I haven't.

@ghost
Copy link

ghost commented May 6, 2023

By the way, here's a screenshot of the progress bar of NewsLazer at about 75 %. I must say that it looks better.

Screenshot_2023-05-07_01-20-13

@pskowronek
Copy link
Member Author

By the way, here's a screenshot of the progress bar of NewsLazer at about 75 %. I must say that it looks better.

ours or theirs? :)

@ghost
Copy link

ghost commented May 7, 2023

theirs

@pskowronek
Copy link
Member Author

Matter of taste :) However, ours is a native one, and theirs is custom painted and updated icon.

@pskowronek pskowronek force-pushed the dock-icon-status-update branch from 0b38fb0 to 9f70443 Compare May 7, 2023 11:51
@pskowronek pskowronek changed the title Dock/TaskBar icon status with jobs progress updates (PoC) Dock/TaskBar icon status with jobs progress updates May 7, 2023
jre
Copy link
Member

Choose a reason for hiding this comment

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

need to drop this change

Copy link
Member Author

Choose a reason for hiding this comment

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

I should remove it from PR, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm, this is submodule... any hint how to revert it?

Copy link
Member

Choose a reason for hiding this comment

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

I've pushed a commit that reverts that change. it seems like the 'jre' submodule is not up-to-date, did you try git submodule update?

Copy link
Member Author

Choose a reason for hiding this comment

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

hm, it does nothing, the same with git submodule init. Previously I also tried git submodule foreach git reset --hard - it did something, but..... heck, still I don't know how come it went to commit and how it should be reverted.

Copy link
Member

Choose a reason for hiding this comment

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

ah yeah, actually it means the submodule was updated because otherwise it would't have detected a change in 'jre' - did you rebase the root repo? it seems like you are missing this commit

Copy link
Member

@ahadas ahadas left a comment

Choose a reason for hiding this comment

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

minor comments, other than that lgtm

@ahadas
Copy link
Member

ahadas commented May 8, 2023

@ahadas / @Andreas0602 or anyone - do you have account on bugs.openjdk.org ...

No, I haven't.

me neither

@pskowronek
Copy link
Member Author

PR updated

Copy link
Member

@ahadas ahadas left a comment

Choose a reason for hiding this comment

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

thanks @pskowronek !
note that I commented on the 'jre' thread - I think you just need to update the submodule with git submodule update

@ahadas ahadas merged commit 9829d40 into mucommander:master May 9, 2023
@ahadas
Copy link
Member

ahadas commented Jul 8, 2023

Version 1.3.0 that includes a fix for this issue has been released

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.

2 participants