feat(kanban): update task status permissions, reporter defaults, and participant access (#345)

* feat(kanban): allow editors to change task status and default reporter to creator

* fix(kanban): hide create task button for reviewers and eliminate duplicate error toast
This commit is contained in:
Yiling-J
2026-08-23 20:38:56 +08:00
committed by GitHub
parent c1de66520e
commit f67e334016
13 changed files with 398 additions and 74 deletions
-7
View File
@@ -1,7 +1,6 @@
import { hc } from 'hono/client'
import type { AppType } from '@shumai/api'
import { useAuthStore } from '@/ui/stores/auth'
import { toast } from 'sonner'
const customFetch = async (input: RequestInfo | URL, init?: RequestInit) => {
const response = await fetch(input, init)
@@ -20,12 +19,6 @@ const customFetch = async (input: RequestInfo | URL, init?: RequestInit) => {
}
}
if (response.status === 403) {
toast.error('You do not have permission. Please contact the team admin.', {
id: 'forbidden-error',
})
}
return response
}