feat(notification): add unread sidebar count badge and fix project scope upload authorization check

This commit is contained in:
yiling
2026-05-29 23:30:15 +08:00
parent 9c1d672c1e
commit 3ba107bfa4
9 changed files with 147 additions and 27 deletions
+8
View File
@@ -55,6 +55,14 @@ export const NotificationList = () => {
[data],
)
useEffect(() => {
if (teamId) {
queryClient.invalidateQueries({
queryKey: ['teams', teamId, 'me'],
})
}
}, [teamId, notifications.length, queryClient])
const $post = client.api.teams[':teamId'].notifications.read.$post
const markReadMutation = useMutation<
InferResponseType<typeof $post>,