feat(değerlendirme): ay sonu değerlendirmesi sayfası
- Kakeibo'nun 4 sorusu, nasıl hesaplandığıyla birlikte - Grup bazında planlanan/gerçekleşen, en çok harcanan kategoriler, haftalık dağılım - "Nasıl daha iyi yapabilirim?" (Markdown) ve yalnızca başlıkları listelenen notlar Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import type { GroupAmounts } from '@/types/GroupAmounts'
|
||||
import type { GroupBudget } from '@/types/GroupBudget'
|
||||
import type { Period } from '@/types/Period'
|
||||
import type { PeriodCreateRequest } from '@/types/PeriodCreateRequest'
|
||||
import type { PeriodReview } from '@/types/PeriodReview'
|
||||
import type { PeriodSummary } from '@/types/PeriodSummary'
|
||||
import type { PeriodUpdateRequest } from '@/types/PeriodUpdateRequest'
|
||||
import type { PlanItem } from '@/types/PlanItem'
|
||||
@@ -108,6 +109,14 @@ export function useSummary(periodId: string) {
|
||||
})
|
||||
}
|
||||
|
||||
/** Ay sonu değerlendirmesi: 4 soru + grup/kategori/hafta dökümü (kayıt değişince yenilenir) */
|
||||
export function useReview(periodId: string) {
|
||||
return useQuery({
|
||||
queryKey: queryKeys.review(periodId),
|
||||
queryFn: () => api.get<PeriodReview>(`/periods/${periodId}/review`),
|
||||
})
|
||||
}
|
||||
|
||||
export function useBudget(periodId: string) {
|
||||
return useQuery({
|
||||
queryKey: queryKeys.budget(periodId),
|
||||
|
||||
Reference in New Issue
Block a user