Aden

Notifications

How Aden tells users what happened, in-app bell, email, and push, plus the team email inbox and social inbox for managing external conversations.

Mobile: where a notification opens

apps/mobile/src/lib/notification-route.ts is the one mapper for both the in-app bell list and push taps (warm and cold start, via getLastNotificationResponseAsync). It prefers entityType + entityId (track, album, playlist, mix, demo, booking_inquiry, todo, chat_thread, goal, milestone, session) and falls back to parsing the web navigationPath, so a notification for a web-only screen still lands on the nearest mobile screen. Both senders (web createNotifications, worker createWorkerNotifications) put entityType, entityId, navigationPath and type in the push data.

Mobile: the feed comes from the API, for the avatars

GET /api/v1/user/notification-feed returns the caller's latest 30 notifications with each actor's avatar resolved from users.avatar_key to a presigned, image-resized URL (deduped per actor, not per row). The phone used to read the notifications table straight from Supabase and render users.avatar_url, which is stale or empty for most accounts, so every row showed initials. Read state (read_at) is still written directly to Supabase and realtime keeps the badge in step. A notification with no actor (a worker wrote it) renders the type icon in the circle, not a "?".

Web: avatars are resolved server-side too

The bell popover and /app/inbox had the same gap the phone did: nothing joined the actor, so every row rendered the Aden placeholder. getNotificationsForUserQuery now embeds actor:users!notifications_actor_id_fkey and team:teams!notifications_team_id_fkey, and both callers (getMyNotifications, the inbox page) go through one helper, resolveNotificationFeed (apps/web/lib/notifications/feed.ts), which batches the keys through getCachedOptimizedUrls(..., 'small'), one call per feed. A notification with no actor (a worker or the system wrote it) about a track shows the track's cover (getNotificationTracksQuery, one read per feed); otherwise it falls back to the team's avatar and name, then to "Aden". avatar_url stays a last-ditch fallback for a key that did not resolve.

A track_released row ("Savior is out") for a public track on a team with a slug also carries publicPath (publicTrackPath): the row shows a globe button that opens the public track page in a new tab, while the row itself still opens the track in the app. /api/v1/user/notification-feed returns the same coverUrl and publicPath, and the phone draws both.

Web: one badge poll per browser

The bell and the sidebar chat badge share one poll (apps/web/lib/badges/badge-poll.ts, built on createSharedPoll, calling getBadgeCountsAction): one request a minute for the whole browser, whatever the number of tabs, chats on every other tick only (they read the thread list from Redis). The unread count is cached on the server for 30 seconds (getUnreadNotificationCountCached), so the user's other devices share the query; marking read fires notifications_<userId> and drops it at once. The bell loads its feed only when the unread count moves, compared on the first poll against the feed it already caches.

The bell swings when the unread count goes up (and on hover, on the web), and its badge pops in and rolls to the new number: RingingBell (apps/web/components/notifications/ringing-bell.tsx) on the web, the NotificationBell in apps/mobile/src/components/notification-center.tsx on the phone. Reduced motion keeps only the fades.

Workers use the same fan-out

workers/email-demo (new demo, new booking request) writes notifications through createWorkerNotifications in @aden/worker-config/notify: in-app row plus Expo push, gated by notification_preferences. It sends no email; the templates live in the web app. Goal period notifications go out from the nightly goals_notify_closed_periods pg_cron job straight to Novu.

What it is

Aden keeps you in the loop when something important happens in your team. Someone leaves a comment mentioning you, a new track version is uploaded, or a collaborator joins. Notifications arrive in the in-app bell, by email, or as a push message (on your phone via the mobile app, or on your computer as a desktop notification: enable it under Account โ†’ Notifications โ†’ "Notifications on this device", works in Chrome, Edge and Firefox, and in Safari when Aden is added to the Dock/home screen), depending on your preferences.

Separately, your team can connect an email inbox (Gmail today) so that demo submissions and other external emails land in Aden rather than a personal mailbox. For organisations, a social inbox lets managers connect social platforms and reply to messages without leaving Aden.

Using it

Staying on top of activity

Open the notification bell in the top navigation to see recent in-app notifications: mentions, replies, invites, new versions, and more. Each item links directly to the context it came from.

Unread notifications stand out (bolder text, a dot on the picture); read ones are dimmed. When a track is out, its notification shows the cover and a globe button that opens the track's public page. You don't have to click a notification to clear it, hovering over an item marks it as read, and the bell's unread count drops as you look through the list. Prefer to clear everything at once? Hit Mark all as read at the bottom of the list. To find an older one, start typing: the search sits right under the title.

A yellow bell with a slash in the header means this browser gets no desktop notifications. Click it to turn them on. If your browser blocked them, click the site icon in the address bar, set Notifications to Allow, then click the bell again.

You're also told when your own access changes: if an admin removes you from a team, re-adds you, or changes your role, or if someone removes you as a collaborator on a track, album, mix, or playlist, or narrows/widens your access scopes, that lands in your notification bell, so you always know why a team or track stopped showing up on your dashboard.

Notifications on a dashboard

Add the Notifications widget from Customize on your dashboard to keep your latest notifications in view. On a team's dashboard it shows only that team's notifications. Click one to open it and mark it read; the check in the widget's title marks them all read (on a team dashboard, only that team's).

Adjusting what you receive

  1. Go to Account โ†’ Notifications (/app/account?page=notifications).
  2. Toggle channels on or off globally: email, in-app, or push.
  3. Toggle individual event types: comment mentions, replies, track shares, etc.
  4. To customise per team, open the same panel and switch to the Per-team settings tab. Each team can either inherit your account defaults or have its own overrides.

Connecting a team email inbox

As a team owner or admin:

  1. Go to Integrations in your team settings.
  2. Choose Email inbox and click Connect Gmail.
  3. Complete the OAuth flow. Aden stores only encrypted tokens.
  4. Click Sync to pull recent emails in as demo submissions.
  5. Review each fetched email and click Accept to create a demo, or dismiss it.

Org social inbox (for organisations)

Organisation owners and admins can connect social platforms (Instagram DMs, etc.) via Settings โ†’ Integrations in the org surface. Once connected, incoming messages appear in the Inbox tab under Submissions. Reply directly from Aden.

Was this helpful?

On this page