Skip to content

Notifications Support for Piefed#170

Merged
jwr1 merged 10 commits intointerstellar-app:mainfrom
JollyDevelopment:jollydev/piefed-notifications-00
May 13, 2025
Merged

Notifications Support for Piefed#170
jwr1 merged 10 commits intointerstellar-app:mainfrom
JollyDevelopment:jollydev/piefed-notifications-00

Conversation

@JollyDevelopment
Copy link
Copy Markdown
Contributor

@JollyDevelopment JollyDevelopment commented May 4, 2025

This adds support for notifications for Piefed.

In coordination with this PR on Piefed: https://codeberg.org/rimu/pyfedi/pulls/615 (now merged), and https://codeberg.org/rimu/pyfedi/pulls/619.

It's mostly based on the way the .fromMbin functions are setup, except the NotificationItem model which does a switch on the notificationtype more like the lemmy way.

I tested it on my personal piefed instance and its working so far.

Works for the Linux client and the android app in my testing.

@JollyDevelopment JollyDevelopment marked this pull request as ready for review May 5, 2025 03:12
Copy link
Copy Markdown
Member

@jwr1 jwr1 left a comment

Choose a reason for hiding this comment

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

Thank you!

You working on this made me realize some of the notification code needs to be reworked a bit, but I'll do that separately.

It seems preferred.social still hasn't updated, so I won't be able to test it quite yet. Here are my initial thoughts, though.

Comment thread lib/src/screens/account/notification/notification_screen.dart
Comment thread lib/src/api/notifications.dart
Comment thread lib/src/screens/account/notification/notification_item.dart
Comment thread lib/src/api/notifications.dart
@JollyDevelopment JollyDevelopment marked this pull request as draft May 5, 2025 17:01
@JollyDevelopment
Copy link
Copy Markdown
Contributor Author

note - converted back to draft to work on the getCount(), putReadAll() and paging

@JollyDevelopment JollyDevelopment marked this pull request as ready for review May 8, 2025 23:19
@JollyDevelopment JollyDevelopment marked this pull request as draft May 8, 2025 23:46
@JollyDevelopment JollyDevelopment marked this pull request as ready for review May 9, 2025 00:10
@JollyDevelopment JollyDevelopment force-pushed the jollydev/piefed-notifications-00 branch from c120bdc to ff8d582 Compare May 9, 2025 11:42
@JollyDevelopment JollyDevelopment requested a review from jwr1 May 11, 2025 13:46
Comment thread lib/src/api/notifications.dart Outdated
Comment thread lib/src/models/notification.dart
Comment thread lib/src/api/notifications.dart
Co-authored-by: jwr1 <47087725+jwr1@users.noreply.github.com>
@JollyDevelopment JollyDevelopment requested a review from jwr1 May 13, 2025 12:41
Copy link
Copy Markdown
Member

@jwr1 jwr1 left a comment

Choose a reason for hiding this comment

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

Thank you, it's looking great!

@jwr1 jwr1 merged commit eba7353 into interstellar-app:main May 13, 2025
2 checks 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.

2 participants