- {loading &&
Loading…
}
+ {loading &&
Loading your inbox…
}
{!loading && items.length === 0 && (
-
No notifications match. Try a different filter, or come back later.
+
+
You're all caught up.
+
+ {filters.unread || filters.rfcSlug || filters.category
+ ? 'Nothing matches the current filters. Clear them to see everything.'
+ : 'New activity on RFCs you follow will show up here.'}
+
+
)}
{items.map(item => (
-
+
))}
@@ -145,16 +164,24 @@ export default function Inbox({ onClose, lastChangeTick }) {
)
}
-function InboxRow({ item, onClick, onClose }) {
+function InboxRow({ item, onClick, onMarkRead, onClose }) {
const unread = !item.read_at
const target = deepLink(item)
const handle = async () => {
await onClick(item)
if (target) onClose?.()
}
+ const handleMarkRead = async (e) => {
+ // Don't let the row's Link fire — this affordance only marks read,
+ // it never navigates.
+ e.preventDefault()
+ e.stopPropagation()
+ await onMarkRead(item)
+ }
return (
-