Skip to content

Conversation

@svara
Copy link
Contributor

@svara svara commented Jan 19, 2026

Updated notification/tray JSON for mobile app requirements:

  • Tray API now includes read notifications when include_unread=true
  • ETag varies by include_unread to avoid cache collisions
  • Added controller test for include_unread JSON

json.creator notification.creator, partial: "users/user", as: :user
json.creator do
json.partial! "users/user", user: notification.creator
json.avatar_url user_avatar_url(notification.creator)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jorgemanrubia Do you see any reason why we couldn't include the avatar url in the existing user partial?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

@svara should be fine to add it to the user partial

@alpkeser alpkeser force-pushed the notifications-tray-api branch from 847574f to e6e395f Compare January 28, 2026 18:10
svara and others added 8 commits January 28, 2026 23:31
Add avatar url, board name, and column.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Includes assignee users in the card object for display in notification UI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
These fields were added but are not used by the iOS client.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@alpkeser alpkeser force-pushed the notifications-tray-api branch from e6e395f to a3aefba Compare January 29, 2026 07:12
@alpkeser alpkeser marked this pull request as ready for review January 29, 2026 07:13
@alpkeser alpkeser force-pushed the notifications-tray-api branch from f604f0e to d954ec9 Compare January 29, 2026 07:26
def show
@notifications = Current.user.notifications.preloaded.unread.ordered.limit(100)
@notifications = unread_notifications
if include_unread?
Copy link

@alpkeser alpkeser Jan 29, 2026

Choose a reason for hiding this comment

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

@svara added this query parameter instead of checking for format.json. Let me know if you have any concerns.

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.

5 participants