Notification icon: add icon: AvatarSource to Notification and show the author's avatar #54

Open
opened 2026-11-11 11:06:20 +00:00 by charles · 0 comments
Owner

Deferred from Task 23 (#23).

The plan's Notification has icon: AvatarSource (the author's avatar). AvatarSource and avatar_url live in fluxer_core::media_urls, which comes with Task 21 (#21, branch task/21-ui-avatar-image-cache); that branch was not part of the stack Task 23 was built on (task/10, task/12, task/14) and does not merge into it mechanically (conflicts in fluxer-platform and the workspace manifests), so the field was left out.

Once Task 21 and Task 23 are both on foundation:

  • fluxer-core: add icon: AvatarSource to effect::Notification, filled in notifications::notification_for with avatar_url(endpoints, &message.author, size); extend crates/fluxer-core/tests/notifications.rs.
  • apps/fluxer runtime: resolve the icon to a local file through the image cache of Task 21 before handing the notification to the notifier (never block showing the notification on the download).
  • fluxer-platform::notify: pass the file as the notification image (image-path hint on Linux, toast image on Windows); default avatars need a bundled image.

Seen on commit c0c5a4e (task/23-notifications).

Deferred from Task 23 (#23). The plan's `Notification` has `icon: AvatarSource` (the author's avatar). `AvatarSource` and `avatar_url` live in `fluxer_core::media_urls`, which comes with Task 21 (#21, branch `task/21-ui-avatar-image-cache`); that branch was not part of the stack Task 23 was built on (`task/10`, `task/12`, `task/14`) and does not merge into it mechanically (conflicts in `fluxer-platform` and the workspace manifests), so the field was left out. Once Task 21 and Task 23 are both on `foundation`: - [ ] `fluxer-core`: add `icon: AvatarSource` to `effect::Notification`, filled in `notifications::notification_for` with `avatar_url(endpoints, &message.author, size)`; extend `crates/fluxer-core/tests/notifications.rs`. - [ ] `apps/fluxer` runtime: resolve the icon to a local file through the image cache of Task 21 before handing the notification to the notifier (never block showing the notification on the download). - [ ] `fluxer-platform::notify`: pass the file as the notification image (`image-path` hint on Linux, toast image on Windows); default avatars need a bundled image. Seen on commit c0c5a4e (`task/23-notifications`).
charles added this to the Foundation milestone 2026-11-11 11:06:20 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#54
No description provided.