Skip to content

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

Merged
ItsLemmy merged 3 commits intonoctalia-dev:mainfrom
Swarsel:feat/notification-count
Feb 25, 2026
Merged

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

Conversation

@Swarsel
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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
Copy Markdown
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!

@ItsLemmy
Copy link
Copy Markdown
Contributor

ItsLemmy commented Feb 7, 2026

tag me when if/when it's time to merge @linuxmobile

@linuxmobile
Copy link
Copy Markdown
Contributor

@Swarsel What is your status? Are you going to make the modifications?

@Swarsel
Copy link
Copy Markdown
Contributor Author

Swarsel commented Feb 15, 2026

What modifications? From my standpoint this PR is good to go.

@linuxmobile
Copy link
Copy Markdown
Contributor

What modifications? From my standpoint this PR is good to go.

image image image

@Swarsel
Copy link
Copy Markdown
Contributor Author

Swarsel commented Feb 16, 2026

Ah, I think you forgot to hit the "Finish your review" button - currently I cannot see your comments :) I believe you can still do so now, it should not be lost

@ItsLemmy
Copy link
Copy Markdown
Contributor

@linuxmobile

Comment thread github-feed/Panel.qml
ListView {
id: eventsList
model: root.events
ColumnLayout {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a justification of why you change from ListView to ColumnLayout?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Swarsel I've already reviewed the PR, and this is still shocking to me. I would like to know why you decided to change from ListView to ColumnLayout?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was under the impression that this was the easier approach for realizing the tabbed layout for activities and notifications; at the moment I am not sure how the solution would look using ListView but I am also not too knowledgable about QML layouting.

Comment thread github-feed/BarWidget.qml Outdated
Comment thread github-feed/Main.qml Outdated
Comment thread github-feed/Main.qml Outdated
@Swarsel Swarsel force-pushed the feat/notification-count branch from 5fb9727 to 50de997 Compare February 22, 2026 23:24
@github-actions
Copy link
Copy Markdown
Contributor

@linuxmobile - this PR modifies your plugin. Please review when you have a chance.

@Swarsel Swarsel force-pushed the feat/notification-count branch from 50de997 to 0232d96 Compare February 22, 2026 23:37
@github-actions
Copy link
Copy Markdown
Contributor

@linuxmobile - this PR modifies your plugin. Please review when you have a chance.

@linuxmobile
Copy link
Copy Markdown
Contributor

I don't have enough energy to continue with the review, I mark it as approved @ItsLemmy.

@ItsLemmy ItsLemmy merged commit fbe4efd into noctalia-dev:main Feb 25, 2026
1 check passed
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.

3 participants