fix(#145): dashboard notification widget shows all recent notifications
- Add type-only filter to notification repo/service (previously only worked with type+read=false together) - Dashboard widget now fetches all recent notifications (mentions + replies, both read and unread) instead of unread mentions only - Update component heading and show type label per row Root cause: Berit's mentions were read=true, so the unread-only filter returned 0 results. The recent docs widget had no REVIEWED documents because 'marking ready' sets metadata_complete, not status=REVIEWED. Recent docs now shows all uploads without a status filter. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -58,13 +58,9 @@ export async function load({ url, fetch }) {
|
||||
|
||||
if (isDashboard) {
|
||||
const [mentionsResult, incompleteResult, recentResult] = await Promise.allSettled([
|
||||
api.GET('/api/notifications', {
|
||||
params: { query: { type: 'MENTION', read: false, size: 5 } }
|
||||
}),
|
||||
api.GET('/api/notifications', { params: { query: { size: 5 } } }),
|
||||
api.GET('/api/documents/incomplete', { params: { query: { size: 5 } } }),
|
||||
api.GET('/api/documents/search', {
|
||||
params: { query: { status: 'REVIEWED' } }
|
||||
})
|
||||
api.GET('/api/documents/search', { params: { query: {} } })
|
||||
]);
|
||||
|
||||
if (mentionsResult.status === 'fulfilled' && mentionsResult.value.response.ok) {
|
||||
|
||||
Reference in New Issue
Block a user