Remove deprecated dashboard pages and update vertical menu links for streamlined navigation

- Deleted unused pages for crop zoning, farm AI assistant, fertilization recommendation, irrigation recommendation, pest detection, plant simulator, soil data, and water data.
- Updated the vertical menu to reflect the removal of these pages, ensuring a cleaner and more efficient user experience.
This commit is contained in:
2026-02-21 22:05:47 +03:30
parent 00b5ecba7f
commit cb29828a69
16 changed files with 208 additions and 126 deletions
@@ -415,6 +415,7 @@ const GrowthChart = memo(function GrowthChart({
const chartOptions = {
responsive: true,
maintainAspectRatio: false,
animation: { duration: 0 },
plugins: {
legend: { labels: { font: { size: 11 } } },
@@ -510,7 +511,14 @@ const GrowthChart = memo(function GrowthChart({
]
}
return <Line data={data} options={chartOptions} />
return (
<Box
className='is-full'
sx={{ minHeight: { xs: 380, sm: 340, md: 320 }, height: { xs: 380, sm: 340, md: 320 } }}
>
<Line data={data} options={chartOptions} />
</Box>
)
})
// ─── Main Component ───────────────────────────────────────────────────────────
@@ -715,12 +723,12 @@ export default function PlantSimulator() {
]
return (
<Box className='flex flex-col gap-6 is-full'>
<Box className='flex flex-col gap-6 min-is-0 is-full'>
<Typography variant='h4' className='text-center font-bold'>
🌱 {t('title')}
</Typography>
<Grid container spacing={6} className='max-w-6xl mx-auto'>
<Grid container spacing={6} className='min-is-0 is-full'>
{/* ── Left: Plant visualization ── */}
<Grid size={{ xs: 12, lg: 4 }} className='flex flex-col items-center gap-4'>
<Card className='is-full flex flex-col items-center p-6'>