cospend: filter recent activity by chart category selection

Clicking a category on the bar chart now filters the recent activity
list to show only payments in that category. Includes a clear filter
button and empty state message. Also increases recent splits from 10
to 30 for better coverage when filtering.
This commit is contained in:
2026-02-04 16:57:44 +01:00
parent fb215156af
commit 56e3bd1791
3 changed files with 92 additions and 6 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ export const GET: RequestHandler = async ({ locals, url }) => {
},
{ $unwind: '$paymentId' },
{ $sort: { 'paymentId.date': -1, 'paymentId.createdAt': -1 } },
{ $limit: 10 }
{ $limit: 30 }
]);
// For settlements, fetch the other user's split info