mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-06-11 19:11:43 +00:00
feat: add HPP Per Farm report tab with expandable flock rows
- Add HppPerFarmReport types (HppPerFarmRow, HppPerFarmFlock, HppPerFarmSummary) - Add HppPerFarmTab component with useTableFilter persist, date range filter (max 30 days, end >= start), location multi-select, and expandable rows showing per-flock cost breakdown - Register new tab in MarketingTabs - Increase http client default timeout to 300s for long-running report queries Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { useState } from 'react';
|
||||
import Tabs from '@/components/Tabs';
|
||||
import DailyMarketingReportContent from '@/components/pages/report/marketing/tab/DailyMarketingTab';
|
||||
import HppPerKandangTab from '@/components/pages/report/marketing/tab/HppPerKandangTab';
|
||||
import HppPerFarmTab from '@/components/pages/report/marketing/tab/HppPerFarmTab';
|
||||
import { useTabActionsStore } from '@/stores/tab-actions/tab-actions.store';
|
||||
|
||||
const MarketingReportContent = () => {
|
||||
@@ -21,6 +22,11 @@ const MarketingReportContent = () => {
|
||||
label: 'HPP Harian Kandang',
|
||||
content: <HppPerKandangTab tabId={'2'} />,
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
label: 'HPP Per Farm',
|
||||
content: <HppPerFarmTab tabId={'3'} />,
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user