Skip to content

feat(github-feed): add GitHub notifications#218

Open
Swarsel wants to merge 3 commits intonoctalia-dev:mainfrom
Swarsel:feat/notification-count
Open

feat(github-feed): add GitHub notifications#218
Swarsel wants to merge 3 commits intonoctalia-dev:mainfrom
Swarsel:feat/notification-count

Conversation

@Swarsel
Copy link

@Swarsel Swarsel commented Feb 5, 2026

Hey, thanks for creating this plugin, I love it a lot!

While I like to have the feed information, another bit of information that I also value a lot is information on the count of notifications that my account has.

Hence I added notification fetching capabilities to the github-feed plugin; when enabled and the token has the correct scopes, it will fetch them as well.

Preview:
screenshot_2026-02-05-221348
image
screenshot_2026-02-05-221847

Do note that I vibe-coded most of this, this is not a stellar implementation. I just quickly wanted something that gets the job done, and this works. Also I realize that notifications might be out of scope of this plugin; if either of these are a problem then I am sorry for the disturbance :)

@Swarsel Swarsel force-pushed the feat/notification-count branch from 283dfc4 to 4d0c724 Compare February 5, 2026 22:22
@linuxmobile
Copy link
Contributor

I am sorry for the disturbance

I'll review it out in a little while, but as initial feedback for the future don't apologize! In any case, apologizing beforehand is too unprofessional.

@linuxmobile
Copy link
Contributor

You're showing the notification in the TOP of the feed? Can you show how this looks with the entire feed?

@Swarsel
Copy link
Author

Swarsel commented Feb 6, 2026

[...] apologizing beforehand is too unprofessional.

I disagree, but let's not get sidetracked!

You're showing the notification in the TOP of the feed? Can you show how this looks with the entire feed?

Yes they are rendered on top:

image

Notifications are usually things I want to see and address quickly, so personally I would prefer it like that instead of interweaving them with the feed, which might have many entries.

@linuxmobile
Copy link
Contributor

The idea is not bad, it is even useful. But the implementation changes the concept of the plugin too much. The intention of the plugin is mainly to "mimic" the github.com/feed or github.com/dashboard-feed. I think mainly your implementation should not change that. What I suggest you to do is to separate the notification from the feed. It can be in two tabs, for example. And don't change the UI of it. Adding a border seems pretty ugly to me

@Swarsel Swarsel force-pushed the feat/notification-count branch 7 times, most recently from 83da87c to e2c83bd Compare February 6, 2026 19:06
@Swarsel
Copy link
Author

Swarsel commented Feb 6, 2026

Yeah, I agree that is the cleaner approach.

Implemented now, along with a setting that lets the user decide which tab to open by default (per default the "Activity" tab will be shown first, so the only change for existing users is the tab bar):

image image

@Swarsel
Copy link
Author

Swarsel commented Feb 6, 2026

Also I went ahead and added an optional badge to the widget that shows the number of notifications:
image

That badge can be configured to be not shown at all, and also it's colors can be customized according to the theme, similar to how other other bar widgets do it, e.g. Control Center

@Swarsel Swarsel force-pushed the feat/notification-count branch from f5b8b12 to 5fb9727 Compare February 6, 2026 20:50
@Swarsel
Copy link
Author

Swarsel commented Feb 6, 2026

As a last addition, I added optional system notifications for notifications and all supported types of events:
image

Each of those types is separately toggleable

With this last addition, all the functionality that I would like to have in this plugin is now implemented. Would be great if you could take another look @linuxmobile!

@linuxmobile
Copy link
Contributor

With this last addition, all the functionality that I would like to have in this plugin is now implemented. Would be great if you could take another look @linuxmobile!

Thx, now looks better. I will check tonight!

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